944,110 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 7470
  • C# RSS
Jul 4th, 2006
0

Send string to a web service

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
eric820401 is offline Offline
1 posts
since Jul 2006
Jul 8th, 2006
0

Re: Send string to a web service

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
Reputation Points: 28
Solved Threads: 4
Posting Whiz in Training
Lord Soth is offline Offline
233 posts
since Mar 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Displaying Label over other controls
Next Thread in C# Forum Timeline: Help on Communication over LAn..





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC