Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: Regarding exposing webservice

$
0
0

Hi Michael,

I am trying to access the web service using the below code.

<%

Set oXmlHTTP = CreateObject("MSXML2.ServerXMLHTTP")

oXmlHTTP.setOption(2) = 13056

oXmlHTTP.Open "POST", "http://WSDL_URL_ADDRESS", False

oXmlHTTP.setRequestHeader "Content-Type", "text/xml; charset=utf-8"

oXmlHTTP.setRequestHeader "Content-Length", "length"

SOAPRequest = _

 "<soapenv:Envelope xmlns:soapenv=""schemas.xmlsoap.org/.../"">" &_

   "<soapenv:Header/>" &_

     "<soapenv:Body>" &_

      "<wsin:LegalEntityList/>" &_

       "</soapenv:Body>" &_

       "</soapenv:Envelope>"

oXmlHTTP.send SOAPRequest

response.write oXmlHTTP.responseText

%>

 

I am trying to create a web service which can be accessed from other applications. I tried the sample code which is already there.

http://supportline.microfocus.com/documentation/books/nx40/gsdmap.htm

I created only Read operation and hosted the service in Enterprise server. Now i am trying to access this web service using some client code.

Please suggest me the proper method to do this.

 


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>