0

im trying to call a webservice from a simple .html site.

what im trying to do is a post action so im send a string parameter to the webmethod without trying to get a result back. Can i do this or is this even possible without working with a framework like .net or php

DOK
  • 32,337
  • 7
  • 60
  • 92
Dejan.S
  • 18,571
  • 22
  • 69
  • 112
  • check this question: http://stackoverflow.com/questions/124269/simplest-soap-example-using-javascript – xdazz Aug 31 '11 at 15:41

1 Answers1

0

Using the XMLHttpRequest object (standard JavaScript), you'd construct the standard SOAP envelope around your XML message. Here is an example of the envelope. You'd then want to use a POST, not a GET to send it.

It would be a good idea to download a SOAP utility like SOAPUI to help you debug it.

Mike Thomsen
  • 36,828
  • 10
  • 60
  • 83