From the message, you can get the Exchange and from that, you can get the 
BindingOperationInfo  (exchange.get(BindingOperationInfo.class)).   From 
that, you can query the out message and from there the parts for that 
message.   In those parts should be the qnames and schema types and such.

Dan


On Monday 25 August 2008 3:51:27 pm John Hite wrote:
> Thanks, that helps a lot. I'm now stuck with a different problem.
> RPC/Encoded style messages require the types to be specified for parameters
> and return values. Is there some way of finding the return parameter type
> information from the Message object?
>
> Thanks,
> John
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Ian Roberts
> Sent: Wednesday, August 20, 2008 7:08 PM
> To: [email protected]
> Subject: Re: Using document/literal and rpc/encoded in same web service
>
> John Hite wrote:
> > 2) is there some way of marking the
> > messages on the way in so I know which messages need to be translated on
> > their way out?
>
> The in and out messages share the same Exchange object, so in your "in"
> interceptor, something like:
>
> message.getExchange().put("shouldUseRpcEncoded", Boolean.TRUE);
>
> and in your "out" interceptor:
>
> if(Boolean.TRUE.equals(message.getExchange().get("shouldUseRpcEncoded"))) {
>   ...
> }
>
> Ian



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to