[jboss-user] [JBossWS] - Re: Adding application specific properties to the MessageCon

2008-01-16 Thread kellenheller
I am trying to populate the properties in the client and read them in the 
server, either in the handler or in the service.  I don't know what you mean by 
"transfer properties".

The docs say you can get the RequestContext from the BindingProvider, add 
properties  all on the client, and then that is accessible via the 
MessageContext on the server. 

But so far, no success :(

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120673#4120673

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120673
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Adding application specific properties to the MessageCon

2008-01-16 Thread kellenheller
I updated to v2.0.2.GA, but still the same issue - the custom properties are 
not retained when I set them in the client and try to get them in the handler 
or the service.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120596#4120596

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120596
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Adding application specific properties to the MessageContext

2008-01-15 Thread kellenheller
I'm trying to add application specific properties to the MessageContext to 
retrieve either in my service via WebServiceContext or in a SoapMessageHandler 
via messageContext.  

No matter how I try to retrieve them, the properties are always null:

Here's my test code:

Service service = getWebService( ); //works fine
  | HaloImpl endPoint = service.getPort( HaloImpl.class );
  | 
  | //setup custom properties in RequestContext
  | BindingProvider bp = (BindingProvider) endPoint;
  | bp.getRequestContext( );
  | Map context = bp.getRequestContext( );
  | context.put( "prop1", "value1");
  | context.put( "prop2", "value2");
  | 
  | return (HaloImpl) bp;

Then I call the endpoint service, no problem.

In the handler:


public class HaloHandler implements SOAPHandler
  | {
  | 
  | //@Override
  | public boolean handleMessage( SOAPMessageContext msgContext )
  | {
  | 
  | try
  | {
  | String prop1 = (String) msgContext.get( "prop1" );
  | String prop2 = (String) msgContext.get( "prop2" );
  | 
  | } catch( Exception e )
  | {
  | throw new RuntimeException( e );
  | }
  | 
  | return true;
  | }

The handler is configured on the server side via the @HandlerChain annotation, 
and it is being executed.  However, prop1 and prop2 are always null, when they 
should have "value1" and "value2" respectively.  

I've tried adding the WebServiceContext in the web service impl class like so:

@Resource
  | WebServiceContext ctx;
  | 
  | public HaloImpl( )
  | {
  | 
  | }

and then accessing the properties in a method when a service method is called:

private void validateProperties( )
  |{
  | MessageContext msg = ctx.getMessageContext( );
  | if (msg != null){
  | 
  | String prop1 = (String) msg.get( "prop1" );
  | String prop2 = (String) msg.get( "prop2" );
  | }
  | }


but again, the properties are null.

Am I missing a setting?  I've seen several examples in different 
implementations showing this is the way to access custom properties, but I 
can't seem to get this to work.

I am using Jboss 4.2.2 with the default jax-ws stack it came with in there ( 
v2.0.1.SP2 ).

Anybody have any ideas?  Thanks guys :)



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120208#4120208

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120208
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: jbossws-2.0.0.GA released

2007-10-30 Thread kellenheller
>2. installed jbossws-1.2 into jboss-4.0.5.GA and now wsconsume fails to work, 
>it throws a NoClassDefFound on 
>org.jboss.ws.tools.jaxws.impl.SunRIConsumerFactoryImpl ?


I'm able to run web services using the dynamic proxy, but when I try to pre-gen 
the client classes with wsconsume, I get this exception as well.


I'm on jboss-4.0.5GA and jbossws-1.2.1.GA.  

I had previously installed 2.0.1GA, but couldn't get it to install, so I 
installed jbossws-1.2.1.GA instead.  

Anybody who has had this problem get past it?

-Tracey

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100345#4100345

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100345
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: jbossws-2.0.1 released

2007-10-10 Thread kellenheller
Thank you very much, Richard! 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093463#4093463

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093463
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: jbossws-2.0.1 released

2007-10-09 Thread kellenheller
Is there anything you can do for us in the interim?  I am trying to eval 
jbossws for our app, and I can't get it installed because of this issue.  



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093143#4093143

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093143
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user