Consume Adobe Coldfusion WebService

1
0
-1

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:

  1. </p>
  2.  
  3. <p><s12:Envelope xmlns:s12='http://www.w3.org/2003/05/soap-envelope'><br />
  4.   <s12:Body><br />
  5.     <ns:EnvioTestimonio xmlns:ns='http://rest.pruebas'><br />
  6. <!-- optional --><br />
  7. <!-- This element may be left empty if xsi:nil='true' is set. --><br />
  8.       <ns:cedula>1</ns:cedula><br />
  9.     </ns:EnvioTestimonio><br />
  10.   </s12:Body><br />
  11. </s12:Envelope>

Here is the wsdl:

  1.  
  2.  
  3.     <wsdl:types>
  4.         <xs:schema xmlns:ax232="http://rpc.xml.coldfusion/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://rest.pruebas">
  5.             <xs:import namespace="http://rpc.xml.coldfusion/xsd"/>
  6.             <xs:element name="cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException">
  7.                 <xs:complexType>
  8.                     <xs:sequence>
  9.                         <xs:element minOccurs="0" name="CFCInvocationException" nillable="true" type="ax232:CFCInvocationException"/>
  10.                     </xs:sequence>
  11.                 </xs:complexType>
  12.             </xs:element>
  13.             <xs:element name="EnvioTestimonio">
  14.                 <xs:complexType>
  15.                     <xs:sequence>
  16.                         <xs:element minOccurs="0" name="cedula" nillable="true" type="xs:string"/>
  17.                     </xs:sequence>
  18.                 </xs:complexType>
  19.             </xs:element>
  20.             <xs:element name="EnvioTestimonioResponse">
  21.                 <xs:complexType>
  22.                     <xs:sequence>
  23.                         <xs:element minOccurs="0" name="return" nillable="true" type="ns:document"/>
  24.                     </xs:sequence>
  25.                 </xs:complexType>
  26.             </xs:element>
  27.             <xs:complexType name="document">
  28.                 <xs:sequence>
  29.                     <xs:any/>
  30.                 </xs:sequence>
  31.             </xs:complexType>
  32.         </xs:schema>
  33.         <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://rpc.xml.coldfusion/xsd">
  34.             <xs:complexType name="CFCInvocationException">
  35.                 <xs:sequence/>
  36.             </xs:complexType>
  37.             <xs:complexType name="StructDelegate">
  38.                 <xs:sequence>
  39.                     <xs:element maxOccurs="unbounded" minOccurs="0" name="entries" nillable="true" type="ax231:EntryDelegate"/>
  40.                 </xs:sequence>
  41.             </xs:complexType>
  42.             <xs:complexType name="EntryDelegate">
  43.                 <xs:sequence>
  44.                     <xs:element minOccurs="0" name="key" nillable="true" type="xs:anyType"/>
  45.                     <xs:element minOccurs="0" name="value" nillable="true" type="xs:anyType"/>
  46.                 </xs:sequence>
  47.             </xs:complexType>
  48.             <xs:complexType name="QueryBean">
  49.                 <xs:sequence>
  50.                     <xs:element maxOccurs="unbounded" minOccurs="0" name="columnList" nillable="true" type="xs:string"/>
  51.                     <xs:element maxOccurs="unbounded" minOccurs="0" name="data" nillable="true" type="ax231:ArrayOfObject"/>
  52.                 </xs:sequence>
  53.             </xs:complexType>
  54.             <xs:complexType name="ArrayOfObject">
  55.                 <xs:sequence>
  56.                     <xs:element maxOccurs="unbounded" minOccurs="0" name="array" nillable="true" type="xs:anyType"/>
  57.                 </xs:sequence>
  58.             </xs:complexType>
  59.             <xs:complexType name="DocumentDelegate">
  60.                 <xs:sequence>
  61.                     <xs:element minOccurs="0" name="document" nillable="true" type="ns:document"/>
  62.                 </xs:sequence>
  63.             </xs:complexType>
  64.             <xs:complexType name="ArrayDelegate">
  65.                 <xs:sequence>
  66.                     <xs:element maxOccurs="unbounded" minOccurs="0" name="array" nillable="true" type="xs:anyType"/>
  67.                 </xs:sequence>
  68.             </xs:complexType>
  69.         </xs:schema>
  70.     </wsdl:types>
  71.     <wsdl:message name="EnvioTestimonioRequest">
  72.         <wsdl:part name="parameters" element="ns:EnvioTestimonio"/>
  73.     </wsdl:message>
  74.     <wsdl:message name="EnvioTestimonioResponse">
  75.         <wsdl:part name="parameters" element="ns:EnvioTestimonioResponse"/>
  76.     </wsdl:message>
  77.     <wsdl:message name="cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException">
  78.         <wsdl:part name="parameters" element="ns:cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException"/>
  79.     </wsdl:message>
  80.     <wsdl:portType name="cfmx.pruebas.rest.Testimonio.cfcPortType">
  81.         <wsdl:operation name="EnvioTestimonio">
  82.             <wsdl:input message="ns:EnvioTestimonioRequest" wsaw:Action="urn:EnvioTestimonio"/>
  83.             <wsdl:output message="ns:EnvioTestimonioResponse" wsaw:Action="urn:EnvioTestimonioResponse"/>
  84.             <wsdl:fault message="ns:cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException" name="cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException" wsaw:Action="urn:EnvioTestimoniocfmx.pruebas.rest.Testimonio.cfcCFCInvocationException"/>
  85.         </wsdl:operation>
  86.     </wsdl:portType>
  87.     <wsdl:binding name="cfmx.pruebas.rest.Testimonio.cfcSoap11Binding" type="ns:cfmx.pruebas.rest.Testimonio.cfcPortType">
  88.         <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
  89.         <wsdl:operation name="EnvioTestimonio">
  90.             <soap:operation soapAction="urn:EnvioTestimonio" style="document"/>
  91.             <wsdl:input>
  92.                 <soap:body use="literal"/>
  93.             </wsdl:input>
  94.             <wsdl:output>
  95.                 <soap:body use="literal"/>
  96.             </wsdl:output>
  97.             <wsdl:fault name="cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException">
  98.                 <soap:fault use="literal" name="cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException"/>
  99.             </wsdl:fault>
  100.         </wsdl:operation>
  101.     </wsdl:binding>
  102.     <wsdl:binding name="cfmx.pruebas.rest.Testimonio.cfcSoap12Binding" type="ns:cfmx.pruebas.rest.Testimonio.cfcPortType">
  103.         <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
  104.         <wsdl:operation name="EnvioTestimonio">
  105.             <soap12:operation soapAction="urn:EnvioTestimonio" style="document"/>
  106.             <wsdl:input>
  107.                 <soap12:body use="literal"/>
  108.             </wsdl:input>
  109.             <wsdl:output>
  110.                 <soap12:body use="literal"/>
  111.             </wsdl:output>
  112.             <wsdl:fault name="cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException">
  113.                 <soap12:fault use="literal" name="cfmx.pruebas.rest.Testimonio.cfcCFCInvocationException"/>
  114.             </wsdl:fault>
  115.         </wsdl:operation>
  116.     </wsdl:binding>
  117.     <wsdl:service name="cfmx.pruebas.rest.Testimonio.cfc">
  118.         <wsdl:port name="cfmx.pruebas.rest.Testimonio.cfcHttpSoap11Endpoint" binding="ns:cfmx.pruebas.rest.Testimonio.cfcSoap11Binding">
  119.             <soap:address location="http://localhost:8500/cfmx/pruebas/rest/Testimonio.cfc"/>
  120.         </wsdl:port>
  121.         <wsdl:port name="cfmx.pruebas.rest.Testimonio.cfcHttpSoap12Endpoint" binding="ns:cfmx.pruebas.rest.Testimonio.cfcSoap12Binding">
  122.             <soap12:address location="http://localhost:8500/cfmx/pruebas/rest/Testimonio.cfc"/>
  123.         </wsdl:port>
  124.     </wsdl:service>
  125. </wsdl:definitions>

Any Help would be apreciated.

1 answer

1
0
-1

http://community.bonitasoft.com/groups/usage-operation-5x/resolved-web-service-called-bonita-wrong-binding-id

If it doenst work, cant you attach your process to investigate in deep?

Cheers

Notifications