954,184 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Send string to a web service

Hi there, does anyone know a best way to send a long string to a web service with the address for eg. "http://148.145.15.7/screenpop/startservices " at port 8080?

Can use HttpWebRequest? Or use TcpClient to send the string to the service address? Or is there any other better way to do so? This is really a tough prob for me, having prob in a proj now.
Actually i need to send a SOAP string to the SOAP server with the address as told, but not sure how to do that. Hope that someone can help me thru. " http://148.145.15.7/screenpop/startservices?wsdl " is actually the xml definition file to interprete the soap string received.
Thanks in advance.

Cheers...:cheesy:

eric820401
Newbie Poster
1 post since Jul 2006
Reputation Points: 10
Solved Threads: 0
 

Hi,

TcpClient is for raw socket access and isn't convenient. HttpWebRequest is possible but you have to code all the SML and SOAP parsing, composing code. Best way to do this is to consume the webservice using VS.Net's Porject->Add Web Reference menu and let the wizard create the code for calling SOAP meathods.

Loren Soth

Lord Soth
Posting Whiz in Training
233 posts since Mar 2006
Reputation Points: 28
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You