Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 548
  • Last Modified:

How can I view WebService SOAP messages to check contents

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
Gary2Seven
Asked:
Gary2Seven
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
have you tried fiddler (http://www.fiddlertool.com/fiddler/) ?
0
 
Gary2SevenAuthor Commented:
Great that shows everything thanks!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now