users@jax-ws.java.net

Re: Errors consuming a PHP Based Web service through JAX-WS

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Tue, 07 Nov 2006 19:10:44 -0800

Sergio Gutierrez wrote:

>
> <message name="helloRequest">
> <part name="name" type="xsd:string"/>
> </message>
>
> <message name="helloResponse">
> <part name="return" type="xsd:string"/>
> </message>
>
> <ns2:hello xmlns:ns2="urn:hellowsdl">
> <name>Sergio</name>
> </ns2:hello>
>
> <!-- Response Begins ------------ -->
>
> <helloResponse xmlns="urn:hellowsdl">
> <return>Hello, Sergio</return>
> </helloResponse>
>
>
> <!-- Response Ends -->

Your server is sending a wrong response. Here "return" should be no
namespace, but the server sent {urn:hellowsdl}return. See BP requirement

http://www.ws-i.org/Profiles/BasicProfile-1.1.html#Part_Accessors

R2735 An ENVELOPE described with an rpc-literal binding MUST place the
part accessor elements for parameters and return value in no namespace.

See how jax-ws sent the request, where "name" is in no namespace.

>
> Is worth to say that when I use document/literal style, I receive
> another exception, so I did not try anymore with that style.

Send us the exception with all the details. I would think doc/lit will
have fewer number of issues.

> Sorry for sending so much information.

Sending all the information really helps.

Jitu