Hi,
Thank you for your script.
Regarding the script, we have two problems in here:
- Version mismatch
Server returns:
<soapenv:Fault><faultcode>soapenv:VersionMismatch</faultcode><faultstring>Transport level information does not match with SOAP Message namespace URI</faultstring><detail/></soapenv:Fault>
I think the error is it is sending a soap message with SOAP 1.2 format
(the namespace “<soap:Envelope xmlns:soap=http://www.w3.org/2003/05/soap-envelope…..” is a format of SOAP 1.2)
But in the server, it expects SOAP 1.1 format. So, please change:
From: “<soap:Envelope xmlns:soap=http://www.w3.org/2003/05/soap-envelope…”
To: <soapenv:Envelope xmlns:soap ="http://schemas.xmlsoap.org/soap/envelope/" ….>
It should look like this:
soap_request("StepName=SOAP Request",
"URL=http://exceedjcommdev1.unitrininc.com:9080/commfw/services2/BillingPaymentOptions",
"SOAPEnvelope="
"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\" xmlns:ac=\"http://www.csc.com/standards/PC_Surety/AcordCsc1/xml/\" xmlns:wsa=\"http://www.w3.org/2005/08/addressing\" xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns:ds=\"http://www.w3.org/2000/09/xmldsig#\">"
………..
- The second problem is: The "SOAP Request" SOAP request response content is not XML
Action.c(4): --MIMEBoundary_bf3102cdc76a27c286714ab9de65d84b467666cccce7ba1a\r\n
Action.c(4): Content-Type: application/xop+xml; charset=utf-8; type="text/xml"\r\n
Action.c(4): Content-Transfer-Encoding: binary\r\n
Action.c(4): Content-ID: <0.af3102cdc76a27c286714ab9de65d84b467666cccce7ba1a@apache.org>\r\n
Action.c(4): \r\n
Action.c(4): <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmls
Action.c(4): oap.org/soap/envelope/"><soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"><
Action.c(4): wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action></soapenv:Header><s
Action.c(4): oapenv:Body><soapenv:Fault><faultcode>soapenv:VersionMismatch</faultcode><faultstring>Tran
Action.c(4): sport level information does not match with SOAP Message namespace URI</faultstring><detai
Action.c(4): l/></soapenv:Fault></soapenv:Body></soapenv:Envelope>\r\n
Action.c(4): --MIMEBoundary_bf3102cdc76a27c286714ab9de65d84b467666cccce7ba1a--\r\n
It seems it is using MTOM or MIME format. So please try to put two lines below into the end of default.cfg file
[UserHandler]
Name=LrWsAttachmentsHandler
Steps:
- Go to folder of script, open default.cfg file
- Go to the end of file, put two lines above into file, save it.
- Run script again
Please try and share with us the outcome.
Thanks and Regards,
Chau Nguyen