Solved

How can I view WebService SOAP messages to check contents

Posted on 2008-10-07
2
542 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 70

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

739 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