Dear Gurus,
Hop you all are well. I am trying to consume an external WSDL in ABAP (SE80- Service Consumer), but i am getting an error.
" Incorrect value: Unknown namespace http://schemas.xmlsoap.org/soap/encoding/ "
When i try the WSDL in XML spy and in SOAP UI, it works fine. Can somebody tell me what could be the problem.
Here is the screen shot of error.
I google this error and some says it is the problem in WSDL structure. But WSDL works fine in SOAP UI and XML Spy. Here is the WSDL
<?xml version="1.0" encoding="ISO-8859-1"?>
<definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://10.10.10.10/soap/WSDLTST" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://-.-.-.-/soap/WSDLTST">
<types>
<xsd:schema targetNamespace="http://10.10.10.10/soap/WSDLTST">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
<xsd:complexType name="Product">
<xsd:all>
<xsd:element name="index" type="xsd:int"/>
<xsd:element name="size" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="ProductArray">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:Product[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
</types>
<message name="Method1Request">
<part name="Datum" type="xsd:string"/>
<part name="Datum1" type="xsd:string"/>
</message>
<message name="Method1Response">
<part name="return" type="tns:ProductArray"/>
</message>
<portType name="WSDLTSTPortType">
<operation name="Method1">
<documentation>bla bla bla</documentation>
<input message="tns:Method1Request"/>
<output message="tns:Method1Response"/>
</operation>
</portType>
<binding name="WSDLTSTBinding" type="tns:WSDLTSTPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="Method1">
<soap:operation soapAction="http://10.10.10.10/abcd/SOAP-SERVER/lib/one.php/Method1" style="rpc"/>
<input>
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://10.10.10.10/abcd/SOAP-SERVER/lib/one.php"/>
</input>
<output>
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://10.10.10.10/abcd/SOAP-SERVER/lib/one.php"/>
</output>
</operation>
</binding>
<service name="WSDLTST">
<port name="WSDLTSTPort" binding="tns:WSDLTSTBinding">
<soap:address location="http://10.10.10.10/abcd/SOAP-SERVER/lib/one.php"/>
</port>
</service>
</definitions>
Thanks in advance.