473,407 Members | 2,315 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,407 software developers and data experts.

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:Envelope >...<MyMessageBody>....</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.WebClient object is the next in my crosshairs.
Considering using the System.Net.WebClient.UploadStringAsync() method.

Any suggestions?
Thanks

Nov 29 '06 #1
4 7192
Hi,

Try the System.Net.WebClient class, and its UploadStringAsync 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:Envelope >...<MyMessageBody>....</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.WebClient object is the next in my crosshairs.
Considering using the System.Net.WebClient.UploadStringAsync() 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...@silverminute.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:Envelope >...<MyMessageBody>....</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.WebClient object is the next in my crosshairs.
Considering using the System.Net.WebClient.UploadStringAsync() 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
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
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...
1
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...
3
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...
3
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)...
0
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...
3
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....
0
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...
0
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....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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,...
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
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...
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...
0
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...

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.