0 Replies Latest reply on Mar 24, 2010 11:12 AM by dazzah

    Error #1083: When connecting to web service

    dazzah

      I have created an axis2 webservice however when i call it from flex i get the following error:

       

      Error #1083: The prefix "0.urn" for element "0.urn:uuid:BCF54D7F0A9A6229F71269451976057@apache.org" is not bound. null

       

       

      the wsdl is as follows and the returned saop message is shown below:

       

      as ideas why flex will not talk to this web service would be appreciated

      thanks

      darryl

       

      -------------------------------------------

      <wsdl:definitions targetNamespace="http://ws.apache.org/axis2">
      <wsdl:documentation>No service description set</wsdl:documentation>

      <wsdl:types>

      <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://ws.apache.org/axis2">

      <xs:element name="getAllResponse">

      <xs:complexType>

      <xs:sequence>
      <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
      </xs:sequence>
      </xs:complexType>
      </xs:element>

      <xs:element name="sayHello">

      <xs:complexType>

      <xs:sequence>
      <xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
      </xs:sequence>
      </xs:complexType>
      </xs:element>

      <xs:element name="sayHelloResponse">

      <xs:complexType>

      <xs:sequence>
      <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      </xs:schema>
      </wsdl:types>
      <wsdl:message name="getAllRequest"/>

      <wsdl:message name="getAllResponse">
      <wsdl:part name="parameters" element="ns:getAllResponse"/>
      </wsdl:message>

      <wsdl:message name="sayHelloRequest">
      <wsdl:part name="parameters" element="ns:sayHello"/>
      </wsdl:message>

      <wsdl:message name="sayHelloResponse">
      <wsdl:part name="parameters" element="ns:sayHelloResponse"/>
      </wsdl:message>

      <wsdl:portType name="testPortType">

      <wsdl:operation name="getAll">
      <wsdl:input message="ns:getAllRequest" wsaw:Action="urn:getAll"/>
      <wsdl:output message="ns:getAllResponse" wsaw:Action="urn:getAllResponse"/>
      </wsdl:operation>

      <wsdl:operation name="sayHello">
      <wsdl:input message="ns:sayHelloRequest" wsaw:Action="urn:sayHello"/>
      <wsdl:output message="ns:sayHelloResponse" wsaw:Action="urn:sayHelloResponse"/>
      </wsdl:operation>
      </wsdl:portType>

      <wsdl:binding name="testSoap11Binding" type="ns:testPortType">
      <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>

      <wsdl:operation name="getAll">
      <soap:operation soapAction="urn:getAll" style="document"/>

      <wsdl:input>
      <soap:body use="literal"/>
      </wsdl:input>

      <wsdl:output>
      <soap:body use="literal"/>
      </wsdl:output>
      </wsdl:operation>

      <wsdl:operation name="sayHello">
      <soap:operation soapAction="urn:sayHello" style="document"/>

      <wsdl:input>
      <soap:body use="literal"/>
      </wsdl:input>

      <wsdl:output>
      <soap:body use="literal"/>
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>

      <wsdl:binding name="testSoap12Binding" type="ns:testPortType">
      <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>

      <wsdl:operation name="getAll">
      <soap12:operation soapAction="urn:getAll" style="document"/>

      <wsdl:input>
      <soap12:body use="literal"/>
      </wsdl:input>

      <wsdl:output>
      <soap12:body use="literal"/>
      </wsdl:output>
      </wsdl:operation>

      <wsdl:operation name="sayHello">
      <soap12:operation soapAction="urn:sayHello" style="document"/>

      <wsdl:input>
      <soap12:body use="literal"/>
      </wsdl:input>

      <wsdl:output>
      <soap12:body use="literal"/>
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>

      <wsdl:binding name="testHttpBinding" type="ns:testPortType">
      <http:binding verb="POST"/>

      <wsdl:operation name="getAll">
      <http:operation location="test/getAll"/>

      <wsdl:input>
      <mime:content type="text/xml" part="getAll"/>
      </wsdl:input>

      <wsdl:output>
      <mime:content type="text/xml" part="getAll"/>
      </wsdl:output>
      </wsdl:operation>

      <wsdl:operation name="sayHello">
      <http:operation location="test/sayHello"/>

      <wsdl:input>
      <mime:content type="text/xml" part="sayHello"/>
      </wsdl:input>

      <wsdl:output>
      <mime:content type="text/xml" part="sayHello"/>
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>

      <wsdl:service name="test">

      <wsdl:port name="testHttpSoap11Endpoint" binding="ns:testSoap11Binding">
      <soap:address location="http://192.168.200.239:8081/salesSmart/services/test.testHttpSoap11Endpoint/"/>
      </wsdl:port>

      <wsdl:port name="testHttpSoap12Endpoint" binding="ns:testSoap12Binding">
      <soap12:address location="http://192.168.200.239:8081/salesSmart/services/test.testHttpSoap12Endpoint/"/>
      </wsdl:port>

      <wsdl:port name="testHttpEndpoint" binding="ns:testHttpBinding">
      <http:address location="http://192.168.200.239:8081/salesSmart/services/test.testHttpEndpoint/"/>
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>

       

      ------------------------------------------------

       

      when calling the web service it returns the following soap messsage:

       

      $ curl --header "Content-type: application/soap+xml" -i --data @getAll.xml -X POST http://localhost:8081/salesSmart/services/test
      HTTP/1.1 200 OK
      Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_EDD8EE0CA8C9B763F71269453878168; type="application/soap+xml"; start="<0.urn:u
      uid:EDD8EE0CA8C9B763F71269453878169@apache.org>"; action="urn:getAllResponse"
      Transfer-Encoding: chunked
      Server: Jetty(6.1.14)

       

      --MIMEBoundaryurn_uuid_EDD8EE0CA8C9B763F71269453878168
      Content-Type: application/soap+xml; charset=UTF-8
      Content-Transfer-Encoding: 8bit
      Content-ID: <0.urn:uuid:EDD8EE0CA8C9B763F71269453878169@apache.org>

       

      <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><ns:getAllResp
      onse xmlns:ns="http://ws.apache.org/axis2"><ns:return>success</ns:return></ns:getAllResponse></soapenv:Body></soapenv:Envelope>
      --MIMEBoundaryurn_uuid_EDD8EE0CA8C9B763F71269453878168--