Skip to Content
Former Member
May 26, 2008 at 04:28 PM

SOAP-CALL using classic ASP


Hi y'all - you're my last hope! 😊

I'm using classic ASP to connect to a SAP-Webservice (no, I can't use .net). The connection seems to work so far, but I keep getting an error from the webservice, that an expected element was not found.

The Code I'm using to generate the SOAP-Call:

SoapURL = "http://IP-Adress/path/"

SoapRequest.Open "POST",SoapURL, False

SoapRequest.setRequestHeader "Content-Type", "text/xml; charset=UTF-8"

SoapRequest.setRequestHeader "Authorization", "BASIC " & Base64Encode("username:password")

SoapRequest.setRequestHeader "SOAPAction", ""

sRequest = ""

sRequest = sRequest & ""

SoapRequest.Send sRequest

The Webservice keeps complaining that the element «PiCopyreference» is missing...

What am I missing???

Thanks in advance for your help...