Hey Glen, your links are very interesting, especially the last. I'm following
that way now...

One thing I don't understand; how can I specify that an entire service takes
also some parameters in the header? I would have the possibility to not
specify those parameters in every call. For example (PSEUDO CODE):

Service s = new Service();
s.setLocale("en-US");

s.callMethod1(param1)
s.callMethod2(param2)
s.callMethod3(param3)

In the way you described, as I understand, every method in the remote
interface must add further parameters. For me, it would desiderable to not
change the existing interface because I have a great amount of services.


Cecchi Sandrone wrote:
> 
> Thank you I will try one of these!
> 
> Glen Mazza wrote:
>> 
>> Sure, with JAX-WS Handlers--take a look at the SOAPHandler.java in Step
>> #5 here: http://www.jroller.com/gmazza/entry/jaxws_handler_tutorial . CXF
>> interceptors are another option, check ClientInterceptors.java here:
>> http://www.jroller.com/gmazza/entry/jaxwshandlers_to_cxfinterceptors.
>> 
>> In either case, you'll most probably want to add these elements to the
>> soap header, not the soap body.
>> 
>> Finally, if you're allowed to do WSDL modification, you can add the
>> metadata as implicit SOAP headers which will give you an actual parameter
>> in your SOAP calls to add this data:
>> http://www.jroller.com/gmazza/entry/using_implicit_soap_headers_with.
>> 
>> HTH,
>> Glen
>> 
>> 
>> Cecchi Sandrone wrote:
>>> 
>>> I was wondering if it's possible to add some metadata to a WebService
>>> call. In my case this can be useful to send the client locale; this can
>>> be very useful to translate error messages or other strings in the
>>> server side. Is it possible to do?
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Add-metadata-to-a-service-call-tp28831515p28853781.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to