Solved

How can I view WebService SOAP messages to check contents

Posted on 2008-10-07
2
536 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to count occurrences of each item in an array.

706 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

14 Experts available now in Live!

Get 1:1 Help Now