2 Replies Latest reply on Oct 26, 2009 2:02 PM by m k

    Cxfbc endpoint error

    m k Newbie

      Hi,

       

      WSDL:

       

       

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

      <wsdl:definitions xmlns:soap="[http://schemas.xmlsoap.org/wsdl/soap/]"

      xmlns:tns="[http://servicemix.apache.org/examples]"

      xmlns:typens="[http://servicemix.apache.org/examples/types]"

      xmlns:wsdl="[http://schemas.xmlsoap.org/wsdl/]"

      xmlns:xsd="[http://www.w3.org/2001/XMLSchema]"

      name="hello"

      targetNamespace="[http://servicemix.apache.org/examples]">

       

       

      <wsdl:types>

        <xsd:schema targetNamespace="[http://servicemix.apache.org/examples/types]"

                    elementFormDefault="qualified">

         <xsd:element name="SayHello">

           <xsd:complexType>

           <xsd:sequence>

            <xsd:element name="name" type="xsd:string"/>

           </xsd:sequence>

          </xsd:complexType>

         </xsd:element>

         <xsd:element name="SayHelloResponse">

           <xsd:complexType>

           <xsd:sequence>

            <xsd:element name="name" type="xsd:string"/>

           </xsd:sequence>

          </xsd:complexType>

         </xsd:element>

         <xsd:element name="UnknownWordFault">

           <xsd:complexType>

           <xsd:sequence>

               <xsd:element name="word" type="xsd:string"/>

           </xsd:sequence>

          </xsd:complexType>

         </xsd:element>

        </xsd:schema>

        </wsdl:types>

       

       

      <wsdl:message name="SayHelloRequest">

        <wsdl:part name="payload" element="typens:SayHello"/>

      </wsdl:message>

      <wsdl:message name="SayHelloResponse">

        <wsdl:part name="payload" element="typens:SayHelloResponse"/>

      </wsdl:message>

      <wsdl:message name="UnknownWordFault">

        <wsdl:part name="payload" element="typens:UnknownWordFault"/>

      </wsdl:message>

       

       

          <wsdl:portType name="Hello">

        <wsdl:operation name="SayHello">

         <wsdl:input message="tns:SayHelloRequest"/>

         <wsdl:output message="tns:SayHelloResponse"/>

         <wsdl:fault name="UnknownWord" message="tns:UnknownWordFault"/>

        </wsdl:operation>

      </wsdl:portType>

       

       

      <wsdl:binding name="HelloSOAPBinding" type="tns:Hello">

           <soap:binding style="document" transport="[http://schemas.xmlsoap.org/soap/http]" />

        <wsdl:operation name="SayHello">

         <wsdl:input>

          <soap:body use="literal" />

         </wsdl:input>

         <wsdl:output>

          <soap:body use="literal" />

         </wsdl:output>

         <wsdl:fault name="UnknownWord">

          <soap:fault use="literal" name="UnknownWord" />

         </wsdl:fault>

             </wsdl:operation>

      </wsdl:binding>

       

       

      <wsdl:service name="HelloService">

      <wsdl:port binding="tns:HelloSOAPBinding" name="soap">

                 <soap:address location="[http://localhost:8193/HelloService/]" />

             </wsdl:port>

      </wsdl:service>

      </wsdl:definitions>

       

      xbean.xml:

       

       

      <beans xmlns:cxfbc="[http://servicemix.apache.org/cxfbc/1.0]"

             xmlns:hello="[http://servicemix.apache.org/examples]">

       

       

        <cxfbc:consumer  wsdl="classpath:service.wsdl"

           service="hello:HelloService"

           endpoint="soap"

           targetService="hello:HelloService"

           targetEndpoint="soapPortProxy"

                          interfaceName="hello:Hello"

            />

       

       

      <cxfbc:provider wsdl="classpath:service.wsdl"

           locationURI="[http://localhost:9000/Service/]"

           service="hello:HelloService"

           endpoint="soapPortProxy"  />

       

       

      </beans>

       

       

      My question: How to solve problem: Endpoint ServiceEndpoint[service={[http://servicemix.apache.org/examples]} HelloService, endpoint=soapPortProxy] has a service description but no matching endpoint found in ??

       

      Best regards,

      MK

       

       

        • 1. Re: Cxfbc endpoint error
          Giovani Seben Newbie

          kumako22,

           

          What are you trying to achieve? do you want to simply get the hello world service to work? Why are you trying to use a consumer and provider with this wsdl? Did you rename the hello.wsdl to service.wsdl?

           

          Thanks,

          -Gio

          • 2. Re: Cxfbc endpoint error
            m k Newbie

            I'm trying to do this schema:

             

            I'm connecting to ESB -> ESB is connecting to external wsdl on server or localhost -> wsdl returns response to ESB -> ESB returns it to me.

             

            In other way: consumer endpoint on ESB receives message form external endpoint then provider send answer to external endpoint.

             

            It is smoething like routing through ESB.

             

            That's why I think I should use consumer and provider, but I don't know how to properly confiugure xbean.xml

             

            - my wsdl is on http://example.com/HelloService/

             

            Any clues?

             

            MK