You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by jriobello <j-...@ejie.es> on 2006/12/12 11:19:57 UTC

servicemix-http and wsdl

Hello,

I can't show the wsdl from a remote http provider...

I have used de wire-tap for trace and servicemix-http component for expose a
remote WebLogic WebService inside ServieMix http server. The consumer
service run ok, but can't view the wsdl...



This is my servicemix.xml:
<beans xmlns:sm="http://servicemix.apache.org/config/1.0" 
        xmlns:eip="http://servicemix.apache.org/eip/1.0" 
        xmlns:httpsm="http://servicemix.apache.org/http/1.0" 
        xmlns:ns="http://www.openuri.org/" 
        xmlns:myns="http://myNameSpace/servicemix/1.0"
        xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/"
xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:s0="http://www.openuri.org/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">

        

        <!-- the JBI container --> 
        <sm:container id="jbi" useMBeanServer="true" 
                createMBeanServer="true" dumpStats="true"
statsInterval="10"> 
                <sm:activationSpecs>                 
													<sm:activationSpec componentName="providers"> 
													  <sm:component>
													    <httpsm:component>
													      <httpsm:endpoints>
													        <httpsm:endpoint service="ns:getMailBox"
targetService="ns:getMailBox"
													                       endpoint="getMailBoxSEP"
													                       role="provider" 
													                       
													                       soapVersion="1.1"
													                      
locationURI="http://www.integracion.jakina.ejiedes.net:8080/q99xServicesSimulationWS/com/ejie/ws/Q99xGetMailBoxWS.jws"
													                      
wsdlResource="http://www.integracion.jakina.ejiedes.net:8080/q99xServicesSimulationWS/com/ejie/ws/Q99xGetMailBoxWS.jws?WSDL"
/>
													      </httpsm:endpoints>
													    </httpsm:component>
													  </sm:component>
													</sm:activationSpec>
													
													<sm:activationSpec componentName="consumers"> 
													  <sm:component>
													    <httpsm:component>
													      <httpsm:endpoints>             
													        <httpsm:endpoint service="ns:getMailBox"
													                       endpoint="getMailBoxEP"
targetService="myns:routerForWL"
													                       role="consumer" 
													                       
													                       soapVersion="1.1"
																								 targetInterfaceName="ns:getMailBox" 
													                      
locationURI="http://localhost:8192/ServiceCosnumer"
													                      
defaultMep="http://www.w3.org/2004/08/wsdl/in-out" />
													      </httpsm:endpoints>
													    </httpsm:component>
													  </sm:component>
													</sm:activationSpec>
													                        
													<!-- This is a simple trace component to log messages routed
here --> 
													<sm:activationSpec componentName="trace" service="myns:trace"> 
														<sm:component> 
															<bean xmlns="http://xbean.org/schemas/spring/1.0"
class="org.apache.servicemix.components.util.TraceComponent" /> 
														</sm:component> 
													</sm:activationSpec> 
                        
                        <!-- The routing services --> 
                        <sm:activationSpec componentName="wireTrapWL"> 
                                <sm:component> 
                                        <eip:component> 
                                                <eip:endpoints> 
                                                        <eip:wire-tap 
                                                               
endpoint="wireTrapWLEndpoint" service="myns:routerForWL">                                                                
                                                                <eip:target> 
                                                                       
<eip:exchange-target 
                                                                               
service="ns:getMailBox" /> 
                                                               
</eip:target> 
                                                               
<eip:outListener> 
                                                                       
<eip:exchange-target 
                                                                               
service="myns:trace" /> 
                                                               
</eip:outListener>                                                                 
                                                               
<eip:inListener> 
                                                                       
<eip:exchange-target 
                                                                               
service="myns:trace" /> 
                                                               
</eip:inListener> 
                                                        </eip:wire-tap> 
                                                </eip:endpoints> 
                                        </eip:component> 
                                </sm:component> 
                        </sm:activationSpec>                        
                </sm:activationSpecs> 
        </sm:container> 
</beans> 




This is the error (i think):

DEBUG - HttpSpringComponent            - Service for targetService could not
be found
DEBUG - ComponentContextImpl           - Component: providers activated
endpoint: {http://www.openuri.org/}getMailBox : getMailBoxSEP
DEBUG - HttpSpringComponent            - Querying service description for
ServiceEndpoint[service={http://www.openuri.org/}getMailBox,endpoint=getMailBoxSEP]
DEBUG - HttpSpringComponent            - No description found for
{http://www.openuri.org/}getMailBox:getMailBoxSEP
DEBUG - EndpointRegistry               - Endpoint
ServiceEndpoint[service={http://www.openuri.org/}getMailBox,endpoint=getMailBoxSEP]
has no service description



And this is the remote WSDL:
<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/"
xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:s0="http://www.openuri.org/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
targetNamespace="http://www.openuri.org/">
  <types>
    <s:schema xmlns:s="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" targetNamespace="http://www.openuri.org/">
      <s:element name="getMailBox">
        <s:complexType>
          <s:sequence>
            <s:element name="integrationToken" type="s:string"
minOccurs="0"/>
            <s:element name="province" type="s:string" minOccurs="0"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="getMailBoxResponse">
        <s:complexType>
          <s:sequence>
            <s:element name="getMailBoxResult" type="s:string"
minOccurs="0"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="string" nillable="true" type="s:string"/>
    </s:schema>

  </types>
  <message name="getMailBoxSoapIn">
    <part name="parameters" element="s0:getMailBox"/>
  </message>
  <message name="getMailBoxSoapOut">
    <part name="parameters" element="s0:getMailBoxResponse"/>
  </message>
  <message name="getMailBoxHttpGetIn">
    <part name="integrationToken" type="s:string"/>
    <part name="province" type="s:string"/>
  </message>
  <message name="getMailBoxHttpGetOut">
    <part name="Body" element="s0:string"/>
  </message>
  <message name="getMailBoxHttpPostIn">
    <part name="integrationToken" type="s:string"/>
    <part name="province" type="s:string"/>
  </message>
  <message name="getMailBoxHttpPostOut">
    <part name="Body" element="s0:string"/>
  </message>
  <portType name="Q99xGetMailBoxWSSoap">
    <operation name="getMailBox">
      <input message="s0:getMailBoxSoapIn"/>
      <output message="s0:getMailBoxSoapOut"/>
    </operation>
  </portType>
  <portType name="Q99xGetMailBoxWSHttpGet">
    <operation name="getMailBox">
      <input message="s0:getMailBoxHttpGetIn"/>
      <output message="s0:getMailBoxHttpGetOut"/>
    </operation>
  </portType>
  <portType name="Q99xGetMailBoxWSHttpPost">
    <operation name="getMailBox">
      <input message="s0:getMailBoxHttpPostIn"/>
      <output message="s0:getMailBoxHttpPostOut"/>
    </operation>
  </portType>
  <binding name="Q99xGetMailBoxWSSoap" type="s0:Q99xGetMailBoxWSSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
    <operation name="getMailBox">
      <soap:operation soapAction="http://www.openuri.org/getMailBox"
style="document"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
    </operation>
  </binding>
  <binding name="Q99xGetMailBoxWSHttpGet" type="s0:Q99xGetMailBoxWSHttpGet">
    <http:binding verb="GET"/>
    <operation name="getMailBox">
      <http:operation location="/getMailBox"/>
      <input>
        <http:urlEncoded/>
      </input>
      <output>
        <mime:mimeXml part="Body"/>
      </output>
    </operation>
  </binding>
  <binding name="Q99xGetMailBoxWSHttpPost"
type="s0:Q99xGetMailBoxWSHttpPost">
    <http:binding verb="POST"/>
    <operation name="getMailBox">
      <http:operation location="/getMailBox"/>
      <input>
        <mime:content type="application/x-www-form-urlencoded"/>
      </input>
      <output>
        <mime:mimeXml part="Body"/>
      </output>
    </operation>
  </binding>
  <service name="Q99xGetMailBoxWS">
    <port name="Q99xGetMailBoxWSSoap" binding="s0:Q99xGetMailBoxWSSoap">
      <soap:address
location="http://www.integracion.jakina.ejiedes.net:8080/q99xServicesSimulationWS/com/ejie/ws/Q99xGetMailBoxWS.jws"/>
    </port>
    <port name="Q99xGetMailBoxWSHttpGet"
binding="s0:Q99xGetMailBoxWSHttpGet">
      <http:address
location="http://www.integracion.jakina.ejiedes.net:8080/q99xServicesSimulationWS/com/ejie/ws/Q99xGetMailBoxWS.jws"/>
    </port>
    <port name="Q99xGetMailBoxWSHttpPost"
binding="s0:Q99xGetMailBoxWSHttpPost">
      <http:address
location="http://www.integracion.jakina.ejiedes.net:8080/q99xServicesSimulationWS/com/ejie/ws/Q99xGetMailBoxWS.jws"/>
    </port>
  </service>
</definitions>
-- 
View this message in context: http://www.nabble.com/servicemix-http-and-wsdl-tf2806597s12049.html#a7830453
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: servicemix-http and wsdl

Posted by jriobello <j-...@ejie.es>.
Thank you, but can't see the wsdl:

This is the trace:
DEBUG - jetty                          - RESPONSE /ServiceCosnumer/  302
DEBUG - JettyContextManager            - Dispatching job:
HEP@18871377[d=true,io=1,w=true,b=0|0]
DEBUG - jetty                          - REQUEST /ServiceCosnumer/main.wsdl
on org.mortbay.jetty.HttpConnection@c26ede
DEBUG - jetty                          - servlet=jbiServlet
DEBUG - jetty                          - chain=null
DEBUG - jetty                          - servelet holder=jbiServlet
DEBUG - ConsumerProcessor              - Receiving HTTP request: GET
/ServiceCosnumer/main.wsdl HTTP/1.1
Accept: */*
Accept-Language: es-us
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; EJGVNET; .NET
CLR 2.0.50727; EJGVNET; EJGVNET)
Host: localhost:8192
Connection: keep-alive


DEBUG - jetty                          - RESPONSE /ServiceCosnumer/main.wsdl 
404


 And this is the new servicemix.xml:
<beans xmlns:sm="http://servicemix.apache.org/config/1.0" 
        xmlns:eip="http://servicemix.apache.org/eip/1.0" 
        xmlns:httpsm="http://servicemix.apache.org/http/1.0" 
        xmlns:ns="http://www.openuri.org/" 
        xmlns:myns="http://myNameSpace/servicemix/1.0"
        xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/"
xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:s0="http://www.openuri.org/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">

        

        <!-- the JBI container --> 
        <sm:container id="jbi" useMBeanServer="true" 
                createMBeanServer="true" dumpStats="true"
statsInterval="10"> 
                <sm:activationSpecs>     
													<sm:activationSpec componentName="consumers"> 
													  <sm:component>
													    <httpsm:component>
													      <httpsm:endpoints>             
													        <httpsm:endpoint service="ns:getMailBox"
													                       endpoint="getMailBoxEP"
targetService="myns:routerForWL"
													                       role="consumer" 
													                       
													                       soapVersion="1.1"
																								 targetInterfaceName="ns:getMailBox" 
													                      
locationURI="http://localhost:8192/ServiceCosnumer"
													                      
defaultMep="http://www.w3.org/2004/08/wsdl/in-out" />
													      </httpsm:endpoints>
													    </httpsm:component>
													  </sm:component>
													</sm:activationSpec>
													                        
													<!-- This is a simple trace component to log messages routed
here --> 
													<sm:activationSpec componentName="trace" service="myns:trace"> 
														<sm:component> 
															<bean xmlns="http://xbean.org/schemas/spring/1.0"
class="org.apache.servicemix.components.util.TraceComponent" /> 
														</sm:component> 
													</sm:activationSpec> 
                        
                        <!-- The routing services --> 
                        <sm:activationSpec componentName="wireTrapWL"> 
                                <sm:component> 
                                        <eip:component> 
                                                <eip:endpoints> 
                                                        <eip:wire-tap 
                                                               
endpoint="wireTrapWLEndpoint" service="myns:routerForWL">                                                                
                                                                <eip:target> 
                                                                       
<eip:exchange-target 
                                                                               
service="ns:getMailBox" /> 
                                                               
</eip:target> 
                                                               
<eip:outListener> 
                                                                       
<eip:exchange-target 
                                                                               
service="myns:trace" /> 
                                                               
</eip:outListener>                                                                 
                                                               
<eip:inListener> 
                                                                       
<eip:exchange-target 
                                                                               
service="myns:trace" /> 
                                                               
</eip:inListener> 
                                                        </eip:wire-tap> 
                                                </eip:endpoints> 
                                        </eip:component> 
                                </sm:component> 
                        </sm:activationSpec> 
                                                    
													<sm:activationSpec componentName="providers"> 
													  <sm:component>
													    <httpsm:component>
													      <httpsm:endpoints>
													        <httpsm:endpoint service="ns:getMailBox"
targetService="ns:getMailBox"
													                       endpoint="getMailBoxSEP"
													                       role="provider" 
													                       
													                       soapVersion="1.1"
													                      
locationURI="http://www.integracion.jakina.ejiedes.net:8080/q99xServicesSimulationWS/com/ejie/ws/Q99xGetMailBoxWS.jws"
													                      
wsdlResource="http://www.integracion.jakina.ejiedes.net:8080/q99xServicesSimulationWS/com/ejie/ws/Q99xGetMailBoxWS.jws?WSDL"
/>
													      </httpsm:endpoints>
													    </httpsm:component>
													  </sm:component>
													</sm:activationSpec>
								                     </sm:activationSpecs> 
        </sm:container> 
</beans>

gnodet wrote:
> 
> You should order your activationSpec so that they are started in the
> order needed to resolve the WSDLs.
> The http consumer will look for the description of the wiretap, which
> should look for the description of the http provider.
> Try using this order: consumer, eip, provider instead of the current one
> which is: provider, consumer, eip.
> 
> On 12/12/06, jriobello <j-...@ejie.es> wrote:
>>
>> Hello,
>>
>> I can't show the wsdl from a remote http provider...
>>
>> I have used de wire-tap for trace and servicemix-http component for
>> expose a
>> remote WebLogic WebService inside ServieMix http server. The consumer
>> service run ok, but can't view the wsdl...
>>
>>
>>
>> This is my servicemix.xml:
>> <beans xmlns:sm="http://servicemix.apache.org/config/1.0"
>>         xmlns:eip="http://servicemix.apache.org/eip/1.0"
>>         xmlns:httpsm="http://servicemix.apache.org/http/1.0"
>>         xmlns:ns="http://www.openuri.org/"
>>         xmlns:myns="http://myNameSpace/servicemix/1.0"
>>         xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/"
>> xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/"
>> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
>> xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/"
>> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
>> xmlns:s="http://www.w3.org/2001/XMLSchema"
>> xmlns:s0="http://www.openuri.org/"
>> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>>
>>
>>
>>         <!-- the JBI container -->
>>         <sm:container id="jbi" useMBeanServer="true"
>>                 createMBeanServer="true" dumpStats="true"
>> statsInterval="10">
>>                 <sm:activationSpecs>
>>                                                                                                        
>> <sm:activationSpec componentName="providers">
>>                                                                                                          
>> <sm:component>
>>                                                                                                            
>> <httpsm:component>
>>                                                                                                              
>> <httpsm:endpoints>
>>                                                                                                                
>> <httpsm:endpoint service="ns:getMailBox"
>> targetService="ns:getMailBox"
>>                                                                                                                               
>> endpoint="getMailBoxSEP"
>>                                                                                                                               
>> role="provider"
>>
>>                                                                                                                               
>> soapVersion="1.1"
>>
>> locationURI="http://www.integracion.jakina.ejiedes.net:8080/q99xServicesSimulationWS/com/ejie/ws/Q99xGetMailBoxWS.jws"
>>
>> wsdlResource="http://www.integracion.jakina.ejiedes.net:8080/q99xServicesSimulationWS/com/ejie/ws/Q99xGetMailBoxWS.jws?WSDL"
>> />
>>                                                                                                              
>> </httpsm:endpoints>
>>                                                                                                            
>> </httpsm:component>
>>                                                                                                          
>> </sm:component>
>>                                                                                                        
>> </sm:activationSpec>
>>
>>                                                                                                        
>> <sm:activationSpec componentName="consumers">
>>                                                                                                          
>> <sm:component>
>>                                                                                                            
>> <httpsm:component>
>>                                                                                                              
>> <httpsm:endpoints>
>>                                                                                                                
>> <httpsm:endpoint service="ns:getMailBox"
>>                                                                                                                               
>> endpoint="getMailBoxEP"
>> targetService="myns:routerForWL"
>>                                                                                                                               
>> role="consumer"
>>
>>                                                                                                                               
>> soapVersion="1.1"
>>                                                                                                                                                                                                 
>> targetInterfaceName="ns:getMailBox"
>>
>> locationURI="http://localhost:8192/ServiceCosnumer"
>>
>> defaultMep="http://www.w3.org/2004/08/wsdl/in-out" />
>>                                                                                                              
>> </httpsm:endpoints>
>>                                                                                                            
>> </httpsm:component>
>>                                                                                                          
>> </sm:component>
>>                                                                                                        
>> </sm:activationSpec>
>>
>>                                                                                                        
>> <!-- This is a simple trace component to log messages routed
>> here -->
>>                                                                                                        
>> <sm:activationSpec componentName="trace" service="myns:trace">
>>                                                                                                                
>> <sm:component>
>>                                                                                                                        
>> <bean xmlns="http://xbean.org/schemas/spring/1.0"
>> class="org.apache.servicemix.components.util.TraceComponent" />
>>                                                                                                                
>> </sm:component>
>>                                                                                                        
>> </sm:activationSpec>
>>
>>                         <!-- The routing services -->
>>                         <sm:activationSpec componentName="wireTrapWL">
>>                                 <sm:component>
>>                                         <eip:component>
>>                                                 <eip:endpoints>
>>                                                         <eip:wire-tap
>>
>> endpoint="wireTrapWLEndpoint" service="myns:routerForWL">
>>                                                                
>> <eip:target>
>>
>> <eip:exchange-target
>>
>> service="ns:getMailBox" />
>>
>> </eip:target>
>>
>> <eip:outListener>
>>
>> <eip:exchange-target
>>
>> service="myns:trace" />
>>
>> </eip:outListener>
>>
>> <eip:inListener>
>>
>> <eip:exchange-target
>>
>> service="myns:trace" />
>>
>> </eip:inListener>
>>                                                         </eip:wire-tap>
>>                                                 </eip:endpoints>
>>                                         </eip:component>
>>                                 </sm:component>
>>                         </sm:activationSpec>
>>                 </sm:activationSpecs>
>>         </sm:container>
>> </beans>
>>
>>
>>
>>
>> This is the error (i think):
>>
>> DEBUG - HttpSpringComponent            - Service for targetService could
>> not
>> be found
>> DEBUG - ComponentContextImpl           - Component: providers activated
>> endpoint: {http://www.openuri.org/}getMailBox : getMailBoxSEP
>> DEBUG - HttpSpringComponent            - Querying service description for
>> ServiceEndpoint[service={http://www.openuri.org/}getMailBox,endpoint=getMailBoxSEP]
>> DEBUG - HttpSpringComponent            - No description found for
>> {http://www.openuri.org/}getMailBox:getMailBoxSEP
>> DEBUG - EndpointRegistry               - Endpoint
>> ServiceEndpoint[service={http://www.openuri.org/}getMailBox,endpoint=getMailBoxSEP]
>> has no service description
>>
>>
>>
>> And this is the remote WSDL:
>> <?xml version="1.0" encoding="utf-8"?>
>> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
>> xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/"
>> xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/"
>> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
>> xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/"
>> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
>> xmlns:s="http://www.w3.org/2001/XMLSchema"
>> xmlns:s0="http://www.openuri.org/"
>> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
>> targetNamespace="http://www.openuri.org/">
>>   <types>
>>     <s:schema xmlns:s="http://www.w3.org/2001/XMLSchema"
>> elementFormDefault="qualified" targetNamespace="http://www.openuri.org/">
>>       <s:element name="getMailBox">
>>         <s:complexType>
>>           <s:sequence>
>>             <s:element name="integrationToken" type="s:string"
>> minOccurs="0"/>
>>             <s:element name="province" type="s:string" minOccurs="0"/>
>>           </s:sequence>
>>         </s:complexType>
>>       </s:element>
>>       <s:element name="getMailBoxResponse">
>>         <s:complexType>
>>           <s:sequence>
>>             <s:element name="getMailBoxResult" type="s:string"
>> minOccurs="0"/>
>>           </s:sequence>
>>         </s:complexType>
>>       </s:element>
>>       <s:element name="string" nillable="true" type="s:string"/>
>>     </s:schema>
>>
>>   </types>
>>   <message name="getMailBoxSoapIn">
>>     <part name="parameters" element="s0:getMailBox"/>
>>   </message>
>>   <message name="getMailBoxSoapOut">
>>     <part name="parameters" element="s0:getMailBoxResponse"/>
>>   </message>
>>   <message name="getMailBoxHttpGetIn">
>>     <part name="integrationToken" type="s:string"/>
>>     <part name="province" type="s:string"/>
>>   </message>
>>   <message name="getMailBoxHttpGetOut">
>>     <part name="Body" element="s0:string"/>
>>   </message>
>>   <message name="getMailBoxHttpPostIn">
>>     <part name="integrationToken" type="s:string"/>
>>     <part name="province" type="s:string"/>
>>   </message>
>>   <message name="getMailBoxHttpPostOut">
>>     <part name="Body" element="s0:string"/>
>>   </message>
>>   <portType name="Q99xGetMailBoxWSSoap">
>>     <operation name="getMailBox">
>>       <input message="s0:getMailBoxSoapIn"/>
>>       <output message="s0:getMailBoxSoapOut"/>
>>     </operation>
>>   </portType>
>>   <portType name="Q99xGetMailBoxWSHttpGet">
>>     <operation name="getMailBox">
>>       <input message="s0:getMailBoxHttpGetIn"/>
>>       <output message="s0:getMailBoxHttpGetOut"/>
>>     </operation>
>>   </portType>
>>   <portType name="Q99xGetMailBoxWSHttpPost">
>>     <operation name="getMailBox">
>>       <input message="s0:getMailBoxHttpPostIn"/>
>>       <output message="s0:getMailBoxHttpPostOut"/>
>>     </operation>
>>   </portType>
>>   <binding name="Q99xGetMailBoxWSSoap" type="s0:Q99xGetMailBoxWSSoap">
>>     <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
>> style="document"/>
>>     <operation name="getMailBox">
>>       <soap:operation soapAction="http://www.openuri.org/getMailBox"
>> style="document"/>
>>       <input>
>>         <soap:body use="literal"/>
>>       </input>
>>       <output>
>>         <soap:body use="literal"/>
>>       </output>
>>     </operation>
>>   </binding>
>>   <binding name="Q99xGetMailBoxWSHttpGet"
>> type="s0:Q99xGetMailBoxWSHttpGet">
>>     <http:binding verb="GET"/>
>>     <operation name="getMailBox">
>>       <http:operation location="/getMailBox"/>
>>       <input>
>>         <http:urlEncoded/>
>>       </input>
>>       <output>
>>         <mime:mimeXml part="Body"/>
>>       </output>
>>     </operation>
>>   </binding>
>>   <binding name="Q99xGetMailBoxWSHttpPost"
>> type="s0:Q99xGetMailBoxWSHttpPost">
>>     <http:binding verb="POST"/>
>>     <operation name="getMailBox">
>>       <http:operation location="/getMailBox"/>
>>       <input>
>>         <mime:content type="application/x-www-form-urlencoded"/>
>>       </input>
>>       <output>
>>         <mime:mimeXml part="Body"/>
>>       </output>
>>     </operation>
>>   </binding>
>>   <service name="Q99xGetMailBoxWS">
>>     <port name="Q99xGetMailBoxWSSoap" binding="s0:Q99xGetMailBoxWSSoap">
>>       <soap:address
>> location="http://www.integracion.jakina.ejiedes.net:8080/q99xServicesSimulationWS/com/ejie/ws/Q99xGetMailBoxWS.jws"/>
>>     </port>
>>     <port name="Q99xGetMailBoxWSHttpGet"
>> binding="s0:Q99xGetMailBoxWSHttpGet">
>>       <http:address
>> location="http://www.integracion.jakina.ejiedes.net:8080/q99xServicesSimulationWS/com/ejie/ws/Q99xGetMailBoxWS.jws"/>
>>     </port>
>>     <port name="Q99xGetMailBoxWSHttpPost"
>> binding="s0:Q99xGetMailBoxWSHttpPost">
>>       <http:address
>> location="http://www.integracion.jakina.ejiedes.net:8080/q99xServicesSimulationWS/com/ejie/ws/Q99xGetMailBoxWS.jws"/>
>>     </port>
>>   </service>
>> </definitions>
>> --
>> View this message in context:
>> http://www.nabble.com/servicemix-http-and-wsdl-tf2806597s12049.html#a7830453
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> 
> 

-- 
View this message in context: http://www.nabble.com/servicemix-http-and-wsdl-tf2806597s12049.html#a7830961
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: servicemix-http and wsdl

Posted by Guillaume Nodet <gn...@gmail.com>.
You should order your activationSpec so that they are started in the
order needed to resolve the WSDLs.
The http consumer will look for the description of the wiretap, which
should look for the description of the http provider.
Try using this order: consumer, eip, provider instead of the current one
which is: provider, consumer, eip.

On 12/12/06, jriobello <j-...@ejie.es> wrote:
>
> Hello,
>
> I can't show the wsdl from a remote http provider...
>
> I have used de wire-tap for trace and servicemix-http component for expose a
> remote WebLogic WebService inside ServieMix http server. The consumer
> service run ok, but can't view the wsdl...
>
>
>
> This is my servicemix.xml:
> <beans xmlns:sm="http://servicemix.apache.org/config/1.0"
>         xmlns:eip="http://servicemix.apache.org/eip/1.0"
>         xmlns:httpsm="http://servicemix.apache.org/http/1.0"
>         xmlns:ns="http://www.openuri.org/"
>         xmlns:myns="http://myNameSpace/servicemix/1.0"
>         xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/"
> xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/"
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> xmlns:s="http://www.w3.org/2001/XMLSchema"
> xmlns:s0="http://www.openuri.org/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>
>
>
>         <!-- the JBI container -->
>         <sm:container id="jbi" useMBeanServer="true"
>                 createMBeanServer="true" dumpStats="true"
> statsInterval="10">
>                 <sm:activationSpecs>
>                                                                                                         <sm:activationSpec componentName="providers">
>                                                                                                           <sm:component>
>                                                                                                             <httpsm:component>
>                                                                                                               <httpsm:endpoints>
>                                                                                                                 <httpsm:endpoint service="ns:getMailBox"
> targetService="ns:getMailBox"
>                                                                                                                                endpoint="getMailBoxSEP"
>                                                                                                                                role="provider"
>
>                                                                                                                                soapVersion="1.1"
>
> locationURI="http://www.integracion.jakina.ejiedes.net:8080/q99xServicesSimulationWS/com/ejie/ws/Q99xGetMailBoxWS.jws"
>
> wsdlResource="http://www.integracion.jakina.ejiedes.net:8080/q99xServicesSimulationWS/com/ejie/ws/Q99xGetMailBoxWS.jws?WSDL"
> />
>                                                                                                               </httpsm:endpoints>
>                                                                                                             </httpsm:component>
>                                                                                                           </sm:component>
>                                                                                                         </sm:activationSpec>
>
>                                                                                                         <sm:activationSpec componentName="consumers">
>                                                                                                           <sm:component>
>                                                                                                             <httpsm:component>
>                                                                                                               <httpsm:endpoints>
>                                                                                                                 <httpsm:endpoint service="ns:getMailBox"
>                                                                                                                                endpoint="getMailBoxEP"
> targetService="myns:routerForWL"
>                                                                                                                                role="consumer"
>
>                                                                                                                                soapVersion="1.1"
>                                                                                                                                                                                                  targetInterfaceName="ns:getMailBox"
>
> locationURI="http://localhost:8192/ServiceCosnumer"
>
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out" />
>                                                                                                               </httpsm:endpoints>
>                                                                                                             </httpsm:component>
>                                                                                                           </sm:component>
>                                                                                                         </sm:activationSpec>
>
>                                                                                                         <!-- This is a simple trace component to log messages routed
> here -->
>                                                                                                         <sm:activationSpec componentName="trace" service="myns:trace">
>                                                                                                                 <sm:component>
>                                                                                                                         <bean xmlns="http://xbean.org/schemas/spring/1.0"
> class="org.apache.servicemix.components.util.TraceComponent" />
>                                                                                                                 </sm:component>
>                                                                                                         </sm:activationSpec>
>
>                         <!-- The routing services -->
>                         <sm:activationSpec componentName="wireTrapWL">
>                                 <sm:component>
>                                         <eip:component>
>                                                 <eip:endpoints>
>                                                         <eip:wire-tap
>
> endpoint="wireTrapWLEndpoint" service="myns:routerForWL">
>                                                                 <eip:target>
>
> <eip:exchange-target
>
> service="ns:getMailBox" />
>
> </eip:target>
>
> <eip:outListener>
>
> <eip:exchange-target
>
> service="myns:trace" />
>
> </eip:outListener>
>
> <eip:inListener>
>
> <eip:exchange-target
>
> service="myns:trace" />
>
> </eip:inListener>
>                                                         </eip:wire-tap>
>                                                 </eip:endpoints>
>                                         </eip:component>
>                                 </sm:component>
>                         </sm:activationSpec>
>                 </sm:activationSpecs>
>         </sm:container>
> </beans>
>
>
>
>
> This is the error (i think):
>
> DEBUG - HttpSpringComponent            - Service for targetService could not
> be found
> DEBUG - ComponentContextImpl           - Component: providers activated
> endpoint: {http://www.openuri.org/}getMailBox : getMailBoxSEP
> DEBUG - HttpSpringComponent            - Querying service description for
> ServiceEndpoint[service={http://www.openuri.org/}getMailBox,endpoint=getMailBoxSEP]
> DEBUG - HttpSpringComponent            - No description found for
> {http://www.openuri.org/}getMailBox:getMailBoxSEP
> DEBUG - EndpointRegistry               - Endpoint
> ServiceEndpoint[service={http://www.openuri.org/}getMailBox,endpoint=getMailBoxSEP]
> has no service description
>
>
>
> And this is the remote WSDL:
> <?xml version="1.0" encoding="utf-8"?>
> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
> xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/"
> xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/"
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> xmlns:s="http://www.w3.org/2001/XMLSchema"
> xmlns:s0="http://www.openuri.org/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> targetNamespace="http://www.openuri.org/">
>   <types>
>     <s:schema xmlns:s="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified" targetNamespace="http://www.openuri.org/">
>       <s:element name="getMailBox">
>         <s:complexType>
>           <s:sequence>
>             <s:element name="integrationToken" type="s:string"
> minOccurs="0"/>
>             <s:element name="province" type="s:string" minOccurs="0"/>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="getMailBoxResponse">
>         <s:complexType>
>           <s:sequence>
>             <s:element name="getMailBoxResult" type="s:string"
> minOccurs="0"/>
>           </s:sequence>
>         </s:complexType>
>       </s:element>
>       <s:element name="string" nillable="true" type="s:string"/>
>     </s:schema>
>
>   </types>
>   <message name="getMailBoxSoapIn">
>     <part name="parameters" element="s0:getMailBox"/>
>   </message>
>   <message name="getMailBoxSoapOut">
>     <part name="parameters" element="s0:getMailBoxResponse"/>
>   </message>
>   <message name="getMailBoxHttpGetIn">
>     <part name="integrationToken" type="s:string"/>
>     <part name="province" type="s:string"/>
>   </message>
>   <message name="getMailBoxHttpGetOut">
>     <part name="Body" element="s0:string"/>
>   </message>
>   <message name="getMailBoxHttpPostIn">
>     <part name="integrationToken" type="s:string"/>
>     <part name="province" type="s:string"/>
>   </message>
>   <message name="getMailBoxHttpPostOut">
>     <part name="Body" element="s0:string"/>
>   </message>
>   <portType name="Q99xGetMailBoxWSSoap">
>     <operation name="getMailBox">
>       <input message="s0:getMailBoxSoapIn"/>
>       <output message="s0:getMailBoxSoapOut"/>
>     </operation>
>   </portType>
>   <portType name="Q99xGetMailBoxWSHttpGet">
>     <operation name="getMailBox">
>       <input message="s0:getMailBoxHttpGetIn"/>
>       <output message="s0:getMailBoxHttpGetOut"/>
>     </operation>
>   </portType>
>   <portType name="Q99xGetMailBoxWSHttpPost">
>     <operation name="getMailBox">
>       <input message="s0:getMailBoxHttpPostIn"/>
>       <output message="s0:getMailBoxHttpPostOut"/>
>     </operation>
>   </portType>
>   <binding name="Q99xGetMailBoxWSSoap" type="s0:Q99xGetMailBoxWSSoap">
>     <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
> style="document"/>
>     <operation name="getMailBox">
>       <soap:operation soapAction="http://www.openuri.org/getMailBox"
> style="document"/>
>       <input>
>         <soap:body use="literal"/>
>       </input>
>       <output>
>         <soap:body use="literal"/>
>       </output>
>     </operation>
>   </binding>
>   <binding name="Q99xGetMailBoxWSHttpGet" type="s0:Q99xGetMailBoxWSHttpGet">
>     <http:binding verb="GET"/>
>     <operation name="getMailBox">
>       <http:operation location="/getMailBox"/>
>       <input>
>         <http:urlEncoded/>
>       </input>
>       <output>
>         <mime:mimeXml part="Body"/>
>       </output>
>     </operation>
>   </binding>
>   <binding name="Q99xGetMailBoxWSHttpPost"
> type="s0:Q99xGetMailBoxWSHttpPost">
>     <http:binding verb="POST"/>
>     <operation name="getMailBox">
>       <http:operation location="/getMailBox"/>
>       <input>
>         <mime:content type="application/x-www-form-urlencoded"/>
>       </input>
>       <output>
>         <mime:mimeXml part="Body"/>
>       </output>
>     </operation>
>   </binding>
>   <service name="Q99xGetMailBoxWS">
>     <port name="Q99xGetMailBoxWSSoap" binding="s0:Q99xGetMailBoxWSSoap">
>       <soap:address
> location="http://www.integracion.jakina.ejiedes.net:8080/q99xServicesSimulationWS/com/ejie/ws/Q99xGetMailBoxWS.jws"/>
>     </port>
>     <port name="Q99xGetMailBoxWSHttpGet"
> binding="s0:Q99xGetMailBoxWSHttpGet">
>       <http:address
> location="http://www.integracion.jakina.ejiedes.net:8080/q99xServicesSimulationWS/com/ejie/ws/Q99xGetMailBoxWS.jws"/>
>     </port>
>     <port name="Q99xGetMailBoxWSHttpPost"
> binding="s0:Q99xGetMailBoxWSHttpPost">
>       <http:address
> location="http://www.integracion.jakina.ejiedes.net:8080/q99xServicesSimulationWS/com/ejie/ws/Q99xGetMailBoxWS.jws"/>
>     </port>
>   </service>
> </definitions>
> --
> View this message in context: http://www.nabble.com/servicemix-http-and-wsdl-tf2806597s12049.html#a7830453
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet