|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
WS-I: (BP2118) The wsdl:binding does not have the same ..... |
« View previous topic :: View next topic » |
Author |
Message
|
Herbert |
Posted: Wed Dec 23, 2009 8:07 am Post subject: WS-I: (BP2118) The wsdl:binding does not have the same ..... |
|
|
 Centurion
Joined: 05 Dec 2006 Posts: 146 Location: Leersum, The Netherlands
|
Hi,
Most likely not WMB related but WS 101, however I don't understand why this WSDL file gives below error when I import it in a message set.
WS-I: (BP2118) The wsdl:binding does not have the same list of wsdl:operations as the wsdl:portType to which it refers.
IMHO both the wsdl:portType and the wsdl:binding have the same operation setup.
http://www.ws-i.org/Testing/Tools/2005/01/BP11_TAD_1-1.htm#referenceR2718
Code: |
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
name="abc"
xmlns:abc="http://abc.com/esbm/abc"
targetNamespace="http://abc.com/esbm/abc"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>
<wsdl:types>
<xs:schema
xmlns:abc="http://abc.com/esbm/abc"
targetNamespace="http://abc.com/esbm/abc"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="1.0">
<xs:simpleType name="nbrType">
<xs:restriction base="xs:integer">
<xs:totalDigits value="3"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="nameType">
<xs:restriction base="xs:string">
<xs:maxLength value="25"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ABCRequestType">
<xs:sequence>
<xs:element name="ABC_Number" type="abc:nbrType" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="ABCResponseType">
<xs:sequence>
<xs:element name="ABC_Name" type="abc:nameType" />
</xs:sequence>
</xs:complexType>
<xs:element name="ABC_Request" type="abc:ABCRequestType" />
<xs:element name="ABC_Response" type="abc:ABCResponseType" />
</xs:schema>
</wsdl:types>
<wsdl:message name="ABC_Request">
<wsdl:part name="ABC_Request" element="abc:ABC_Request"/>
</wsdl:message>
<wsdl:message name="ABC_Response">
<wsdl:part name="ABC_Response" element="abc:ABC_Response"/>
</wsdl:message>
<wsdl:portType name="abc_service">
<wsdl:operation name="nbr2name">
<wsdl:input name="ABC_Request" message="abc:ABC_Request"/>
<wsdl:output name="ABC_Response" message="abc:ABC_Response"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="abc_soap" type="abc:abc_service">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="nbr2name">
<soap:operation soapAction="http://abc.com/esbm/abc"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="abc_service">
<wsdl:port name="abc_soap" binding="abc:abc_soap">
<soap:address location="http://localhost:7800/msb/abc"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions> |
|
|
Back to top |
|
 |
mgk |
Posted: Wed Dec 23, 2009 1:43 pm Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
The operation in the PortType has a name on the inputs and outputs (name="ABC_Request") but this name is not used on the inputs and outputs in the binding. These need to match, so remove the name from the PortType or add the matching names to the Binding...
Kind regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
Herbert |
Posted: Mon Dec 28, 2009 2:40 am Post subject: |
|
|
 Centurion
Joined: 05 Dec 2006 Posts: 146 Location: Leersum, The Netherlands
|
mgk wrote: |
The operation in the PortType has a name on the inputs and outputs (name="ABC_Request") but this name is not used on the inputs and outputs in the binding. These need to match, so remove the name from the PortType or add the matching names to the Binding... |
Indeed, thanks! |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|