Unable to send SOAP Request--SOAP testing from local wsdl file

Hi,

I imported a local WSDL file and tried running the SOAP12 request. But encountered issue saying that ‘Cannot send the test request’.

Note: I have schemas in the request which are placed in the same folder where I imported the wsdl file.

Any help is appreciated.

Below is the error I got:

com.kms.katalon.core.webservice.exception.WebServiceException: javax.wsdl.WSDLException: WSDLException (at /SOAP:Envelope): faultCode=INVALID_WSDL: Expected element ‘{http://schemas.xmlsoap.org/wsdl/}definitions’.
at com.kms.katalon.core.webservice.common.SoapClient.parseWsdl(SoapClient.java:116)
at com.kms.katalon.core.webservice.common.SoapClient.send(SoapClient.java:186)
at com.kms.katalon.controller.WebServiceController.sendRequest(WebServiceController.java:152)
at com.kms.katalon.composer.webservice.parts.SoapServicePart$4.run(SoapServicePart.java:237)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: javax.wsdl.WSDLException: WSDLException (at /SOAP:Envelope): faultCode=INVALID_WSDL: Expected element ‘{http://schemas.xmlsoap.org/wsdl/}definitions’.
at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.kms.katalon.core.webservice.common.SoapClient.parseWsdl(SoapClient.java:112)
… 4 more

Thanks,
Vj

Any help is appreciated.

Hi @vijay.vintha,
Please share your WSDL file for investigation.

Hi @huynguyen,

Thank you for the response. Here is the WSDL file imported.

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

<wsdl:definitions targetNamespace=“http://idArchitecture.services.org” xmlns:exch=“http://exch.schema.org” xmlns:soap12=“http://schemas.xmlsoap.org/wsdl/soap12/” xmlns:tns=“http://idArchitecture.services.org” xmlns:wsdl=“http://schemas.xmlsoap.org/wsdl/” xmlns:xsd=“http://www.w3.org/2001/XMLSchema”>
wsdl:types
<xsd:schema targetNamespace=“http://exch.schema.org” xmlns:xsd=“http://www.w3.org/2001/XMLSchema”>
<xsd:include schemaLocation=“YYYYYDataExchange.xsd”>
</xsd:include>
</xsd:schema>
</wsdl:types>
<wsdl:meidge name=“XXXXXXArchitectureRequest”>
<wsdl:part element=“exch:XXXXXXArchitectureRequest” name=“body”></wsdl:part>
</wsdl:meidge>
<wsdl:meidge name=“XXXXXXArchitectureResponse”>
<wsdl:part element=“exch:XXXXXXArchitectureResponse” name=“body”></wsdl:part>
</wsdl:meidge>
<wsdl:meidge name=“XXXXXXArchitectureFault”>
<wsdl:part element=“exch:YYYYYFault” name=“fault”></wsdl:part>
</wsdl:meidge>
<wsdl:portType name=“XXXXXXArchitecturePortType”>
<wsdl:operation name=“VerifyID”>
<wsdl:input meidge=“tns:XXXXXXArchitectureRequest”></wsdl:input>
<wsdl:output meidge=“tns:XXXXXXArchitectureResponse”></wsdl:output>
<wsdl:fault name=“fault” meidge=“tns:XXXXXXArchitectureFault”></wsdl:fault>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name=“XXXXXXArchitectureSoapBinding” type=“tns:XXXXXXArchitecturePortType”>
<soap12:binding style=“document” transport=“http://schemas.xmlsoap.org/soap/http”></soap12:binding>
<wsdl:operation name=“VerifyID”>
<soap12:operation soapAction=“http://idArchitecture.services.org/VerifyID”></soap12:operation>
wsdl:input
<soap12:body use=“literal”></soap12:body>
</wsdl:input>
wsdl:output
<soap12:body use=“literal”></soap12:body>
</wsdl:output>
<wsdl:fault name=“fault”>
<soap12:fault name=“fault” use=“literal”/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name=“XXXXXXArchitectureService”>
wsdl:documentationSample Service</wsdl:documentation>
<wsdl:port binding=“tns:XXXXXXArchitectureSoapBinding” name=“XXXXXXArchitecturePort”>
<soap12:address location=“http://10.12.156.12:12345/VerifyXXXXXXArchitectureService-DEV2”></soap12:address>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

After importing the above WSDL I tried hitting the URL with the appropriate request.

Please let me know for any further information.

Thanks,
Vijay

Hi @vijay.vintha,
Can you also share your request file (.rs file)?

Hi @huynguyen,

Please find the .rs file below: I have been masking few tags, names, etc due to security reasons.

<?xml version="1.0" encoding="UTF-8"?> VerifyID a2d075db-d7b2-4b84-8aec-af52c862c527 BASIC false false SOAP <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:exch="http://exch.schema.org" xmlns:ns="http://niem.gov/niem/structures/2.0" xmlns:extn="http://extn.schema.org" xmlns:ns1="http://niem.gov/niem/niem-core/2.0"> <soap:Header/> <soap:Body> <b:XXXXXArchitectureRequest xmlns:a="http://codes.schema.org" xmlns:b="http://exch.schema.org" xmlns:c="http://extn.schema.org" xmlns:d="http://fault.schema.org" xmlns:e="http://niem.gov/niem/fbi/2.0" xmlns:f="http://niem.gov/niem/niem-core/2.0" xmlns:g="http://niem.gov/niem/proxy/xsd/2.0" xmlns:h="http://niem.gov/niem/structures/2.0" xmlns:i="http://niem.gov/niem/usps_states/2.0"> <c:IDCompositeIndividualRequest h:id="AIR000000005996"> <extn:requestIndicators> <extn:verifyAll>false</extn:verifyAll> <extn:verifyID>true</extn:verifyID> <extn:verifyDOCCS>true</extn:verifyDOCCS> </extn:requestIndicators> <c:Person> <c:PersonSSNIdentification>123456789</c:PersonSSNIdentification> <c:PersonName> <c:PersonGivenName>Principal</c:PersonGivenName> <c:PersonMiddleName>Hello</c:PersonMiddleName> <c:PersonSurName>JOHN</c:PersonSurName> </c:PersonName> <f:PersonBirthDate> <f:Date j:type="k:date" xmlns:j="http://www.w3.org/2001/XMLSchema-instance" xmlns:k="http://www.w3.org/2001/XMLSchema">1960-06-15</f:Date> </f:PersonBirthDate> <e:PersonSex>F</e:PersonSex> </c:Person> <c:RequestCVerificationIndicator>true</c:RequestCVerificationIndicator> <c:RequestAnnualIncomeDate>2012</c:RequestAnnualIncomeDate> </c:IDCompositeIndividualRequest> </b:XXXXXArchitectureRequest> </soap:Body> </soap:Envelope> SOAP12 VerifyID import static org.assertj.core.api.Assertions.*

import com.kms.katalon.core.testobject.RequestObject
import com.kms.katalon.core.testobject.ResponseObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webservice.verification.WSResponseManager

import groovy.json.JsonSlurper
import internal.GlobalVariable as GlobalVariable

RequestObject request = WSResponseManager.getInstance().getCurrentRequest()

ResponseObject response = WSResponseManager.getInstance().getCurrentResponse()

http://xxxxxxxxx:402/XXXXXArchitectureService-DEV2

Thanks,
Vijay

Hi @vijay.vintha,
Please help by sending the original file. For security reasons, you can send via private message.

thanks for the response. I will try to get the permission. Meanwhile can you let me know how to send a private message?

thanks,
Vijay