PDA

View Full Version : doc/literal support



thanel
Apr 3rd, 2006, 01:55 AM
Hi there,
I was wondering if there is any support for accessing document/literal type web services in spring. What I have read so far seems to suggest that spring has support for accessing RPC style web services. Just wanted to be sure I wasn't missing anything.

Thanks Tom.

alexb
Apr 21st, 2006, 08:52 AM
I have the same question. I created a test Spring-Axis web service packaged as a web application. The Axis 1.3 libraries and server configuration file are included in the war file. On the client side I extend JaxRpcPortProxyFactoryBean to register my data bean mappings. All that works nicely for RPC style web services. I can execute both my web service and the Google search service. However if I change the service style/use to document/literal for my Spring-Axis service, I start getting a "could not find deserializer for type ..." error on the client side. Any idea why is that happening?

Btw I noticed that my portType uses the parameterOrder option which is intended for RPC style services, and the top-level element in the SOAP response body is of the form <parametername>Return. why is that?

alexb
Apr 21st, 2006, 09:15 AM
I found an easy fix for that. For "literal" just set the DEFAULT_ENCODING_STYLE to an empty string (which looks quite natural). I'm still curious about the parameterOrder option though.

peterm
Mar 22nd, 2007, 11:09 AM
I found an easy fix for that. For "literal" just set the DEFAULT_ENCODING_STYLE to an empty string (which looks quite natural). I'm still curious about the parameterOrder option though.

Where exactly does the DEFAULT_ENCODING_STYLE directive go?

phunni
May 4th, 2007, 08:41 AM
Where exactly does the DEFAULT_ENCODING_STYLE directive go?

Bump - I have the same question...