Error while parsing WSDL

Apr 21, 2010 at 5:38 PM
Edited Apr 21, 2010 at 5:45 PM

Dear all, this is the error I got while processing a WSDL file:

Cannot import wsdl:binding
Detail: The WSDL binding named __esb_ContenutoSupporto_ContenutoSupporto is not valid because no match for operation getContenutoSupporto was found in the corresponding portType definition.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://rti.mediaset.it/first/ContenutoSupporto']/wsdl:binding[@name='__esb_ContenutoSupporto_ContenutoSupporto']
---------------------------------------------------------------------------------
Cannot import wsdl:binding
Detail: The WSDL binding named __soap_ContenutoSupporto_ContenutoSupporto is not valid because no match for operation getContenutoSupporto was found in the corresponding portType definition.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://rti.mediaset.it/first/ContenutoSupporto']/wsdl:binding[@name='__soap_ContenutoSupporto_ContenutoSupporto']
---------------------------------------------------------------------------------
Cannot import wsdl:binding
Detail: The WSDL binding named ContenutoSupportoBinding is not valid because no match for operation getContenutoSupporto was found in the corresponding portType definition.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://rti.mediaset.it/first/ContenutoSupporto']/wsdl:binding[@name='ContenutoSupportoBinding']
---------------------------------------------------------------------------------
Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://rti.mediaset.it/first/ContenutoSupporto']/wsdl:binding[@name='__soap_ContenutoSupporto_ContenutoSupporto']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://rti.mediaset.it/first/ContenutoSupporto']/wsdl:service[@name='ESB_ContenutoSupporto_Service']/wsdl:port[@name='__soap_ContenutoSupporto_ContenutoSupporto']
---------------------------------------------------------------------------------
Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://rti.mediaset.it/first/ContenutoSupporto']/wsdl:binding[@name='__esb_ContenutoSupporto_ContenutoSupporto']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://rti.mediaset.it/first/ContenutoSupporto']/wsdl:service[@name='ESB_ContenutoSupporto_Service']/wsdl:port[@name='__esb_ContenutoSupporto_ContenutoSupporto']
---------------------------------------------------------------------------------
Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://rti.mediaset.it/first/ContenutoSupporto']/wsdl:binding[@name='ContenutoSupportoBinding']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://rti.mediaset.it/first/ContenutoSupporto']/wsdl:service[@name='ContenutoSupporto']/wsdl:port[@name='getContenutoSupportoPort']
---------------------------------------------------------------------------------

Here is the WSDL:

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

- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:import="http://rti.mediaset.it/first/ContenutoSupporto" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:esb="http://www.oracle.com/esb/" xmlns:ws="http://www.example.com/webservice" xmlns:tns="http://rti.mediaset.it/first/ContenutoSupporto" targetNamespace="http://rti.mediaset.it/first/ContenutoSupporto">
  <import namespace="http://rti.mediaset.it/first/ContenutoSupporto" location="http://soat.mediaset.it:80/esb/slide/ESB_Projects/temp_First_MaterialiESB_soat.mediaset.it/WSDL/ContenutoSupporto.wsdl" />
- <portType name="ContenutoSupporto">
- <operation name="getContenutoSupporto">
  <input name="getContenutoSupportoRequest" message="import:getContenutoSupportoRequestMessage" />
  <output name="getContenutoSupportoResponse" message="import:getContenutoSupportoResponseMessage" />
  </operation>
  </portType>
- <binding name="__esb_ContenutoSupporto_ContenutoSupporto" type="import:ContenutoSupporto">
  <esb:binding />
- <operation name="getContenutoSupporto">
  <esb:operation event-name="First.Materiali.ContenutoSupporto.getContenutoSupporto" />
  <input />
  <output />
  </operation>
  </binding>
- <binding name="__soap_ContenutoSupporto_ContenutoSupporto" type="import:ContenutoSupporto">
  <soap:binding xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="getContenutoSupporto">
  <soap:operation xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" style="document" soapAction="getContenutoSupporto" />
- <input>
  <soap:body xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" use="literal" />
  </input>
- <output>
  <soap:body xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" use="literal" />
  </output>
  </operation>
  </binding>
- <service name="ESB_ContenutoSupporto_Service">
- <port name="__soap_ContenutoSupporto_ContenutoSupporto" binding="import:__soap_ContenutoSupporto_ContenutoSupporto">
  <soap:address xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" location="http://soat.mediaset.it:80/event/First/Materiali/ContenutoSupporto" />
  </port>
  <port name="__esb_ContenutoSupporto_ContenutoSupporto" binding="import:__esb_ContenutoSupporto_ContenutoSupporto" />
  </service>
- <plt:partnerLinkType name="ContenutoSupportoLT">
- <plt:role name="ContenutoSupportoProvider">
  <plt:portType name="import:ContenutoSupporto" />
  </plt:role>
  </plt:partnerLinkType>
  </definitions>
 
I am using Visual Studio 2008 and WSCF Blue 1.0.7
 
Where is the error?
 
Thank you!
 
Regards,
Camillo
Developer
Apr 22, 2010 at 12:55 PM

Hi Camillo,

I am guessing that the empty <input /> and <output /> elements in the __esb_ContenutoSupporto_ContenutoSupporto binding is causing the problem.

Cheers,

Alex.