On Friday 19 November 2010 2:45:14 pm Raughan wrote:
> Here is the actual response being returned from the web server, so the
> client must not be parsing properly
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <ns1:getEnvironmentResponse
> xmlns:ns1="http://service.environment.backend.app.company.com/">
> <ns1:return>data</ns1:return>
> </ns1:getEnvironmentResponse>
> </soap:Body>
> </soap:Envelope>
There are two issues:
1) The "return" name. Your @WebResult specifies "environment".
2) Qualified element. JAX-WS, by default, expects and generates unqualified
child elements. Thus, you would need to change your interface to something
like:
@WebMethod(operationName="getEnvironment" )
@WebResult(name="return",
targetNamespace="http://service.environment.backend.app.company.com/")
public String getEnvironment();
--
Daniel Kulp
[email protected]
http://dankulp.com/blog