Send string to a web service

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2006
Posts: 1
Reputation: eric820401 is an unknown quantity at this point 
Solved Threads: 0
eric820401 eric820401 is offline Offline
Newbie Poster

Send string to a web service

 
0
  #1
Jul 4th, 2006
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:
Last edited by eric820401; Jul 4th, 2006 at 2:53 am.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 233
Reputation: Lord Soth is an unknown quantity at this point 
Solved Threads: 4
Lord Soth's Avatar
Lord Soth Lord Soth is offline Offline
Posting Whiz in Training

Re: Send string to a web service

 
0
  #2
Jul 8th, 2006
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
Best regards,
Loren Soth

Crimson K. Software _________________________________________________________________ Crimson K. Blog
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC