G
Gabriel Lacatus
Hello,
I am trying to intercept and analyze the XML request that is being sent by
the generated web reference to a 3rd party web service. The web service is
giving me an error when calling a method saying I didn't send correct data.
Whilst I am working with objects in my client code I cannot really
understand my mistake. That unless I can actually SEE what does the form of
the serialized XML request look like and compare it to the schema given in
the web service documentation I received.
I have tried overriding the GetResponse method in the web reference file but
I cannot read from the request stream ("This stream does not support seek
operations" exception).
I also tried Soap Extensions but again I can't seem to get my hands on the
data being sent to the web service.
Many of the examples I found on the internet explain how to intercept and
modify a request but in reality the modification is really a complete
replacement of the request so it has nothing to do with actually seeing what
was originally inside that request.
I learnt that TCP sniffers could be used but I don't know the ports used by
the .NET framework to communicate with the remote host. I couldn't find a
good such sniffer anyway...
I am completely lost. Can anybody give a hand?
Thank you.
I am trying to intercept and analyze the XML request that is being sent by
the generated web reference to a 3rd party web service. The web service is
giving me an error when calling a method saying I didn't send correct data.
Whilst I am working with objects in my client code I cannot really
understand my mistake. That unless I can actually SEE what does the form of
the serialized XML request look like and compare it to the schema given in
the web service documentation I received.
I have tried overriding the GetResponse method in the web reference file but
I cannot read from the request stream ("This stream does not support seek
operations" exception).
I also tried Soap Extensions but again I can't seem to get my hands on the
data being sent to the web service.
Many of the examples I found on the internet explain how to intercept and
modify a request but in reality the modification is really a complete
replacement of the request so it has nothing to do with actually seeing what
was originally inside that request.
I learnt that TCP sniffers could be used but I don't know the ports used by
the .NET framework to communicate with the remote host. I couldn't find a
good such sniffer anyway...
I am completely lost. Can anybody give a hand?
Thank you.