Author |
Message
|
ydsk |
Posted: Thu Aug 24, 2006 7:55 am Post subject: Error with NetTool |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
I wanted to test a .NET webservice( created by some one else) with NetTool ( I am new to both) before using a msgflow as a client. But I am getting the following error on the right-hand window of NetTool after I send a soap message to the service:
HTTP/1.1 500 Internal Server Error.
Connection: close
Date: Thu, 24 Aug 2006 15:47:15 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Content-Length: 524
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Server was unable to read request. --> There is an error in XML document (18, 37). --> Input string was not in a correct format.</faultstring>
<detail />
</soap:Fault>
</soap:Body>
</soap:Envelope>
I am using the exact headers as the webservice needs ( I double checked them). I am unable to understand why it says Input String not in a correct format.
Somebody pls help me. This is urgent.
Thanks. |
|
Back to top |
|
 |
mqmatt |
Posted: Thu Aug 24, 2006 9:01 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
It says the input string was not valid... so what was it? |
|
Back to top |
|
 |
wschutz |
Posted: Thu Aug 24, 2006 9:01 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
<faultstring>Server was unable to read request. --> There is an error in XML document (18, 37). --> Input string was not in a correct format.</faultstring>
|
_________________ -wayne |
|
Back to top |
|
 |
ydsk |
Posted: Thu Aug 24, 2006 9:14 am Post subject: |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
hERE'S THE INPUT MSG:
<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<CPACancellationAction
xmlns="http://ucomsdigexvs01/MVP_WS_Server/">
<message>
<cpa>
<ContractReleaseMSPId>0</ContractReleaseMSPId>
<ContractNumber>CPA0001</ContractNumber>
<ContractReleaseNumber>R0001</ContractReleaseNumber>
<PassportInstanceName>EDD</PassportInstanceName>
<TransNumverVMS>VMS0001</TransNumverVMS>
<CancelDateCPA>8/24/2006 10:07:20 AM</CancelDateCPA>
<CancelEmplID>Radim</CancelEmplID>
<CancelReason>NotGood</CancelReason>
<TimeStamp>8/24/2006 10:07:20 AM</TimeStamp>
</cpa>
<MessageID>1</MessageID>
<MessageType>A</MessageType>
<UserName>Me</UserName>
<UserPswd>me</UserPswd>
</message>
</CPACancellationAction>
</soap:Body>
</soap:Envelope> |
|
Back to top |
|
 |
ydsk |
Posted: Thu Aug 24, 2006 9:19 am Post subject: |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
|
Back to top |
|
 |
ydsk |
Posted: Thu Aug 24, 2006 11:07 am Post subject: |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
The issue got resolved. Thanks every one.
The webservice was implemented in .NET and one of the fields was defined as a CHAR on the server side. I was sending a value of 'A' but it seems the service wasn't accepting it as a CHAR occupies different number of bytes in .NET, Java, and other environments.
The CHAR type was changed to a STRING on the .NET side and everything worked well !
regds,
ydsk. |
|
Back to top |
|
 |
|