Solved

How can I view WebService SOAP messages to check contents

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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

624 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