[quoted text, click to view] > I don't quite follow the ReplyTo issue. ReplyTo is set by default for
> request response in WSE (even if you don't set it). The default value is
the
> anonymous role as outlined in WS-Addressing.
OK, I can't set the ReplyTo value of the SoapEnvelope header myself, because
then the response would be sent to that address. Not what I want. In a
sense, what I want is unrelated messages to be sent to some specified
address, and the response sent to the sender of the request.
[quoted text, click to view] >
> There are several ways to create headers. One way is to add reference
> properties in the destination EPR. Another way is to use the SoapHeader
> attribute of ASMX. The other option is the one you suggested. Create one
> first:
OK, not sure if we are talking about the same side. I am talking
client-side. Also, I don't use an autogenerated proxy. Setting the
SoapHeader attribute of ASMX seems to be done server-side, and would thus
only work if the proxy is autogenerated.
[quoted text, click to view] >
> XmlElement header = message.Context.Envelope.CreateHeader();
OK, this might help... I hadn't seen this function yet.
Thanks.
[quoted text, click to view] >
>
>
>
>
> "SA" <informatica@freemail.nl> wrote in message
> news:uW1hmz$bEHA.796@TK2MSFTNGP09.phx.gbl...
> > Hi all,
> >
> > I need to provide the service with a piece of infrastructure
information,
> > namely where to send "events" to during a long-running process.
> >
> > I can't use ReplyTo because the reply to the Soap message must be sent
to
> > the Address.
> >
> > I tried adding a new element to the header of my SoapEnvelope like this:
> >
> > Envelope.Header.AppendChild(SomeXml)
> >
> > (SomeXml is an XmlDocument,
> > <EventReceiverUrl>soap.tcp://somehost/someuri</EventReceiverUrl>)
> >
> > At the time I am doing this, Envelope.Header is Nothing. I try to set
this
> > header after I have added my body object to the envelope. I am going to
> have
> > to write a custom input and output filter? Or am I missing something
here?
> >
> > Thanks,
> >
> > --
> >
> > Sven
> >
> >
> >
>
>