I am having a problem in making a call using Axis client. I have
generated the client in java using wsdl file. when I make the call using
this client it generates a SOAP request message, that I have pasted below,
which contains a terminating zero in it . This terminating zero is
creating problem for the web service server to recognize the recieving
request message as a valid xml format for SOAP. Does any body have idea
why this terminating zero is for? How can I remove this terminating zero
from the SOAP request. SOAP request & response messages are as
follows:
*********************************SOAP
Request*************************************************
POST http://ws-server:1080/eproxy/service/security
HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction:
"http://ABC.com/Security/LoginExtended"
User-Agent: Axis/1.4
Host: vs-devbwb:1080
Proxy-Connection:
Keep-Alive
Transfer-Encoding: chunked
387
<?xml
version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<ns1:BrokerHeader
soapenv:mustUnderstand="0" xmlns:ns1="http://ABC.com/Common">
<SystemCredentialStore>CorporateAD</SystemCredentialStore>
<SystemId>APPACCTEST</SystemId>
<SystemPassword>ABC</SystemPassword>
<SystemCredentialStore>CorporateAD</SystemCredentialStore>
<UserId>APPACCTEST</UserId>
<UserPassword>ABC</UserPassword>
<ITData>
<Entries>
<Entry>
<key>SystemIPAddress</key>
<value>10.0.223.120</value>
</Entry>
<Entry>
<key>UserIPAddress</key>
<value>10.0.31.52</value>
</Entry>
</Entries>
</ITData>
</ns1:BrokerHeader>
</soapenv:Header>
<soapenv:Body>
<LoginExtended xmlns="http://ABC.com/Security">
<stateInfo>state</stateInfo>
</LoginExtended>
</soapenv:Body>
</soapenv:Envelope>0
******************************************SOAP
Response**************************************
HTTP/1.1 500 Internal
Server Error
Connection: close
Date: Mon, 07 Apr 2008 16:56:51
GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Content-Length: 376
Cache-Control:
private
Content-Type: text/xml; charset=UTF-8
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode
xmlns:tns="http://schemas.xmlsoap.org/soap/envelope/">tns:Client.InvalidMessage</faultcode>
<faultstring>XML parse failed to build a document from
bytes</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
*****************************************************************************************************
Regards