|
| View incoming SOAP Envelope? |
 |
Thu, 27 Mar 2008 08:09:35 -050 |
Is there any way to view/log the actual SOAP evelope that was
submitted to a web service?
I am getting error from one client in particular, and I would love to
see what is actually being sent in so I can compare with envelopes
that are sent in by other clients who are not having problems.
|
| Post Reply
|
| Re: View incoming SOAP Envelope? |
 |
Thu, 27 Mar 2008 11:07:37 -050 |
Albert,
Yes, this helps immeasurably with my ISAPI/WebModule based
projects. Thanks!
Is there anything similar for .NET based projects? I looked
at the events for System.Web.Services.WebService and the only event I
see is Disposed.
- - Thanks again for the quick response.
On Thu, 27 Mar 2008 15:30:04 +0100, "albert"
<a.drent@remove.rug.nl>
wrote:
>procedure TWebModule1.WebModule1DefaultHandlerAction(Sender: TObject;
> Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
>begin
> WSDLHTMLPublish1.ServiceInfo(Sender, Request, Response, Handled);
>end;
>
>procedure TWebModule1.WebModuleBeforeDispatch(Sender: TObject;
> Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
>var sl : TStringList;
>begin
> sl := TStringList.Create;
> sl.Add(Request.URL);
> sl.Add(Request.InternalScriptName);
> sl.Add(Request.Method);
> sl.Add(Request.ContentFields.Text);
> sl.SaveToFile('c:\temp\temp.txt');
> sl.Free;
>end;
>
>Hope this helps
>
>albert
>
>"Jano" <Jano@Nowhere.Fake.Address.com> schreef in bericht
>news:rv6nu3h7qfqctfljvdi8u042fd5l7gpe7v@4ax.com...
>> Is there any way to view/log the actual SOAP evelope that was
>> submitted to a web service?
>>
>> I am getting error from one client in particular, and I would love to
>> see what is actually being sent in so I can compare with envelopes
>> that are sent in by other clients who are not having problems.
>>
>> - - Thanks!
|
| Post Reply
|
| Re: View incoming SOAP Envelope? |
 |
Thu, 27 Mar 2008 15:30:04 +010 |
procedure TWebModule1.WebModule1DefaultHandlerAction(Sender: TObject;
Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
begin
WSDLHTMLPublish1.ServiceInfo(Sender, Request, Response, Handled);
end;
procedure TWebModule1.WebModuleBeforeDispatch(Sender: TObject;
Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
var sl : TStringList;
begin
sl := TStringList.Create;
sl.Add(Request.URL);
sl.Add(Request.InternalScriptName);
sl.Add(Request.Method);
sl.Add(Request.ContentFields.Text);
sl.SaveToFile('c:\temp\temp.txt');
sl.Free;
end;
Hope this helps
albert
"Jano" <Jano@Nowhere.Fake.Address.com> schreef in bericht
news:rv6nu3h7qfqctfljvdi8u042fd5l7gpe7v@4ax.com...
> Is there any way to view/log the actual SOAP evelope that was
> submitted to a web service?
>
> I am getting error from one client in particular, and I would love to
> see what is actually being sent in so I can compare with envelopes
> that are sent in by other clients who are not having problems.
>
> - - Thanks!
|
| Post Reply
|
|
|
|
|
|
|
|
|
|