04-09-2020 12:41 PM
Hi,
I have the same problem. I would appreciate if you could help me.
I need to submit an XML form to a URL. The Sample SOAP Request and Response is as follows:
POST /webservices/formsubmissionservice.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/SubmitForm"
<?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>
<SubmitForm xmlns="http://tempuri.org/">
<xmlForm>string</xmlForm>
</SubmitForm>
</soap:Body>
</soap:Envelope>
Using this SOAP Sample I wrote the following code:
<?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>
<SubmitForm xmlns="http://tempuri.org/">
<xmlForm><form name="DB-115-1" action_name="OVTSaveDraft" version_no="1.0" key="AT200110-021151" date="2020-01-10T13:15:00" display_key="AT200110-02">
<owner_name value="CQAF" />
<security username="XXXX" password="XXXX" />
<header>
<column name="course_lift" value="11"/>
<column name="direction" value="WB"/>
</header>
<test name="DB-115-1">
<table name="VALUE_DB115_1">
<row>
<column name="density_count" value="620"/>
<column name="density_pct" value="98.70"/>
</row>
</table>
</test>
<footer>
<column name="authorized_by" value="Roger Cisneros, P.E."/>
</footer>
</form></xmlForm>
</SubmitForm>
</soap:Body>
</soap:Envelope>
But I am getting the following error as response:
"Could not get any response
There was an error connecting to URL"
I am thinking the way I put user password in the body might be wrong. Do you have any opinion?
Any suggestion would be appreciated.
Thank you very much.
08-20-2022 10:24 PM
I have this question about SOAP server authentication.
I have a URL, username, and password.
Is there a sample code in LabVIEW that shows how one can Login to the SOAP server?
Thanks