Hi Roman,
I actually caught sight of the SoapClientAsyncResult via Reflector. I was
just wondering if there is a faster way to do it. I do not want to use the
SoapClient as it does its own serialization by adding the addressing headers
and such. I already have a ready message to send, with all complete headers
and all.
Looks like I have to roll up my sleeves and do some deep plumbing :)
--
Thank you.
Regards,
William T (Softwaremaker)
==================================
[quoted text, click to view] "Roman Kiss [MVP]" <rkiss@pathcom.com> wrote in message
news:e9bXw4vBFHA.2012@TK2MSFTNGP15.phx.gbl...
> William,
>
> have a look at SoapClientAsyncResult internal class of the SoapClient.
This
> class handles a SendOneWay and waiting for its response message. Based on
> this implementation you can implement your Sender using the BeginSend
> method. All hooks are done based on the OnSendComplete and
OnReceiveComplete
> callbacks.
>
> Note that OnSendComplete is calling the method channel.BeginReceive with
the
> properly OnReceiveComplete callback.
>
> HTH
>
> Roman Kiss
>
>
>
> "Softwaremaker" <msdn@removethis.softwaremaker.net> wrote in message
> news:OQMH%23CnBFHA.1408@TK2MSFTNGP10.phx.gbl...
> > Fellas,
> >
> > In a bit of a bind here, would appreciate any help / pointers I can get.
> >
> > I am in the midst of writing up some demo utility to send a Soap Message
> > to
> > a listening TCP Client. I am not using the higher level abstractions
such
> > as
> > a SoapClient. Instead I am *punishing myself* by using the SoapIOChannel
> > and
> > SoapTcpTransport.
> >
> > I have managed to send a SoapMessage to the listener. The listener is
> > processing and returning a corresponding Soap Message response. Now,
> > AFAIK,
> > the Send method on the GetOutputChannel just sends the message to the
> > channel. How do I listen for the response ? I understand there is a
> > GetInputChannel as well BUT somehow I cannot figure out how to hook both
> > of
> > them together.
> >
> > Take note that the TCP Service is returning a response synchronously.
This
> > is something similar to the SoapClient.SendRequestResponse method. The
> > difference is that I am manually sending a Soap Message across the wire
> > without any need for serialization.
> >
> > Can anyone here give me some pointers ? Thank you.
> >
> > --
> > Thank you.
> >
> > Regards,
> > William T
> > ==================================
> >
> >
>
>