Re: Access to SOAP parameters and parameter names in interceptor

2014-03-31 Thread David Hay
Ok, yes, that's what I'm doing on the REST side. I've added @WebParam for the SOAP calls, but can't figure out how to access it by name. Where should I expect to see them? On Fri, Mar 28, 2014 at 12:37 PM, Sergey Beryozkin sberyoz...@gmail.comwrote: You probably refer to the names set in

Re: Access to SOAP parameters and parameter names in interceptor

2014-03-31 Thread Daniel Kulp
On Mar 31, 2014, at 3:49 PM, David Hay david@enstratius.com wrote: Ok, yes, that's what I'm doing on the REST side. I've added @WebParam for the SOAP calls, but can't figure out how to access it by name. Where should I expect to see them? On the SOAP side, if you grab the

Access to SOAP parameters and parameter names in interceptor

2014-03-28 Thread David Hay
Hi, I'm sure this has been asked before, but I can't seem to find the answer. I need to validate SOAP parameters, so need to access the incoming parameter name/value in a Interceptor. How would I do this? cheers David

RE: Access to SOAP parameters and parameter names in interceptor

2014-03-28 Thread Michael Hoffman
David, One resource to check out is Glen Mazza's weblog on custom interceptors: http://www.jroller.com/gmazza/entry/jaxwshandlers_to_cxfinterceptors You can implement an interceptor based on the AbstractSoapInterceptor as part of the server inbound interceptor chain. This will give you

Re: Access to SOAP parameters and parameter names in interceptor

2014-03-28 Thread Jose María Zaragoza
2014-03-28 14:46 GMT+01:00 David Hay david@enstratius.com: Hi, I'm sure this has been asked before, but I can't seem to find the answer. I need to validate SOAP parameters, so need to access the incoming parameter name/value in a Interceptor. What kind of SOAP parameters ? How would

Re: Access to SOAP parameters and parameter names in interceptor

2014-03-28 Thread Sergey Beryozkin
You probably refer to the names set in annotations like PathParam(id) ? If so then Soap WebParam should give the same info... Cheers, Sergey On 28/03/14 16:34, David Hay wrote: Thanks... Unfortunately it looks like Method only gives you the param names if debug is enabled during

Re: Access to SOAP parameters and parameter names in interceptor

2014-03-28 Thread Sergey Beryozkin
This should give the list of parameters: final List Object arguments = MessageContentsList.getContentsList(message); (the values are in the order the parameters are declared) and given the Method you can get to the names. By the way, check Bean Validation feature, it will work for JAXWS,

Re: Access to SOAP parameters and parameter names in interceptor

2014-03-28 Thread David Hay
Hi, Sorry if I wasn't clear - I'm trying to access the parameters passed to the backend SOAP Service methods, so x and y in this case... public void doThis(String x, String y) {...} On Fri, Mar 28, 2014 at 9:49 AM, Jose María Zaragoza demablo...@gmail.comwrote: 2014-03-28 14:46 GMT+01:00

Re: Access to SOAP parameters and parameter names in interceptor

2014-03-28 Thread David Hay
Thanks... Unfortunately it looks like Method only gives you the param names if debug is enabled during compilation... CXF has that info for REST calls - it doesn't for SOAP? On Fri, Mar 28, 2014 at 11:49 AM, Sergey Beryozkin sberyoz...@gmail.comwrote: This should give the list of parameters: