473,401 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

designing receiver to receive xml files

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
3 4039
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: David Morgan | last post by:
Hello I am trying to write a routine that will retrieve all the messages in my SMTP Service Drop Folder and process them one by one based on the address(es) to which the mail was sent. When...
6
by: shailesh kumar | last post by:
Hi, I need to design data interfaces for accessing files of very large sizes efficiently. The data will be accessed in chunks of fixed size ... My data interface should be able to do a random...
6
by: E G | last post by:
Hi! I am having problems in designing a class. First, I have a base class that allocates a 3D data set and allows some other mathematical operations with it, something like this: template...
6
by: ransoma22 | last post by:
I developing an application that receive SMS from a connected GSM handphone, e.g Siemens M55, Nokia 6230,etc through the data cable. The application(VB.NET) will receive the SMS automatically,...
0
by: James Buffington | last post by:
For some reason, my laptop has quit recognizing the GPS receiver. I have reinstalled the software, scanned for the received - everything that is called for, with no results. To insure that the...
2
by: iwasinnihon | last post by:
I am writing a simple program to receive over http using windows sockets. my program does fine receiving text files. But returns the incorrect data when receiving image files. (The size of the...
1
by: Summa | last post by:
I want to sign a XML document using sender’s private key and then receiver’s public key. Signing using sender’s private key is working fine. But i couldn’t find how to encrypt that signed XML using...
0
by: noroi | last post by:
Hi all, I got some problems while running the FM receiver's example codes from the GNURadio tutorial page; the RF front end is set to call the signal input from daughter board, and when the...
0
by: noroi | last post by:
Hi, I got problems while running Eric Blossom's FM receiver's example codes from the GNURadio tutorial page; the RF front end reads the signal input from daughter board, and when the compiler...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.