Hello, I'm trying with no success to consume a webservice developed in ColdFusion but I keep receiving the "Wrong Binding ID" Message.
I have tested the webservice in SOAP UI and it is working,This is what I configured:
Service NS: http://rest.pruebas
Service Name: cfmx.pruebas.rest.Testimonio.cfc
Port name: EnvioTestimonioRequest
End Point URL: http://localhost:8500/cfmx/pruebas/rest/Testimonio.cfc
Binding: cfmx.pruebas.rest.Testimonio.cfcSoap12Binding
Enveloppe:
[code lang="xml" linenumbers="normal"]
<s12:Envelope xmlns:s12='http://www.w3.org/2003/05/soap-envelope'>
<s12:Body>
<ns:EnvioTestimonio xmlns:ns='http://rest.pruebas'>
<!-- optional -->
<!-- This element may be left empty if xsi:nil='true' is set. -->
<ns:cedula>1</ns:cedula>
</ns:EnvioTestimonio>
</s12:Body>
</s12:Envelope> [/code]
Here is the wsdl:
<?xml version="1.0" encoding="UTF-8"?><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://rest.pruebas" xmlns:ax231="http://rpc.xml.coldfusion/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://rest.pruebas">
<wsdl:types>
<xs:schema xmlns:ax232="http://rpc.xml.coldfusion/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://rest.pruebas">
<xs:import namespace="http://rpc.xml.coldfusion/xsd"/>
<xs:element name="cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="CFCInvocationException" nillable="true" type="ax232:CFCInvocationException"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="EnvioTestimonio">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="cedula" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="EnvioTestimonioResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ns:document"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="document">
<xs:sequence>
<xs:any/>
</xs:sequence>
</xs:complexType>
</xs:schema>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://rpc.xml.coldfusion/xsd">
<xs:complexType name="CFCInvocationException">
<xs:sequence/>
</xs:complexType>
<xs:complexType name="StructDelegate">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="entries" nillable="true" type="ax231:EntryDelegate"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="EntryDelegate">
<xs:sequence>
<xs:element minOccurs="0" name="key" nillable="true" type="xs:anyType"/>
<xs:element minOccurs="0" name="value" nillable="true" type="xs:anyType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="QueryBean">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="columnList" nillable="true" type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="data" nillable="true" type="ax231:ArrayOfObject"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ArrayOfObject">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="array" nillable="true" type="xs:anyType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="DocumentDelegate">
<xs:sequence>
<xs:element minOccurs="0" name="document" nillable="true" type="ns:document"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ArrayDelegate">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="array" nillable="true" type="xs:anyType"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</wsdl:types>
<wsdl:message name="EnvioTestimonioRequest">
<wsdl:part name="parameters" element="ns:EnvioTestimonio"/>
</wsdl:message>
<wsdl:message name="EnvioTestimonioResponse">
<wsdl:part name="parameters" element="ns:EnvioTestimonioResponse"/>
</wsdl:message>
<wsdl:message name="cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException">
<wsdl:part name="parameters" element="ns:cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException"/>
</wsdl:message>
<wsdl:portType name="cfmx.pruebas.rest.Testimonio.cfcPortType">
<wsdl:operation name="EnvioTestimonio">
<wsdl:input message="ns:EnvioTestimonioRequest" wsaw:Action="urn:EnvioTestimonio"/>
<wsdl:output message="ns:EnvioTestimonioResponse" wsaw:Action="urn:EnvioTestimonioResponse"/>
<wsdl:fault message="ns:cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException" name="cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException" wsaw:Action="urn:EnvioTestimoniocfmx.pruebas.rest.Testimonio.cfcCFCInvocationException"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="cfmx.pruebas.rest.Testimonio.cfcSoap11Binding" type="ns:cfmx.pruebas.rest.Testimonio.cfcPortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="EnvioTestimonio">
<soap:operation soapAction="urn:EnvioTestimonio" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException">
<soap:fault use="literal" name="cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="cfmx.pruebas.rest.Testimonio.cfcSoap12Binding" type="ns:cfmx.pruebas.rest.Testimonio.cfcPortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="EnvioTestimonio">
<soap12:operation soapAction="urn:EnvioTestimonio" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
<wsdl:fault name="cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException">
<soap12:fault use="literal" name="cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="cfmx.pruebas.rest.Testimonio.cfc">
<wsdl:port name="cfmx.pruebas.rest.Testimonio.cfcHttpSoap11Endpoint" binding="ns:cfmx.pruebas.rest.Testimonio.cfcSoap11Binding">
<soap:address location="http://localhost:8500/cfmx/pruebas/rest/Testimonio.cfc"/>
</wsdl:port>
<wsdl:port name="cfmx.pruebas.rest.Testimonio.cfcHttpSoap12Endpoint" binding="ns:cfmx.pruebas.rest.Testimonio.cfcSoap12Binding">
<soap12:address location="http://localhost:8500/cfmx/pruebas/rest/Testimonio.cfc"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Any Help would be apreciated.