"Consuming" a webservice via hyperterminal (or telnet...)
-
I have a small problem with a hardware supplier who is designing remote units which will report back to a web service on one of our servers. I have set up a simple test web service, that accepts a string, and successfully consumed it with a small c# app externally. My supplier is having difficulty uploading data to the web service, and says that if I can successfully use hyperterminal to access the web service, his hardware should work too. Well, not being an expert in web services (obviously) I thought "Easy! I'll just POST a version of the SOAP message that the .asmx header provides (supplying a string and content length). However, all I get back is
Bad Request
, or
Bad Request (Invalid Verb)
. Can anyone point me in the direction of simple examples of how I should be doing this? I have assumed I'm doing the POST wrong somehow, but I guess it could be the IIS settings?
-
I have a small problem with a hardware supplier who is designing remote units which will report back to a web service on one of our servers. I have set up a simple test web service, that accepts a string, and successfully consumed it with a small c# app externally. My supplier is having difficulty uploading data to the web service, and says that if I can successfully use hyperterminal to access the web service, his hardware should work too. Well, not being an expert in web services (obviously) I thought "Easy! I'll just POST a version of the SOAP message that the .asmx header provides (supplying a string and content length). However, all I get back is
Bad Request
, or
Bad Request (Invalid Verb)
. Can anyone point me in the direction of simple examples of how I should be doing this? I have assumed I'm doing the POST wrong somehow, but I guess it could be the IIS settings?
-
Sorry - should have given an example of code... :-O POST /TestWebService/TestService.asmx HTTP/1.1 Host: www.mysite.com:80 Content-Type: text/xml; charset=utf-8 Content-Length: 115 SOAPAction: "http://www.mysite.com/TestMethod" Testing via hyperterminal
-
Sorry - should have given an example of code... :-O POST /TestWebService/TestService.asmx HTTP/1.1 Host: www.mysite.com:80 Content-Type: text/xml; charset=utf-8 Content-Length: 115 SOAPAction: "http://www.mysite.com/TestMethod" Testing via hyperterminal
I'm suspicious of your Content-Length. I believe SOAP won't see anything past the 115th character of your request, which is a lot less than all of it.