Re: how do you add parameters to soap:header in CXF generated WS client?

2009-12-14 Thread kenkyee
dkulp wrote: > > That example is for a server side thing to get the headers that were sent > in > with the request (or add headers to the response).The > WebServiceContext is > really a server side thing.The client side has the RequestContext and > ResponseContexts on the proxy objec

Re: how do you add parameters to soap:header in CXF generated WS client?

2009-12-14 Thread kenkyee
dkulp wrote: > > That example is for a server side thing to get the headers that were sent > in > with the request (or add headers to the response).The > WebServiceContext is > really a server side thing.The client side has the RequestContext and > ResponseContexts on the proxy objec

Re: how do you add parameters to soap:header in CXF generated WS client?

2009-12-14 Thread Daniel Kulp
On Mon December 14 2009 10:17:01 am kenkyee wrote: > dkulp wrote: > > In anycase, since the wsdl sucks, you would need to drop to the API's > > listed > > in the FAQ. On the client side, the context would be the request > > context: > > ((BindingProvider)proxy).getRequestContext().put(HEADER_LIST

Re: how do you add parameters to soap:header in CXF generated WS client?

2009-12-14 Thread kenkyee
dkulp wrote: > > In anycase, since the wsdl sucks, you would need to drop to the API's > listed > in the FAQ. On the client side, the context would be the request > context: > ((BindingProvider)proxy).getRequestContext().put(HEADER_LIST, headers); > Yep, I'm surprised they didn't put this i

Re: how do you add parameters to soap:header in CXF generated WS client?

2009-12-14 Thread Daniel Kulp
Ideally, their WSDL would have defined soap:header things in the binding and then you could pass "-exsh true" to the code generator to add params for them automatically. However, their wsdl doesn't seem to do that. I personally think the hardest part of dealing with WebServices is dealing wi

Re: how do you add parameters to soap:header in CXF generated WS client?

2009-12-14 Thread kenkyee
karypid wrote: > > With JAX-WS, I think you can set a flag "header=true" in the web service > interface. Like: > public void someWebMethod(@WebParam(header=true) String myHeaderParam); > Unfortunately, I don't have control of the wsdl (it's Amazon's web service). In the PortType.java file t

Re: how do you add parameters to soap:header in CXF generated WS client?

2009-12-14 Thread Alexandros Karypidis
With JAX-WS, I think you can set a flag "header=true" in the web service interface. Like: public void someWebMethod(@WebParam(header=true) String myHeaderParam); The targetNamespace/name can be added to the annotation to specify these aspects. In fact, if you start from WSDL, I'm pretty sure

how do you add parameters to soap:header in CXF generated WS client?

2009-12-12 Thread kenkyee
I'm trying to make the soap header of WS client requests look like this (adding the aws parameters to the soap:header): http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/index.html?AuthJavaSampleSig2.html http://security.amazonaws.com/doc/2007-01-01/";> 1D9FVRAYCP1VJS767E02EXAMPLE