Skip to main content

Null object on client despite the XML response from WebService

No replies
VerrNum
Offline
Joined: 2013-09-11
Points: 0

Hello Everybody,

I need your help.
The version used is JAX-WS RI 2.2.6b21 / SOAP 1.2

I am developing a WS client to connect a WebService server made by a vendor.
I am able to send the next XML request :

<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope">
<S:Body>
<ns2:executeAbout xmlns:ns2="http://vendor.com/">
<About/>
</ns2:executeAbout>
</S:Body>
</S:Envelope>

and below the XML response form WebService server :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://vendor.com/">
<soapenv:Body>
<executeAboutResponse xmlns="">
<AboutResponse success="true">
</AboutResponse>
</executeAboutResponse>
</soapenv:Body>
</soapenv:Envelope>

But unfortunatly, the JAVA object response is null and no java exception is raised :


AboutType aboutType = new AboutType();
AboutResponseType aboutResponse = myProxy.executeAbout(aboutType);
assertNotNull(aboutResponse);

What I understood by searching on internet, it's a namespace issue in the reponse.
But where is the issue and how to fix it ?

Thanks a lot for your help, I'm out of idea.