Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. "Consuming" a webservice via hyperterminal (or telnet...)

"Consuming" a webservice via hyperterminal (or telnet...)

Scheduled Pinned Locked Moved Web Development
wcfcsharpwindows-adminhardwarexml
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Neophyte30
    wrote on last edited by
    #1

    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?

    J 1 Reply Last reply
    0
    • N Neophyte30

      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?

      J Offline
      J Offline
      Johnny
      wrote on last edited by
      #2

      Are you including appropriate HTTP headers?

      N 1 Reply Last reply
      0
      • J Johnny

        Are you including appropriate HTTP headers?

        N Offline
        N Offline
        Neophyte30
        wrote on last edited by
        #3

        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

        M 1 Reply Last reply
        0
        • N Neophyte30

          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

          M Offline
          M Offline
          Mark Schumann
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups