You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Carl23 <c....@oclcpica.org> on 2007/01/25 11:11:22 UTC

Help making service unit talk to web service

Hi,

I'm having trouble making a simple service unit talk to a web service via a
http component. Hoping someone could tell be what I've done wrong here:

Here's the xbean.xml

<beans xmlns:http="http://servicemix.apache.org/http/1.0"
       xmlns:multimatch="urn:Foo">

  <http:endpoint service="MMS"
                 endpoint="MMS_IFPort"
                 role="provider" 
		 locationURI="http://locahost:9090/milos-MMS/MMS"
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
                 soap="true" />             

</beans>

here's the servicemix.xml for the client component:

<beans xmlns:sm="http://servicemix.apache.org/config/1.0"
       xmlns:client="http://eu.multimatch.client"
       xmlns:multimatch="http://eu.multimatch">

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

  <sm:serviceunit id="jbi">
  <sm:activationSpecs>	  
      <sm:activationSpec componentName="milosclient"
service="client:milosclient" destinationService="multimatch:milos-mms">
      	<sm:component><bean class="eu.multimatch.milos.client.MilosClient"
/></sm:component>
      </sm:activationSpec>

    <!-- Put lw components here -->
    <!--   <sm:activationSpec>


       <sm:component>
         <bean
class="org.apache.servicemix.components.cache.CacheComponent">
          <property name="cache">
             <bean class="org.apache.servicemix.components.cache.LRUCache"
/>
           </property>
         </bean>
       </sm:component>
     </sm:activationSpec> -->
    </sm:activationSpecs>
  
  </sm:serviceunit>

</beans>

and here's the wsdl of the service I'm connecting to:
<?xml version="1.0" encoding="UTF-8"?>

<definitions name="MMS" targetNamespace="urn:Foo" xmlns:tns="urn:Foo"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:ns2="http://java.sun.com/jax-rpc-ri/internal"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
  <types>
    <schema targetNamespace="http://java.sun.com/jax-rpc-ri/internal"
xmlns:tns="http://java.sun.com/jax-rpc-ri/internal"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://www.w3.org/2001/XMLSchema">
      <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
      <simpleType name="datahandler">
        <restriction base="base64Binary"/></simpleType></schema></types>
  <message name="MMS_IF_delete">
    <part name="String_1" type="xsd:string"/></message>
  <message name="MMS_IF_deleteResponse"/>
  <message name="MMS_IF_delete2">
    <part name="String_1" type="xsd:string"/>
    <part name="String_2" type="xsd:string"/></message>
  <message name="MMS_IF_delete2Response"/>
  <message name="MMS_IF_deleteKeyframe">
    <part name="String_1" type="xsd:string"/>
    <part name="String_2" type="xsd:string"/></message>
  <message name="MMS_IF_deleteKeyframeResponse"/>
  <message name="MMS_IF_getKeyframeUrl">
    <part name="String_1" type="xsd:string"/>
    <part name="String_2" type="xsd:string"/></message>
  <message name="MMS_IF_getKeyframeUrlResponse">
    <part name="result" type="xsd:string"/></message>
  <message name="MMS_IF_getPath">
    <part name="String_1" type="xsd:string"/></message>
  <message name="MMS_IF_getPathResponse">
    <part name="result" type="xsd:string"/></message>
  <message name="MMS_IF_getUploadFolder"/>
  <message name="MMS_IF_getUploadFolderResponse">
    <part name="result" type="xsd:string"/></message>
  <message name="MMS_IF_getUrl">
    <part name="String_1" type="xsd:string"/></message>
  <message name="MMS_IF_getUrlResponse">
    <part name="result" type="xsd:string"/></message>
  <message name="MMS_IF_getUrl2">
    <part name="String_1" type="xsd:string"/>
    <part name="String_2" type="xsd:string"/></message>
  <message name="MMS_IF_getUrl2Response">
    <part name="result" type="xsd:string"/></message>
  <message name="MMS_IF_insert">
    <part name="DataHandler_1" type="ns2:datahandler"/>
    <part name="String_2" type="xsd:string"/></message>
  <message name="MMS_IF_insertResponse"/>
  <message name="MMS_IF_insert2">
    <part name="DataHandler_1" type="ns2:datahandler"/>
    <part name="String_2" type="xsd:string"/>
    <part name="String_3" type="xsd:string"/></message>
  <message name="MMS_IF_insert2Response"/>
  <message name="MMS_IF_insertKeyframe">
    <part name="DataHandler_1" type="ns2:datahandler"/>
    <part name="String_2" type="xsd:string"/>
    <part name="String_3" type="xsd:string"/></message>
  <message name="MMS_IF_insertKeyframeResponse"/>
  <message name="MMS_IF_insertObjectFile">
    <part name="String_1" type="xsd:string"/>
    <part name="String_2" type="xsd:string"/></message>
  <message name="MMS_IF_insertObjectFileResponse"/>
  <message name="MMS_IF_invalidateSession"/>
  <message name="MMS_IF_invalidateSessionResponse"/>
  <message name="MMS_IF_update">
    <part name="DataHandler_1" type="ns2:datahandler"/>
    <part name="String_2" type="xsd:string"/></message>
  <message name="MMS_IF_updateResponse"/>
  <message name="MMS_IF_update2">
    <part name="DataHandler_1" type="ns2:datahandler"/>
    <part name="String_2" type="xsd:string"/>
    <part name="String_3" type="xsd:string"/></message>
  <message name="MMS_IF_update2Response"/>
  <portType name="MMS_IF">
    <operation name="delete" parameterOrder="String_1">
      <input message="tns:MMS_IF_delete"/>
      <output message="tns:MMS_IF_deleteResponse"/></operation>
    <operation name="delete2" parameterOrder="String_1 String_2">
      <input message="tns:MMS_IF_delete2"/>
      <output message="tns:MMS_IF_delete2Response"/></operation>
    <operation name="deleteKeyframe" parameterOrder="String_1 String_2">
      <input message="tns:MMS_IF_deleteKeyframe"/>
      <output message="tns:MMS_IF_deleteKeyframeResponse"/></operation>
    <operation name="getKeyframeUrl" parameterOrder="String_1 String_2">
      <input message="tns:MMS_IF_getKeyframeUrl"/>
      <output message="tns:MMS_IF_getKeyframeUrlResponse"/></operation>
    <operation name="getPath" parameterOrder="String_1">
      <input message="tns:MMS_IF_getPath"/>
      <output message="tns:MMS_IF_getPathResponse"/></operation>
    <operation name="getUploadFolder">
      <input message="tns:MMS_IF_getUploadFolder"/>
      <output message="tns:MMS_IF_getUploadFolderResponse"/></operation>
    <operation name="getUrl" parameterOrder="String_1">
      <input message="tns:MMS_IF_getUrl"/>
      <output message="tns:MMS_IF_getUrlResponse"/></operation>
    <operation name="getUrl2" parameterOrder="String_1 String_2">
      <input message="tns:MMS_IF_getUrl2"/>
      <output message="tns:MMS_IF_getUrl2Response"/></operation>
    <operation name="insert" parameterOrder="DataHandler_1 String_2">
      <input message="tns:MMS_IF_insert"/>
      <output message="tns:MMS_IF_insertResponse"/></operation>
    <operation name="insert2" parameterOrder="DataHandler_1 String_2
String_3">
      <input message="tns:MMS_IF_insert2"/>
      <output message="tns:MMS_IF_insert2Response"/></operation>
    <operation name="insertKeyframe" parameterOrder="DataHandler_1 String_2
String_3">
      <input message="tns:MMS_IF_insertKeyframe"/>
      <output message="tns:MMS_IF_insertKeyframeResponse"/></operation>
    <operation name="insertObjectFile" parameterOrder="String_1 String_2">
      <input message="tns:MMS_IF_insertObjectFile"/>
      <output message="tns:MMS_IF_insertObjectFileResponse"/></operation>
    <operation name="invalidateSession">
      <input message="tns:MMS_IF_invalidateSession"/>
      <output message="tns:MMS_IF_invalidateSessionResponse"/></operation>
    <operation name="update" parameterOrder="DataHandler_1 String_2">
      <input message="tns:MMS_IF_update"/>
      <output message="tns:MMS_IF_updateResponse"/></operation>
    <operation name="update2" parameterOrder="DataHandler_1 String_2
String_3">
      <input message="tns:MMS_IF_update2"/>
      <output message="tns:MMS_IF_update2Response"/></operation></portType>
  <binding name="MMS_IFBinding" type="tns:MMS_IF">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="rpc"/>
    <operation name="delete">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></output></operation>
    <operation name="delete2">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></output></operation>
    <operation name="deleteKeyframe">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></output></operation>
    <operation name="getKeyframeUrl">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></output></operation>
    <operation name="getPath">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></output></operation>
    <operation name="getUploadFolder">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></output></operation>
    <operation name="getUrl">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></output></operation>
    <operation name="getUrl2">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></output></operation>
    <operation name="insert">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></output></operation>
    <operation name="insert2">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></output></operation>
    <operation name="insertKeyframe">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></output></operation>
    <operation name="insertObjectFile">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></output></operation>
    <operation name="invalidateSession">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></output></operation>
    <operation name="update">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></output></operation>
    <operation name="update2">
      <soap:operation soapAction=""/>
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
use="encoded" namespace="urn:Foo"/></output></operation></binding>
  <service name="MMS">
    <port name="MMS_IFPort" binding="tns:MMS_IFBinding">
      <soap:address
location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>


any help appreciated!!
-- 
View this message in context: http://www.nabble.com/Help-making-service-unit-talk-to-web-service-tf3097276s12049.html#a8599298
Sent from the ServiceMix - User mailing list archive at Nabble.com.