Thanks a lot for reply.
Now I can retreive wsdl. The error was the endpoint name in xbean.xml of
provider, that must match a paramater in the wsdl :
<wsdl:port binding="impl:HelloWorldEndpointConsumerBinding" name="HERE
INSERT ENDPOINT NAME OF XBEAN.XML">

Now I have another problem:
the wsdl generated doesn't contains the element OPERATION under element
BINDING.
This is the wsdl generated :
<wsdl:types>
  </wsdl:types>
  <wsdl:message name="echoResponse">
    <wsdl:part name="echoReturn" type="xsd:string"/>
  </wsdl:message>
  <wsdl:message name="echoRequest">
  </wsdl:message>
  <wsdl:portType name="HelloWorldService">
    <wsdl:operation name="echo">
      <wsdl:input message="impl:echoRequest" name="echoRequest"/>
      <wsdl:output message="impl:echoResponse" name="echoResponse"/>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="HelloWorldEndpointConsumerBinding"
type="impl:HelloWorldService">
HERE IS NOT PRESENT ELEMENT OPERATION
  </wsdl:binding>
  <wsdl:service name="HelloWorldServiceConsumer">
    <wsdl:port binding="impl:HelloWorldEndpointConsumerBinding"
name="HelloWorldEndpointConsumer">
      <http:address
location="http://localhost:8192/services/HelloWorldService/"/>
    </wsdl:port>
  </wsdl:service>

Why?




pascale4 wrote:
> 
> Hi,
> I exposed an external web service with http component
> (consumer-->provider).
> 
> This is the xbean.xml of provider
> 
> <http:endpoint
>         service="ns1:HelloWorldServiceService"
>         endpoint="helloWorldServiceServiceEP"
>         role="provider"
>        
> locationURI="http://localhost:8080/helloworldws/services/HelloWorldService";
>        
> wsdlResource="http://localhost:8080/helloworldws/services/HelloWorldService?wsdl";
> />
> 
> and this is xbean.xml of consumer
> 
> <http:endpoint
>         service="ns1:HelloWorldServiceServiceConsumer"
>         endpoint="helloWorldServiceServiceEP"
>         role="consumer"
>         targetService="ns1:HelloWorldServiceService"
>         locationURI="http://localhost:8192/services/HelloWorldService/";
>         defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
> />
> 
> I modified client.html of wsd-first example to send a message, and I
> receive correctly the response.
> 
> How can I invoke external web service through an application client? How
> can I generate stub?
> 
> The link http://localhost:8192/services/HelloWorldService?wsdl doesn't
> works.
> 
> Sorry, but I'm new to service mix.
> 
> Thanks a lot
> Massimo
> 

-- 
View this message in context: 
http://www.nabble.com/Accessing-web-service-through-client-stub-tf2965411s12049.html#a8369564
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to