Groups > Borland > Dellphi web services soap > Re: see actual soap message (httpwebnodebeforepost event?)




Re: see actual soap message (httpwebnodebeforepost event?)

Re: see actual soap message (httpwebnodebeforepost event?)
Tue, 25 Mar 2008 17:04:45 -080
Hello Kerry,

OnBeforeExecute is how you can view the XML request we've generated. Seem
that you've done that already.

The OnBeforePost is to allow you to interact with the Transport/HTTP aspect
of the SOAP runtime. The Data is typeless because it's different on Linux
and Windows. Not that we do much Linux anymore but when this was written we
were:(

Under Win32 'Data' is really just a handle. You can see it used here:

http://groups.google.com/group/borland.public.delphi.webservices.soap/msg/c45bf3
cc163a5d3f


If you actually want to see the whole POST (HTTP headers and all), you'll
need to use something like proxyTrace:

  http://www.pocketsoap.com/tcptrace/pt.aspx

There are plenty of others that I often see mentioned here - like Ethereal.

Cheers,

Bruneau




"Kerry Frater" <kerry@jcs.co.uk> wrote in message
news:47e96b2e@newsgroups.borland.com...
> I have D7 Enterprise and am trying to use a third part webservice to get
> some data. The initial connection appears to work (no errors) and I can
call
> methods that does not require authentication.
>
> To authenticate I must make a call. The system is rejecting it saying
there
> is an error. The company says that the data is correct.
>
> I want to see the actual text being pushed out to the server server.
>
> I am using the component THHTPRIO
>
> I am leaving the component with its defaults. The events show an
> HTTPWEBNode->OnBeforePost event.
> I am guessing that this is the event just before the actual sending out of
> the request.
>
> I am also guessing that the Data: Pointer is a pointer to the actual data
> message sent.
>
> If this is try. Can I see it as a text stream that I can store so that I
can
> analyse and check it out?
>
> I hope I have explained this enough to get some help.
>
> I have viewed the SOAPRequest in the OnBeforeExecute event which seems to
> have a valid construct. I just want to check that it isn't being wrapped
> with something that is causing me a problem before posting.
>
> Kerry
>
>

Post Reply
see actual soap message (httpwebnodebeforepost event?)
Tue, 25 Mar 2008 21:14:16 -000
I have D7 Enterprise and am trying to use a third part webservice to get
some data. The initial connection appears to work (no errors) and I can call
methods that does not require authentication.

To authenticate I must make a call. The system is rejecting it saying there
is an error. The company says that the data is correct.

I want to see the actual text being pushed out to the server server.

I am using the component THHTPRIO

I am leaving the component with its defaults. The events show an
HTTPWEBNode->OnBeforePost event.
I am guessing that this is the event just before the actual sending out of
the request.

I am also guessing that the Data: Pointer is a pointer to the actual data
message sent.

If this is try. Can I see it as a text stream that I can store so that I can
analyse and check it out?

I hope I have explained this enough to get some help.

I have viewed the SOAPRequest in the OnBeforeExecute event which seems to
have a valid construct. I just want to check that it isn't being wrapped
with something that is causing me a problem before posting.

Kerry

Post Reply
Re: see actual soap message (httpwebnodebeforepost event?)
Wed, 26 Mar 2008 07:16:50 -000
Thanks Bruneau for a good concise explanation.

Many thanks.

Kerry

"Jean-Marie Babet" <bbabet@borland.com> wrote in message
news:47e9a04a$1@newsgroups.borland.com...
> Hello Kerry,
>
> OnBeforeExecute is how you can view the XML request we've generated. Seem
> that you've done that already.
>
> The OnBeforePost is to allow you to interact with the Transport/HTTP
aspect
> of the SOAP runtime. The Data is typeless because it's different on Linux
> and Windows. Not that we do much Linux anymore but when this was written
we
> were:(
>
> Under Win32 'Data' is really just a handle. You can see it used here:
>
>
http://groups.google.com/group/borland.public.delphi.webservices.soap/msg/c45bf3
cc163a5d3f
>
>
> If you actually want to see the whole POST (HTTP headers and all), you'll
> need to use something like proxyTrace:
>
>   http://www.pocketsoap.com/tcptrace/pt.aspx
>
> There are plenty of others that I often see mentioned here - like
Ethereal.
>
> Cheers,
>
> Bruneau
>
>
>
>
> "Kerry Frater" <kerry@jcs.co.uk> wrote in message
> news:47e96b2e@newsgroups.borland.com...
> > I have D7 Enterprise and am trying to use a third part webservice to
get
> > some data. The initial connection appears to work (no errors) and I
can
> call
> > methods that does not require authentication.
> >
> > To authenticate I must make a call. The system is rejecting it saying
> there
> > is an error. The company says that the data is correct.
> >
> > I want to see the actual text being pushed out to the server server.
> >
> > I am using the component THHTPRIO
> >
> > I am leaving the component with its defaults. The events show an
> > HTTPWEBNode->OnBeforePost event.
> > I am guessing that this is the event just before the actual sending
out
of
> > the request.
> >
> > I am also guessing that the Data: Pointer is a pointer to the actual
data
> > message sent.
> >
> > If this is try. Can I see it as a text stream that I can store so that
I
> can
> > analyse and check it out?
> >
> > I hope I have explained this enough to get some help.
> >
> > I have viewed the SOAPRequest in the OnBeforeExecute event which
seems
to
> > have a valid construct. I just want to check that it isn't being
wrapped
> > with something that is causing me a problem before posting.
> >
> > Kerry
> >
> >
>
>

Post Reply
Re: see actual soap message (httpwebnodebeforepost event?)
Wed, 26 Mar 2008 12:46:26 -000
Tried proxytrace

I then set the Proxy property of hte HTTPWebNode property on the THTTPRIO
pbject.

The applet starts then "hangs". Proxytrace shows a source IP
(127.0.0.1) no
destination, status connected, 178 bytes in, no bytes out.

top right text box shows connect to the right http://, User-Agent: Borland
SOAP 1.2

nothing happens on the app until I close Proxytrace, then it responds to me.

Any pointers. I may have theoretical knowledge in this area but my practical
work is very spaced out.

Kerry



"Jean-Marie Babet" <bbabet@borland.com> wrote in message
news:47e9a04a$1@newsgroups.borland.com...
> Hello Kerry,
>
> OnBeforeExecute is how you can view the XML request we've generated. Seem
> that you've done that already.
>
> The OnBeforePost is to allow you to interact with the Transport/HTTP
aspect
> of the SOAP runtime. The Data is typeless because it's different on Linux
> and Windows. Not that we do much Linux anymore but when this was written
we
> were:(
>
> Under Win32 'Data' is really just a handle. You can see it used here:
>
>
http://groups.google.com/group/borland.public.delphi.webservices.soap/msg/c45bf3
cc163a5d3f
>
>
> If you actually want to see the whole POST (HTTP headers and all), you'll
> need to use something like proxyTrace:
>
>   http://www.pocketsoap.com/tcptrace/pt.aspx
>
> There are plenty of others that I often see mentioned here - like
Ethereal.
>
> Cheers,
>
> Bruneau
>
>
>
>
> "Kerry Frater" <kerry@jcs.co.uk> wrote in message
> news:47e96b2e@newsgroups.borland.com...
> > I have D7 Enterprise and am trying to use a third part webservice to
get
> > some data. The initial connection appears to work (no errors) and I
can
> call
> > methods that does not require authentication.
> >
> > To authenticate I must make a call. The system is rejecting it saying
> there
> > is an error. The company says that the data is correct.
> >
> > I want to see the actual text being pushed out to the server server.
> >
> > I am using the component THHTPRIO
> >
> > I am leaving the component with its defaults. The events show an
> > HTTPWEBNode->OnBeforePost event.
> > I am guessing that this is the event just before the actual sending
out
of
> > the request.
> >
> > I am also guessing that the Data: Pointer is a pointer to the actual
data
> > message sent.
> >
> > If this is try. Can I see it as a text stream that I can store so that
I
> can
> > analyse and check it out?
> >
> > I hope I have explained this enough to get some help.
> >
> > I have viewed the SOAPRequest in the OnBeforeExecute event which
seems
to
> > have a valid construct. I just want to check that it isn't being
wrapped
> > with something that is causing me a problem before posting.
> >
> > Kerry
> >
> >
>
>

Post Reply
Re: see actual soap message (httpwebnodebeforepost event?)
Wed, 26 Mar 2008 14:31:54 -080
Hello,

As mentioned in another post, you can set the proxy settings at a global
level. All of your WinInet HTTP requests (for example, browsing in IE) will
then go through proxyTrace. Hope that helped.

Cheers,

Bruneau.

Post Reply
<< Previous 1 2 3 Next >>
( Page 1 of 3 )
about | contact