Hi All,

If i understand well:

1) When when you place a wsdl inside a servicemix-http service unit, servicemix will parse it
and keep information about service

2) When you ask servicemix the wsdl with ?wsdl syntax servicemix autogenerate the wsdl with
information stored.

Is that right????

After doing some debug, i find a way to write the wsdl so smx, map parse correctly the ServiceDefinition, the binding and the port type class, but i still have a big problem, if my original wsdl contains "custom namespace declaration" servicemix seem lost this information when you ask to generate wsdl with ?wsdl syntax??

Has anyone the same problem??

Thanks in advance.

Andrea

Here my wsdl:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
       targetNamespace="urn:eng:spagic:processes:SimpelHttp:v0"
       xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
       xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:spagic="urn:eng:spagic" xmlns:SimpelHttp_v_0="urn:eng:spagic:processes:SimpelHttp:v0"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
<wsdl:types>
           <xsd:schema elementFormDefault="qualified"
               targetNamespace="urn:eng:spagic">
               <xsd:element name="payload" type="xsd:anyType"/>
               <xsd:element name="response" type="xsd:anyType"/>
           </xsd:schema>
       </wsdl:types>

       <wsdl:message name="msgRequest">
           <wsdl:part element="spagic:payload" name="in"/>
       </wsdl:message>

       <wsdl:message name="msgResponse">
           <wsdl:part element="spagic:response" name="out"/>
       </wsdl:message>
<wsdl:portType name="SimpelHttp.starthttp_v_0">
           <wsdl:operation name="run">
<wsdl:input message="SimpelHttp_v_0:msgRequest" name="inRequest"/> <wsdl:output message="SimpelHttp_v_0:msgResponse" name="outResponse"/>
           </wsdl:operation>
       </wsdl:portType>

<wsdl:binding name="SimpelHttp.starthttp_v_0Binding" type="SimpelHttp_v_0:SimpelHttp.starthttp_v_0">
       <wsdlsoap:binding style="document"
                 transport="http://schemas.xmlsoap.org/soap/http"/>
       <wsdl:operation name="run">
               <wsdlsoap:operation soapAction=""/>
               <wsdl:input name="inRequest">
                   <wsdlsoap:body use="literal"/>
               </wsdl:input>
               <wsdl:output name="outResponse">
                   <wsdlsoap:body use="literal"/>
               </wsdl:output>
       </wsdl:operation>
   </wsdl:binding>

   <wsdl:service name="SimpelHttp.console_v_0">
<wsdl:port binding="SimpelHttp_v_0:SimpelHttp.starthttp_v_0Binding" name="SimpelHttp.starthttp_v_0">
           <wsdlsoap:address location="http://0.0.0.0:9999/simplehttp/"/>
       </wsdl:port>
   </wsdl:service>
</wsdl:definitions>

Reply via email to