Solved

How can I view WebService SOAP messages to check contents

Posted on 2008-10-07
2
537 Views
Last Modified: 2013-11-18
I am accessing a WebService from VB.Net using a WebReference within my project.

I am getting an error, which I am told by the WebService providor is due to invalid credentials.
Therefore want to view the underlying SOAP messages to see exactly what is being sent.

I have tried the following:
Dim MyProxy As New WebProxy("http://<LocalMachineName>", 8080)
WebServiceLink.Proxy = MyProxy

And then using SoapTrace.exe acting as a proxy on localhost:8080
But I get an error message when running the code saying the "remote name could not be resolved"

Any ideas how I can fix this? or any other way to view the SOAP details?

BTW: my code for setting the credentials is:
Dim myCache As New CredentialCache
myCache.Add(New Uri(WebServiceLink.Url), "basic", New NetworkCredential(UserName, Password))
WebServiceLink.Credentials = myCache.GetCredential(New Uri(synXisWebServiceLink.Url), "basic")
WebServiceLink.PreAuthenticate = True

See anything wrong with that?
0
Comment
Question by:Gary2Seven
2 Comments
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 125 total points
ID: 22658815
have you tried fiddler (http://www.fiddlertool.com/fiddler/) ?
0
 
LVL 2

Author Closing Comment

by:Gary2Seven
ID: 31503799
Great that shows everything thanks!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now