Author |
Message
|
dilse |
Posted: Tue Feb 12, 2008 11:59 pm Post subject: XML exception in web service message flow |
|
|
 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 |
|
 |
AJStar |
Posted: Wed Feb 13, 2008 2:30 am Post subject: |
|
|
 Acolyte
Joined: 27 Jun 2007 Posts: 64
|
Can you post both the responses from the trace? _________________ Regards
AJ |
|
Back to top |
|
 |
kimbert |
Posted: Wed Feb 13, 2008 2:43 am Post subject: |
|
|
 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 |
|
 |
dilse |
Posted: Wed Feb 13, 2008 10:41 am Post subject: |
|
|
 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 |
|
 |
dilse |
Posted: Wed Feb 13, 2008 1:45 pm Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Wed Feb 13, 2008 1:50 pm Post subject: |
|
|
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 |
|
 |
dilse |
Posted: Wed Feb 13, 2008 2:38 pm Post subject: |
|
|
 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 |
|
 |
kimbert |
Posted: Wed Feb 13, 2008 4:03 pm Post subject: |
|
|
 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 |
|
 |
|