469,623 Members | 923 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

Getting soap request before sending message

Hello,

I have some code that calls an external webservice. To debug I want to
get the Soap message before it's send to the webservice. Is there a
way to get the soap message?

Some example of my code:

Dim iEx As New MySoap.TInfoEx
iEx.Value1 = 1
iEx.Value2 = "Value"

Dim Result() As MySoap.TResult
Result = ps.Calculate(iEx)

I want to get the Soap request before it's send to the webservice in
the last line.
Hope someone can help me with this. Thanks!

Jul 25 '07 #1
1 4356
If you are using the .NET platform, you need to look at the SOAPExtension
class. This allows you to hook the stream of SOAP inbound or outbound, do
whatever you want, then chain the stream on to its eventual destination in
the framework.

http://msdn2.microsoft.com/en-us/lib...on(VS.71).aspx

-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
bogMetaFinder: http://www.blogmetafinder.com

"Jens" wrote:
Hello,

I have some code that calls an external webservice. To debug I want to
get the Soap message before it's send to the webservice. Is there a
way to get the soap message?

Some example of my code:

Dim iEx As New MySoap.TInfoEx
iEx.Value1 = 1
iEx.Value2 = "Value"

Dim Result() As MySoap.TResult
Result = ps.Calculate(iEx)

I want to get the Soap request before it's send to the webservice in
the last line.
Hope someone can help me with this. Thanks!

Jul 25 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by mark kurten | last post: by
3 posts views Thread by mark kurten | last post: by
reply views Thread by Matt Wood | last post: by
16 posts views Thread by MR | last post: by
reply views Thread by kim123 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.