Web services in classic asp

First of all, this is my third question about web services, and I am very grateful to guyz for helping me, but still something is missing, what’s wrong is the code that I got already from my question

    Set oXmlHTTP = CreateObject("Microsoft.XMLHTTP")
oXmlHTTP.Open "POST", "http://www.oursite.com/WebServices/ourService.asmx?WSDL", False 

oXmlHTTP.setRequestHeader "Content-Type", "application/soap+xml; charset=utf-8" 
oXmlHTTP.setRequestHeader "SOAPAction", "http://ourNameSpace/ourFunction"

SOAPRequest = _
  "<?xml version=""1.0"" encoding=""utf-8""?>" &_
  "<soap12:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap12=""http://www.w3.org/2003/05/soap-envelope"">" &_
    "<soap12:Body>" &_
      "<ourFunction xmlns=""http://ourNameSpace/"">" &_
        "<var1>" & Session("userid") & "</var1>" &_
        "<var2>" & Session("internetid") & "</var2>" &_
      "</ourFunction>" &_
    "</soap12:Body>" &_
  "</soap12:Envelope>"

oXmlHTTP.send SOAPRequest

Now my web service link

http://buergerserviceschul.niedersachsen.de/modules/id/public/webservice/V4_00/rpc_lit/?wsdl

When I provide a call to a web service, providing all the details and all the necessary materials, still I can not get any data from this procedure, which is disappointing. I mean that I do not get anything, I get empty answers, and if I use the old method, which I was asked not to implement, which was used by the soap client i.e.

Set oSOAP = Server.CreateObject("MSSOAP.SoapClient30")
oSOAP.ClientProperty("ServerHTTPRequest") = True

now this way I get the session id, but again I couldn’t move on even if you use this procedure, so guyz I am stuck in this problem

xml ,

, , , , , .

.

+3
3

"WSDL". WSDL.

, VBSCRIPT - XML . XML API XML.


, , Classic ASP, . (*) , VBSCRIPT, - ( , ). #, - COM-. " ", VBSCRIPT COM-. , .


(*) , ", , ASP", ? , , , .

+2

, , VBScript, # dll COM- ASP.

, . -, Microsoft.XMLHTTP, . CreateObject("MSXML2.ServerXMLHTTP").

Fiddler. SOAP

ProxyCfg -u

. . SOAP-, , HTTP.

. , XML , .

Do not forget to leave

Proxycfg -d

before closing the violinist.

0
source

Source: https://habr.com/ru/post/1712779/


All Articles