Problem with XML and SOAP - How can I see the XML I send?

Pevans
Member Posts: 18
I am calling some webservices using SOAP Toolkit 3.0, and my requests reach their destination and I receive my replies correctly.
Everything is fine and dandy - but how can I see the XML that I send out?
Currently I am using:
SoapSerialize.StartEnvelope(...);
SoapSerialize.StartBody(...);
SoapSerialize.WriteXML(...);
SoapSerialize.EndBody(...);
SoapSerialize.EndEnvelope(...);
... and such, and would like to see what all of this looks like in the end as plain text (XML).
Now, I get my reply in the "OutPutStream".
What I would like would be to be able to view my "InPutStream" in the same way that I can with my OutputStream, but my InputStream seems to always be empty.
There must be some way to be able to see what you are actually sending. Anyone know how? :-k
Everything is fine and dandy - but how can I see the XML that I send out?
Currently I am using:
SoapSerialize.StartEnvelope(...);
SoapSerialize.StartBody(...);
SoapSerialize.WriteXML(...);
SoapSerialize.EndBody(...);
SoapSerialize.EndEnvelope(...);
... and such, and would like to see what all of this looks like in the end as plain text (XML).
Now, I get my reply in the "OutPutStream".
What I would like would be to be able to view my "InPutStream" in the same way that I can with my OutputStream, but my InputStream seems to always be empty.
There must be some way to be able to see what you are actually sending. Anyone know how? :-k
0
Comments
-
I am also trying to use the SOAP SDK3, but when ever I call SoapHttpConnector.EndMessage() i get a vague error:
An exception was raised in method EndMessage. The OLE control or Automation server has returned error (HRESULT) -2147352567. The component did not provide the exception description.
I suspect that the SoapHttpConnector.Connect() call is failing, but the error does not reveal itselft until I try to send the request down the connection.
Any revelations are welcome!0 -
Can't you use a simple network sniffer? this way you can check what is send out and in.0
-
Has anyone found a solution for error message -2147352567. I've got the same problem.Rallnus (Yamaha FJ1200 - '89 / 25th anniversary was great!)0
-
Hi,
I also have the same HRESULT -2147352567 error calling the EndMessage method.
Can anybody tell me anything about this?
Thank you.0 -
gjgarciasm wrote:Hi,
I also have the same HRESULT -2147352567 error calling the EndMessage method.
Can anybody tell me anything about this?
Thank you.
DISP_E_EXCEPTION 0x80020009 -2147352567
usually means that you made an error, for example, call EndMessage with inappropriate input or something like that.
check that you followed all rules while creating http connection and xml in bitween.
btw. you may found (unofficial) HRESULTS Error list here:
http://news.speeple.com/msdn.com/2007/0 ... -codes.htm
not too helpfull but can be usefull in some situations.
for example, on this list you will find appropriate HEX code for that error (list is made in format: Name, Hex, Decimal) and then google for hex code results which are usual as an error code for standard program languages.
Google gave me this:
http://discuss.develop.com/archives/wa. ... ap&P=10547Error Type: Client (0x80020009) WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057 - WSDLReader:XML Parser failed at linenumber 0, lineposition 0, reason is: System error: -2146697208. HRESULT=0x1 /SOAP/Default.asp, line 4
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions