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