I want to use MSSOAP.SoapClient to consume a webservice.
Problem is one the web services requires you pass a COMPLEX data type. Ive got it working using Microsoft.XMLHTTP but the code to create the XML is very messy and considering the size of the data i need to pass isnt idea.
Would anybody have an example of how to recreate the following Microsoft.XMLHTTP SOAP request in lotus script using MSSOAP.SoapClient?
Set objHttp = CreateObject(“Microsoft.XMLHTTP”)
url = |http://www.test.co.uk/TESTws/wsinterface.asmx|
req = |<?xml version="1.0" encoding="utf-8"?>| +_
|<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">| +_
| <soap:Body>| +_
| <TestStatus xmlns="http://www.test.co.uk/webservices">| +_
| <status>| +_
| <OperationCompleted>0</OperationCompleted>| +_
| <OperationSuccessful>0</OperationSuccessful>| +_
| <ErrorMessage></ErrorMessage>| +_
| </status>| +_
| </TestStatus>| +_
| </soap:Body>| +_
|</soap:Envelope>|
objHttp.open "POST", url, False, "", ""
objHttp.setRequestHeader "Content-type", "text/xml"
objHttp.send(req) 'send request to web server