Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Reading soap Request

Reply
Thread Tools

Reading soap Request

 
 
Aditya
Guest
Posts: n/a
 
      06-14-2006
Hello guys,

I am calling a web service from a gadget using the following code. The thing
i want to do is retrieve the value sname in the web service. How can i do
it. Pls help

var url = "http://localhost/VS2005WebSite/ReturnName.asmx";

var aObjHeaders = new Array();
aObjHeaders["SOAPAction"] = "http://tempuri.org/NamePls";
aObjHeaders["Content-Type"] = "text/xml";
aObjHeaders["host"] = "localhost";

var strPostArgs = new Web.StringBuilder();
strPostArgs.append("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
strPostArgs.append("<soap:Envelope
xmlnssi=\"http://www.w3.org/2001/XMLSchema-instance\" ");
strPostArgs.append("xmlnssd=\"http://www.w3.org/2001/XMLSchema\"
xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">");
strPostArgs.append("<soap:Body>");
strPostArgs.append("<NamePls xmlns=\"http://tempuri.org\">");
strPostArgs.append("<sname>");
strPostArgs.append(sname);
strPostArgs.append("</sname>");
strPostArgs.append("</NamePls>");
strPostArgs.append("</soap:Body>");
strPostArgs.append("</soap:Envelope>");



// Fetch RSS feed
var req = Web.Network.createRequest(
Web.Network.Type.XMLPost,
url,
null,//{proxy:"generic", numItems:5},
RssDownloadComplete,Web.Utility.Prioritizer.Priori ties.Medium,
strPostArgs.toString(),aObjHeaders );
req.execute();


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make soap request and receive soap response from php soapservice Ivan S ASP .Net 0 08-13-2008 03:35 PM
Soap Extension problem (seems that soap request is not sent to server) Frederik Vanderhaegen ASP .Net Web Services 0 10-20-2006 09:18 AM
SOAP Request is repeated in the SOAP response. comp.text.xml XML 0 09-20-2006 08:41 AM
Re: Accessing Request.InputStream / Request.BinaryRead *as the request is occuring*: How??? Brian Birtle ASP .Net 2 10-16-2003 02:11 PM
SOAP Client creation in ASP.NET using MS SOAP Toolkit Sham Ramakrishnan ASP .Net 2 07-01-2003 11:29 AM



Advertisments