Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java SOAP Client and PEAR SOAP SERVER

843834Sep 3 2004 — edited Sep 23 2004
Hi,

I have been working on a simple java client for a couple of days now and I have this problem.

Every time I query my PHP SOAP server, my response.getSOAPBody() is returnig null.

I know I am getting the correct response from the server because if I do a response.writeTo(System.out) I am getting the following output which does contain the data I am looking for.

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns4="urn:Test2"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns4:serverTimestampResponse>
<return xsi:type="xsd:int">1094206838</return></ns4:serverTimestampResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I also have a PHP PEAR SOAP client which uses the same SOAP server and this works fine.

Has anyone come across this problem before, and if so, can they tell me how they fixed it.

Thanks




Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 21 2004
Added on Sep 3 2004
1 comment
127 views