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 » XML exception in web service message flow

Post new topic  Reply to topic
 XML exception in web service message flow « View previous topic :: View next topic » 
Author Message
dilse
PostPosted: Tue Feb 12, 2008 11:59 pm    Post subject: XML exception in web service message flow Reply with quote

Master

Joined: 24 Jun 2004
Posts: 270

Hi All,
I need ittle help in analyzing the situation I am in. I am working on a MB V6 & MQ V6 environment.
I wrote a web service message flow that is of the following sequence. HttpInput --> SOAP Extract --> JCN --> SOAPEnvelope --> HTTReply. I wrote two methods under this web service recognizable with different SOAPActions. When I tested, one is returning a proper SOAP response while another is complaining with the error "System.Xml.XmlException: The data at the root level is invalid. Line 1, position 1".
I used Netttol to analyze the response fromat and it looks good.
Can anyone shed some light as to why am I getting this error?
Note: I am using the SOAP envelope that was removed at SOAPExtract node before HttpReply.

Thanks for any input...
DilSe..
Back to top
View user's profile Send private message
AJStar
PostPosted: Wed Feb 13, 2008 2:30 am    Post subject: Reply with quote

Acolyte

Joined: 27 Jun 2007
Posts: 64

Can you post both the responses from the trace?
_________________
Regards
AJ
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Feb 13, 2008 2:43 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Once again...
Please take a user trace. It will contain the full text of all exceptions. User trace should be a central plank of your problem diagnosis strategy.
Back to top
View user's profile Send private message
dilse
PostPosted: Wed Feb 13, 2008 10:41 am    Post subject: Reply with quote

Master

Joined: 24 Jun 2004
Posts: 270

Thanks for your responses. I will try to get the user trace.

Again Thanks,

DilSe..
Back to top
View user's profile Send private message
dilse
PostPosted: Wed Feb 13, 2008 1:45 pm    Post subject: Reply with quote

Master

Joined: 24 Jun 2004
Posts: 270

I extracted the user trace for these two methods and the only difference that I can see is that, one doesn't have any elements that has some special characters in it such as ','(Comma) , '''(apostrophe), and the other has some special characters like these in the XML. How do I correct the response so that I will not be seeing the XML Exception.

Any input is appreciated....


DilSe..
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Feb 13, 2008 1:50 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If you post the exception from the trace...
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
dilse
PostPosted: Wed Feb 13, 2008 2:38 pm    Post subject: Reply with quote

Master

Joined: 24 Jun 2004
Posts: 270

Trace does not have any exception but when my client(webservice Studio) receives the response it is complaining with the XML Exception saying "System.Xml.XmlException: The data at the root level is invalid. Line 1, position 1"
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Feb 13, 2008 4:03 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
I extracted the user trace for these two methods and the only difference that I can see is that, one doesn't have any elements that has some special characters in it such as ','(Comma) , '''(apostrophe), and the other has some special characters like these in the XML. How do I correct the response so that I will not be seeing the XML Exception

The answer depends on what the problem is - and we don't know that yet. Please paste the response message into a browser ( or use some other XML parser ) and get a better error message.
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 » XML exception in web service message flow
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.