You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by "Raj@nih" <yr...@gmail.com> on 2007/10/22 15:43:40 UTC

Sending exchange form Http consumer to servicemix bean

hi,
I have three SU jsr181,http-consumer and servicemix bean
I am exposing my service using jsr181 and able to expose my service
now i want to send the  exchange to servicemix bean and get echo back using
In-Out MEP.
what additional configuration do I need to do that ?
Here are my xbean.xml files

<beans xmlns:http="http://servicemix.apache.org/http/1.0"
        xmlns:test="http://test.com/testService">


  <http:endpoint service="test:TestService" 
                 endpoint="soap"
                 role="consumer" 
                 locationURI="http://localhost:8192/test/"
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
                 soap="true" />             

</beans>


<beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
    <classpath>
  <location>.</location>
    </classpath>

    
    <jsr181:endpoint
pojoClass="org.apache.servicemix.caxchange.TestService"/>

</beans>



This is the part i am confused
<beans xmlns:bean="http://servicemix.apache.org/bean/1.0"
       xmlns:replaceMe="http://servicemix.apache.org/replaceMe">

  <bean:endpoint service="replaceMe:service" endpoint="endpoint"
bean="#myBean"/>

  <bean id="myBean" class="org.apache.servicemix.caxchange.MyBean"/>

</beans>


Please let me know what i need to add in xbean of servicemix bean and http
consumer
Regards,
Raj
-- 
View this message in context: http://www.nabble.com/Sending-exchange-form-Http-consumer-to-servicemix-bean-tf4670538s12049.html#a13342283
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Sending exchange form Http consumer to servicemix bean

Posted by sachin2008 <es...@gmail.com>.
Hi Raj,

I understood your problem.

So let me tell you one thing for sending exchange from Http consumer to
smx-bean , you need to configure set the targetService and targetEndpoint in
xbean.xml of Http su.

Try this and let me know whether it is working.

Raj@nih wrote:
> 
> hi,
> I have three SU jsr181,http-consumer and servicemix bean
> I am exposing my service using jsr181 and able to expose my service
> now i want to send the  exchange to servicemix bean and get echo back
> using In-Out MEP.
> what additional configuration do I need to do that ?
> Here are my xbean.xml files
> 
> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>         xmlns:test="http://test.com/testService">
> 
> 
>   <http:endpoint service="test:TestService" 
>                  endpoint="soap"
>                  role="consumer" 
>                  locationURI="http://localhost:8192/test/"
>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>                  soap="true" />             
> 
> </beans>
> 
> 
> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
>     <classpath>
>   <location>.</location>
>     </classpath>
> 
>     
>     <jsr181:endpoint
> pojoClass="org.apache.servicemix.caxchange.TestService"/>
> 
> </beans>
> 
> 
> 
> This is the part i am confused
> <beans xmlns:bean="http://servicemix.apache.org/bean/1.0"
>        xmlns:replaceMe="http://servicemix.apache.org/replaceMe">
> 
>   <bean:endpoint service="replaceMe:service" endpoint="endpoint"
> bean="#myBean"/>
> 
>   <bean id="myBean" class="org.apache.servicemix.caxchange.MyBean"/>
> 
> </beans>
> 
> 
> Please let me know what i need to add in xbean of servicemix bean and http
> consumer
> Regards,
> Raj
> 

-- 
View this message in context: http://www.nabble.com/Sending-exchange-form-Http-consumer-to-servicemix-bean-tp13342283s12049p14727272.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.