473,769 Members | 5,724 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending SOAP Messages Asynchronously

GR
Hi,
I've got a soap message as a string and would like to post it to a
webservice (in C#) asynchronously:
For example something like:
string soap = "<soap:Enve lope >...<MyMessageB ody>....</soap:Envelope>" ;
I use the HttpWebRequest object to send off the message. But I think it
does so synchronously. I'd like to do it asynchronously.

The XmlHttp is the next object I've been considering using but I'm not
sure how it's to be used in C#. I have some VBScripts that use XmlHttp
but nothing with C# (and have looked around on the net and cant find
anything)

The System.Net.WebC lient object is the next in my crosshairs.
Considering using the System.Net.WebC lient.UploadStr ingAsync() method.

Any suggestions?
Thanks

Nov 29 '06 #1
4 7236
Hi,

Try the System.Net.WebC lient class, and its UploadStringAsy nc method.

That works asynchronously and can send a string to the server and
retrieves a string from it as the answer.

Note that the HttpWebRequest you used in the first place has also
separate Begin.. and End.. methods for async operation.

-Lenard

GR wrote:
Hi,
I've got a soap message as a string and would like to post it to a
webservice (in C#) asynchronously:
For example something like:
string soap = "<soap:Enve lope >...<MyMessageB ody>....</soap:Envelope>" ;
I use the HttpWebRequest object to send off the message. But I think it
does so synchronously. I'd like to do it asynchronously.

The XmlHttp is the next object I've been considering using but I'm not
sure how it's to be used in C#. I have some VBScripts that use XmlHttp
but nothing with C# (and have looked around on the net and cant find
anything)

The System.Net.WebC lient object is the next in my crosshairs.
Considering using the System.Net.WebC lient.UploadStr ingAsync() method.

Any suggestions?
Thanks
Nov 29 '06 #2
GR
Lenard,
Thanks!

Nov 29 '06 #3
Hi, GR..
SOAP is a just standerd for transfering the object to the XML model..
This perpose is to synchinize the application level object to the
understandable XML formate for serilaization and DeSerialization .

all the inter transfermations are done through the pure HTTP only ..

So Try with WebRequest or HTTPWebRequest methodes for trasnfer u r SOAP
messages.
Those api's are supported both asynchinise as well synchinise ..


On Nov 29, 4:55 pm, "GR" <g...@silvermin ute.comwrote:
Hi,
I've got a soap message as a string and would like to post it to a
webservice (in C#) asynchronously:
For example something like:
string soap = "<soap:Enve lope >...<MyMessageB ody>....</soap:Envelope>" ;

I use the HttpWebRequest object to send off the message. But I think it
does so synchronously. I'd like to do it asynchronously.

The XmlHttp is the next object I've been considering using but I'm not
sure how it's to be used in C#. I have some VBScripts that use XmlHttp
but nothing with C# (and have looked around on the net and cant find
anything)

The System.Net.WebC lient object is the next in my crosshairs.
Considering using the System.Net.WebC lient.UploadStr ingAsync() method.

Any suggestions?
Thanks
Nov 29 '06 #4
GR
Yup. I'm using a couple of the objects already sending SOAP strings.

Was just looking for the best one in C# that uses async.

Nov 29 '06 #5

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

Similar topics

4
7884
by: Mark | last post by:
i have a very simple web servive Imports System.Web.Services <System.Web.Services.WebService(Namespace:="urn:Example1")> _ Public Class Example1 Inherits System.Web.Services.WebService
0
1515
by: g18c | last post by:
Hi, i have been looking at SOAP and XML-RPC and it seems ideal for my needs. I am looking at an application with 2 end points, either of which can send and receive data. I know with SOAP (and varients) that requests are issued to a server rather than in a bidirectional manner which i need. this has left me wondering how instant messaging software works (i believe jabber can make RPC calls and uses SOAP)? I dont want to poll the server...
1
3381
by: Clara Yeung | last post by:
I have captured some SOAP messages (using org.wsi.test.monitor.Monitor of the WSI test tool). When I try to analyze the messages with WSI test tool analyzer, the "message" artifact of the report always return "Missing Input". I have tried various "correlationType: endpoint, operation, namespace". When I eyeball the captured SOAP messages, they looks fine with correct namespace and valid operation name within the soap body of the...
3
7726
by: Sydney | last post by:
Hi, I am trying to construct a WSE 2.0 security SOAP request in VBScript on an HTML page to send off to a webservice. I think I've almost got it but I'm having an issue generating the nonce value for the UserName token. Is it possilbe at all to do this from VBScript (or jscript?)? I know I will be limited with what I can do with the SOAP message. Eg/ can't sign/encrypt it etc. Thanks,
3
3623
by: Tony Clark | last post by:
Hi, I am creating a network application and want to use SOAP messages to communicate between clients (I am not consuming a web service!!), does anyone know of any good tutorials (or sample code) to allow my application to send and recieve SOAP messages. TIA
0
1324
by: Chad | last post by:
Hi In vb6 I downloaded multiple pages from a website asynchronously by instantiating a dll 3 times that used an inet control with a doevents on the getchunk method when finished I simply raised the event through the dll. This method allowed control back to the application but more importantly to download more pages not waiting for the page before to finish. It was sloppy but it achieved the purpose with little overhead. Within VB.NET...
3
5724
by: ZAAN | last post by:
Hi, I'm developing an application in PHP5, which interacts with another system written in Delphi (of another company). I've prepared the Web Service - WSDL, Client and Server (only stub) side. Company responsible for Delphi part hasn't preapred "real" soap server, but instead of that they have made an application, which listens for SOAP request on one port and send SOAP responses on another. In that case the problem is I can't use...
0
3137
by: Default User | last post by:
I work on creating test cases for a SOAP-based set of servers, using soapUI. I received and updated set of WSDL and schema files, and when I made new tests and mock server operations, all of the ones that had been working now returned a SOAP fault. The faults look something like: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <soap:Body> <soap:Fault> <soap:Code>
0
2251
by: vigneshrao | last post by:
Hi, I have been working on a script that loops through multiple records and sends data (one record per call) to a WS. I am supposed to make a new call for each record before sending the data. The problem I have is the first record gets processed fine where as the second record always; reason being the EAI expects it to be a seperate call Though I am creating/reseting a new service everytime within the foreach loop the data seems to be...
0
9589
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
9423
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
10211
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
8870
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
7408
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
6673
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();...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3958
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2815
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.