Hi, I´m new to serviceMix and i´m trying to use the serviceMix as a kind of
proxy to other web services. When I download the wsdl file through the
serviceMix, I receive a wsdl file with the binding element without any
operation to call. In the original wsdl file, I have the following binding
definitions:

<binding name="gmcdService" type="tns:gmcdServicePortType">
 <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
 <operation name="isGmcdRunning">
  <soap:operation/>
  <input>
     <soap:body parts="parameters" use="literal"/>
  </input>
  <output>
     <soap:body parts="parameters" use="literal"/>
  </output>
 </operation>
</binding>

When I download the wsdl file through the serviceMix, the types, ports,
services and messages elements are correct returned, except the binding
element. This is the binding element returned:

<binding name="EntradaSimpleWSBinding" type="tns:gmcdServicePortType">
</binding>

I have the component service-http and the following xbean file
configuration:

<?xml version="1.0"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0";
            xmlns:http="http://servicemix.apache.org/http/1.0";
            xmlns:foo="http://sage.web.app.service.gmcd/GmcdService/";>

            <classpath>
                 <location>.</location>
            </classpath> 

            <http:endpoint
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
                 targetService="foo:gmcdService"
                 service="foo:gmcdService"
                 endpoint="gmcdService"
                 role="provider"
                 locationURI="http://localhost:41001/";
                 wsdlResource="classpath:gmcdService.wsdl">
            </http:endpoint>

            <http:endpoint
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
                 targetService="foo:gmcdService"
                 service="foo:gmcdService"
                 endpoint="EntradaSimpleWS"
                 role="consumer"
                 locationURI="http://0.0.0.0:50000/GmcdService";>
            </http:endpoint>
</beans>

The service on host http://localhost:41001/ is up and I have other clients
using it with the gmcdService.wsdl file.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Problem-when-retrieving-the-wsdl-file-from-Service-Mix-tf3309150s12049.html#a9204773
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to