ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Error with NetTool

Post new topic  Reply to topic
 Error with NetTool « View previous topic :: View next topic » 
Author Message
ydsk
PostPosted: Thu Aug 24, 2006 7:55 am    Post subject: Error with NetTool Reply with quote

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. --&gt; There is an error in XML document (18, 37). --&gt; 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
View user's profile Send private message
mqmatt
PostPosted: Thu Aug 24, 2006 9:01 am    Post subject: Reply with quote

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
View user's profile Send private message
wschutz
PostPosted: Thu Aug 24, 2006 9:01 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Quote:
<faultstring>Server was unable to read request. --&gt; There is an error in XML document (18, 37). --&gt; Input string was not in a correct format.</faultstring>

_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
ydsk
PostPosted: Thu Aug 24, 2006 9:14 am    Post subject: Reply with quote

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
View user's profile Send private message
ydsk
PostPosted: Thu Aug 24, 2006 9:19 am    Post subject: Reply with quote

Chevalier

Joined: 23 May 2005
Posts: 410

aND HERE ARE THE values of HTTP headers:

Host = ucomsdigexvs01
Content-Type = text/xml; charset=utf-8
SOAPAction = http://ucomsdigexvs01/MVP_WS_Server/ContractReleaseAction
Back to top
View user's profile Send private message
ydsk
PostPosted: Thu Aug 24, 2006 11:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Error with NetTool
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.