cancel
Showing results for 
Search instead for 
Did you mean: 

Problems to import WSDL

Former Member
0 Kudos

Hi friends,

I have the following problem to load this WSDL:

<wsdl:definitions targetNamespace="urn:MWeb" xmlns:impl="urn:MWeb" xmlns:intf="urn:MWeb" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">

<wsdl:types>

<schema targetNamespace="urn:MWeb" xmlns="http://www.w3.org/2001/XMLSchema">

<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

<complexType name="ArrayOf_xsd_string">

<complexContent>

<restriction base="soapenc:Array">

<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>

</restriction>

</complexContent>

</complexType>

</schema>

</wsdl:types>

<wsdl:message name="dispatchWithSenderResponse">

<wsdl:part name="dispatchWithSenderReturn" type="xsd:long"/>

</wsdl:message>

<wsdl:message name="dispatchWithSenderRequest">

<wsdl:part name="in0" type="xsd:string"/>

<wsdl:part name="in1" type="xsd:string"/>

<wsdl:part name="in2" type="xsd:string"/>

<wsdl:part name="in3" type="xsd:string"/>

<wsdl:part name="in4" type="impl:ArrayOf_xsd_string"/>

<wsdl:part name="in5" type="xsd:string"/>

<wsdl:part name="in6" type="xsd:string"/>

</wsdl:message>

<wsdl:message name="dispatchWithSenderRequest1">

<wsdl:part name="in0" type="xsd:string"/>

<wsdl:part name="in1" type="xsd:string"/>

<wsdl:part name="in2" type="xsd:string"/>

<wsdl:part name="in3" type="xsd:string"/>

<wsdl:part name="in4" type="impl:ArrayOf_xsd_string"/>

<wsdl:part name="in5" type="xsd:string"/>

<wsdl:part name="in6" type="xsd:string"/>

<wsdl:part name="in7" type="xsd:long"/>

</wsdl:message>

<wsdl:message name="dispatchWithSenderResponse1">

<wsdl:part name="dispatchWithSenderReturn" type="xsd:long"/>

</wsdl:message>

<wsdl:portType name="MWeb">

<wsdl:operation name="dispatchWithSender" parameterOrder="in0 in1 in2 in3 in4 in5 in6">

<wsdl:input name="dispatchWithSenderRequest" message="impl:dispatchWithSenderRequest"/>

<wsdl:output name="dispatchWithSenderResponse" message="impl:dispatchWithSenderResponse"/>

</wsdl:operation>

<wsdl:operation name="dispatchWithSender" parameterOrder="in0 in1 in2 in3 in4 in5 in6 in7">

<wsdl:input name="dispatchWithSenderRequest1" message="impl:dispatchWithSenderRequest1"/>

<wsdl:output name="dispatchWithSenderResponse1" message="impl:dispatchWithSenderResponse1"/>

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name="MWebSoapBinding" type="impl:MWeb">

<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

<wsdl:operation name="dispatchWithSender">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="dispatchWithSenderRequest">

<wsdlsoap:body use="literal" namespace="urn:MWeb"/>

</wsdl:input>

<wsdl:output name="dispatchWithSenderResponse">

<wsdlsoap:body use="literal" namespace="urn:MWeb"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="dispatchWithSender">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="dispatchWithSenderRequest1">

<wsdlsoap:body use="literal" namespace="urn:MWeb"/>

</wsdl:input>

<wsdl:output name="dispatchWithSenderResponse1">

<wsdlsoap:body use="literal" namespace="urn:MWeb"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="MWebService">

<wsdl:port name="MWeb" binding="impl:MWebSoapBinding">

<wsdlsoap:address location="http://localhost:8080/wsMweb/services/MWeb"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

When I try to load this WSDL into an object External Definition, the Integration Repository gives me a failure like this:

...Element portType cannot have two subelements operation with name attribute dispatchWithSender...

The solution is to modify the WSDL?

He changed the name of the operation, but If I have to use the 2 operations?

Thanks,

Jose.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi experts,

The IR does not allow import a WSDL document with two operations with different parameters.

Does it make sense to modify the WSDL document to solve the problem?

Thanks,

Jose.