I am trying to consume web service by passing value and get response as xml, this xml contains three child nodes.
web service name : https://localhostADDCUAT/RequestBill.asmx
operation name url : https://localhostADDCUAT/RequestBill.asmx?op=GetCaseDetails
this operation input is string
response of above web service as below
RequestBill
Click here for a complete list of operations.
GetCaseDetails
Test
The test form is only available for requests from the local machine.
SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /ADDCUAT/RequestBill.asmx HTTP/1.1
Host: adweaintsrv.adweag.ae
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://adweaintsrv.adweag.ae/GetCaseDetails"
<?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>
<GetCaseDetails xmlns="https://adweaintsrv.adweag.ae/">
<CaseID>string</CaseID>
</GetCaseDetails>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?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>
<GetCaseDetailsResponse xmlns="https://adweaintsrv.adweag.ae/">
<CCBCaseXml>
<CaseID>string</CaseID>
<CaseDetails>string</CaseDetails>
<StatusCode>string</StatusCode>
<StatusDesc>string</StatusDesc>
</CCBCaseXml>
</GetCaseDetailsResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /ADDCUAT/RequestBill.asmx HTTP/1.1
Host: adweaintsrv.adweag.ae
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?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>
<GetCaseDetails xmlns="https://adweaintsrv.adweag.ae/">
<CaseID>string</CaseID>
</GetCaseDetails>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?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>
<GetCaseDetailsResponse xmlns="https://adweaintsrv.adweag.ae/">
<CCBCaseXml>
<CaseID>string</CaseID>
<CaseDetails>string</CaseDetails>
<StatusCode>string</StatusCode>
<StatusDesc>string</StatusDesc>
</CCBCaseXml>
</GetCaseDetailsResponse>
</soap12:Body>
</soap12:Envelope>
I provide the below
1- add web service to web service manage URL http://localhost:/Service1.asmx
2- under request , what shall i fill here ? web service url or web service and operation url ? in both cases i got bad request error 400
4- which method shall i select POST or GET ? i want to pass string and get three values as xml response.
5- selecting preferred response format as XML
Error : A potentially dangerous Request.Path value was detected from the client (:)
/ Error code 400
i made requests from SOAPUI and i got the result
laserfiche help file is enough to answer these questions.
please advise
regards