the problem is to how to build a SE act as both a consumer and a provider?thanks for you help
yinwen fu wrote: > > Hi,I'm newbie at servicemix.I am playing with servicemix 3.1-incubating. > The execution flow will be httpclient -> http consumer -> SE ->http > provider -> external web service. > Here is my properties. > SA's jbi.xml: > <?xml version="1.0" encoding="UTF-8"?> > <jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0"> > <service-assembly> > <identification> > <name>test</name> > <description>hhehehe</description> > </identification> > <service-unit> > <identification> > <name>first-http-su</name> > <description>ServiceMix is an open source ESB based on the Java > Business > Integration framework - JSR-208</description> > </identification> > <target> > <artifacts-zip>first-http-su-3.1-incubating.zip</artifacts-zip> > <component-name>servicemix-http</component-name> > </target> > </service-unit> > <service-unit> > <identification> > <name>first-hello-word</name> > <description>ServiceMix is an open source ESB based on the Java > Business > Integration framework - JSR-208</description> > </identification> > <target> > <artifacts-zip>helloword.zip</artifacts-zip> > <component-name>hello-world-se</component-name> > </target> > </service-unit> > </service-assembly> > </jbi> > > first-http-su's xbean.xml > <?xml version="1.0" encoding="UTF-8"?> > <beans xmlns:http="http://servicemix.apache.org/http/1.0" > xmlns:person="http://servicemix.apache.org/samples/wsdl-first" > > xmlns:hello="http://org.apache.servicemix.samples.helloworld.se/1.0" > xmlns:tns="http://com.wiscom.is.webservice/Test"> > > <http:endpoint service="person:PersonService" > endpoint="soap" > role="consumer" > locationURI="http://0.0.0.0:8193/PersonService/" > defaultMep="http://www.w3.org/2004/08/wsdl/in-out" > targetService="hello:fyw" > targetEndpoint="hello:fywendpoint"/> > <http:endpoint service="tns:MyProviderService" > endpoint="myProvider" > role="provider" > locationURI="http://localhost:8080/test/services/Test" > > wsdlResource="http://localhost:8080/test/services/Test?wsdl" /> > </beans> > > first-hello-word's xbean.xml > <beans > xmlns:hello="http://org.apache.servicemix.samples.helloworld.se/1.0" > xmlns:tns="http://com.wiscom.is.webservice/Test"> > <hello:endpoint service="hello:fyw" endpoint="fywendpoint"/> > </beans> > > > The flow httpclient -> http consumer -> SE works well.I need to know > how to > configure servicemix for SE invokeing the External Webservices? > > Thanks for your help, > > -- View this message in context: http://www.nabble.com/questions-about--SE-invokeing-External-Webservices-tf3635738s12049.html#a10173450 Sent from the ServiceMix - User mailing list archive at Nabble.com.
