473,766 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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********@remo vethis-hotmail.com
Feb 9 '06 #1
3 4074
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**@discussio ns.microsoft.co m> wrote in message
news:7D******** *************** ***********@mic rosoft.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********@remo vethis-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**@discussio ns.microsoft.co m> wrote in message
news:7D******** *************** ***********@mic rosoft.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********@remo vethis-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.gotdotn et.com/quickstart/aspplus/doc/httphandlers.as px>
</snip>

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

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

Ron

"Jack" <Ja**@discussio ns.microsoft.co m> wrote in message
news:8B******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:7D******** *************** ***********@mic rosoft.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********@remo vethis-hotmail.com


Feb 16 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1993
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 accessed via a CDO.Message each message in the drop folder has an x-receiver field present containing only the email address of the reciepient that caused the message to arrive on my server. This is useful because I don't have to check the To, CC...
6
6163
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 seek in the file, as well as sequential access block by block.... One aspect of the usage of this interface is that there is quite good chance of accessing same blocks again and again by the application..
6
2142
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 <typename T> class BasicArray {
6
17205
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, process and output to the screen in my application when a message arrived. But the problem is how do I read the SMS message immediately when it arrived without my handphone BeEPINg for new message ? I read up the AT commands, but when getting down...
0
1180
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 receiver is working properly, I connected it to my desktop computer - it works fine. Can someone please make a suggestion that might correct this situation? I'm leaving on a long trip in twenty-four hours. Thanks! -- Jim
2
4357
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 files are different). My code is below. The header has already been read using the same Receive() function. What have I done wrong. ofstream os("file.dat", ios::binary); //Retrieve the body try {
1
1847
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 receiver’s public key. Then particular receiver can open the document. Can anyone help me on encrypting and decrypting XML signature? I’m using ASP.net 2003,C#,WSE 1.0
0
1081
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 compiler tried to call mothods to set some parameter values(such as gain, set_AGC() and If frequency, get_output_freq() ), it seems not able to find those methods/ functions... Could someone be kind enough to give some pointers for solving such errors?
0
1114
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 tried to call mothods to set values for IF and gain, such as set_AGC(), get_output_freq(), etc... it seems not able to find those methods/ functions... Could someone be kind enough to give me some pointers for solving such errors?
0
9571
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9404
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10168
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10009
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9838
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8835
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6651
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.