By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,002 Members | 2,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,002 IT Pros & Developers. It's quick & easy.

designing receiver to receive xml files

P: n/a
I am trying to receive xml files on my server which are posted from another
server using http post. I need help in designing a receiver which will accept
this xml file and send back a success message back to the sender. Can someone
give me some code examples on how to design this piece? I am having
difficulty proceeding with the design here. Any help will be appreciated. You
can also email me code samples at ja********@removethis-hotmail.com
Feb 9 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
http://www.microsoft.com/uk/msdn/events/nuggets.aspx
"Low Level SOAP messaging"

That link above may help some. Basically your receiver object would derive
from SoapReceiver. That object would override the Recieve method which has a
SoapEnvelope argument. The SoapEnvelope will contain the XmlElement in the
Body that you can work with. In the Receive method you can process the
envelope then create an instance of SoapSender to send a message back to
whomever sent the envelope - the SoapEnvelope has a ReplyTo property which
is set by the client and will allow the server to send a response back to
the client. This means that the client must also have a class that
implements SoapReceiver, and also overrides Recieve.

The "nugget" in the link above does an excellent job of demonstrating that.

Ron

"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
I am trying to receive xml files on my server which are posted from
another
server using http post. I need help in designing a receiver which will
accept
this xml file and send back a success message back to the sender. Can
someone
give me some code examples on how to design this piece? I am having
difficulty proceeding with the design here. Any help will be appreciated.
You
can also email me code samples at ja********@removethis-hotmail.com

Feb 11 '06 #2

P: n/a
Do you have anything which will give me an idea to do this through HTTP
post/receive/get instead of SOAP?

"RYoung" wrote:
http://www.microsoft.com/uk/msdn/events/nuggets.aspx
"Low Level SOAP messaging"

That link above may help some. Basically your receiver object would derive
from SoapReceiver. That object would override the Recieve method which has a
SoapEnvelope argument. The SoapEnvelope will contain the XmlElement in the
Body that you can work with. In the Receive method you can process the
envelope then create an instance of SoapSender to send a message back to
whomever sent the envelope - the SoapEnvelope has a ReplyTo property which
is set by the client and will allow the server to send a response back to
the client. This means that the client must also have a class that
implements SoapReceiver, and also overrides Recieve.

The "nugget" in the link above does an excellent job of demonstrating that.

Ron

"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
I am trying to receive xml files on my server which are posted from
another
server using http post. I need help in designing a receiver which will
accept
this xml file and send back a success message back to the sender. Can
someone
give me some code examples on how to design this piece? I am having
difficulty proceeding with the design here. Any help will be appreciated.
You
can also email me code samples at ja********@removethis-hotmail.com


Feb 12 '06 #3

P: n/a
I managed to piece this together:

<snip>
The SAP business connector post xmls like this:

POST /Orders.asmx HTTP/1.0
User-Agent: Mozilla/4.0 [en] (WinNT; I)
Accept: image/gif, */*
Host: xxx.xxx.xxx.xxx:8080
Content-type: text/xml
Content-Length: 2533 </snip>

<snip>
You don't need a web service then, a HTTP handler that accesses the
request stream will do.
<http://samples.gotdotnet.com/quickstart/aspplus/doc/httphandlers.aspx>
</snip>

So, implement an IHttpHandler that sends a message back to the
HttpContext.Server that is in the POST (Host) data.

Of course, the "host" must be a service to accept the call.

Ron

"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:8B**********************************@microsof t.com... Do you have anything which will give me an idea to do this through HTTP
post/receive/get instead of SOAP?

"RYoung" wrote:
http://www.microsoft.com/uk/msdn/events/nuggets.aspx
"Low Level SOAP messaging"

That link above may help some. Basically your receiver object would
derive
from SoapReceiver. That object would override the Recieve method which
has a
SoapEnvelope argument. The SoapEnvelope will contain the XmlElement in
the
Body that you can work with. In the Receive method you can process the
envelope then create an instance of SoapSender to send a message back to
whomever sent the envelope - the SoapEnvelope has a ReplyTo property
which
is set by the client and will allow the server to send a response back to
the client. This means that the client must also have a class that
implements SoapReceiver, and also overrides Recieve.

The "nugget" in the link above does an excellent job of demonstrating
that.

Ron

"Jack" <Ja**@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
> I am trying to receive xml files on my server which are posted from
> another
> server using http post. I need help in designing a receiver which will
> accept
> this xml file and send back a success message back to the sender. Can
> someone
> give me some code examples on how to design this piece? I am having
> difficulty proceeding with the design here. Any help will be
> appreciated.
> You
> can also email me code samples at ja********@removethis-hotmail.com


Feb 16 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.