Well, it's up to your own component to create and send JBI exchanges then
...
You can configure the target as properties on your endpoints and use them
when sending exchanges.

On 4/25/07, yinwen fu <[EMAIL PROTECTED]> wrote:



Thanks for your reply.But I assume the  flow is httpclient -> http
consumer
-> the hello SE  ->http
> provider -> external web service.

gnodet wrote:
>
> Just change the targetService of your consumer:
>   targetService="tns:MyProviderService" targetEndpoint="myProvider"
> and the JBI exchange will be sent to the http provider instead of
> the hello SE.
>
> On 4/24/07, yinwen fu <[EMAIL PROTECTED]> 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#a10152567
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Principal Engineer, IONA
> Blog: http://gnodet.blogspot.com/
>
>

--
View this message in context:
http://www.nabble.com/questions-about--SE-invokeing-External-Webservices-tf3635738s12049.html#a10177038
Sent from the ServiceMix - User mailing list archive at Nabble.com.




--
Cheers,
Guillaume Nodet
------------------------
Principal Engineer, IONA
Blog: http://gnodet.blogspot.com/

Reply via email to