Hello,
        in order to have your own java component that does what u  want , 
you'll need to create a ServiceEngine.
i m not very familiar with WSDL. and all those webservice 
invocations/orchestrations etc.

Follow the HelloWorld-SE example to see how to create your java component.
Deploy it and modify your wsdl so that the request gets forwarded to your 
service.

i attach a 'for reference' xbeans xml below to give you an idea on how i 
have modifie dthe file:poller/file:sender example to redirect
to my own custom service.

This is by no mean a perfect/good solution, i attach it to give you an 
idea on how to start from existing tutorial and
modify it according to your needs

hope this help to get you started. but i reiterate that you start from 
existing servicemix tutorial and customize them as you progress your 
learning


********* this was the original example, a  poller sending files to a 
sender ******************
<beans xmlns:file="http://servicemix.apache.org/file/1.0";
       xmlns:tut="urn:servicemix:tutorial">
 
  <!-- add the sender endpoint here -->
  <file:sender service="tut:file" 
               endpoint="sender"
             directory="file:///c:/servicemix-projects/out/" >
             <property name="marshaler">
                             <bean 
class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
                </property>
 
  </file:sender>
 
 
   <file:poller service="tut:file" 
                endpoint="poller"
                file="file:///c:/servicemix-projects/in/" 
             targetService="tut:file"
     targetEndpoint="sender"/>
        <property name="marshaler">
                             <bean 
class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
                        </property> 
   </file:poller>

</beans>



And below is how i have modified it to redirect to my helloWorld service 
instead of poller


********* file-service-unit ************    here's the file:poller sends 
the request to a wiretap instead of a 
<beans xmlns:file="http://servicemix.apache.org/file/1.0";
       xmlns:tut="urn:servicemix:tutorial"
       xmlns:eip="http://servicemix.apache.org/eip/1.0";
       xmlns:test="http://www.servicemix.org/test";>
 
  <!-- add the sender endpoint here -->
  <file:sender service="tut:file" 
               endpoint="sender"
             directory="file:///c:/servicemix-projects/out/" >
             <property name="marshaler">
                             <bean 
class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
                </property>
 
  </file:sender>
 
 
   <file:poller service="tut:file" 
                endpoint="poller"
                file="file:///c:/servicemix-projects/in/" 
 
             targetService="tut:wiretap">
        <property name="marshaler">
                             <bean 
class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
                        </property> 
   </file:poller>

</beans>


*************************** wiretap service unit. the 'destination' for 
messages sent from the poller ******************

<beans xmlns:eip="http://servicemix.apache.org/eip/1.0";
       xmlns:tut="urn:servicemix:tutorial"
       xmlns:hwse="http://org.apache.servicemix.samples.helloworld.se/1.0"; 

       xmlns:xyz="http://companyxyz.com";>
 
 
  <eip:wire-tap service="tut:wiretap" endpoint="endpoint">
 
    <eip:target>
      <eip:exchange-target service="xyz:helloWorld" 
endpoint="helloWorld"/>   --> this is my custom service
    </eip:target>

    <eip:inListener>
      <eip:exchange-target service="tut:file" endpoint="sender" /> --> 
this is the original sender
    </eip:inListener>
  </eip:wire-tap>

</beans>

*************************************** and this is the serviceunit for my 
helloworld Service Endpoint **************************************
<beans xmlns:hwse="http://org.apache.servicemix.samples.helloworld.se/1.0"; 

       xmlns:xyz="http://companyxyz.com";>
  <hwse:endpoint service="xyz:helloWorld" 
                endpoint="helloWorld">
 
  </hwse>

</beans>



there's a catch though: file:poller sends inOnly messages... had to act 
accordingly on my Provider


regards
 marco













Internet
[EMAIL PROTECTED]

28/01/2008 14:45
Please respond to
[email protected]


To
users
cc

Subject
How to Modify wsdl-first example?






Hello Friends, 
I need to modify the existing wsdl-first sample example. I want that the
request should go to a java component and that java component should
reverse the input entered and display it back on the UI.
How can I embed the Java component in the existing code? 
Please help me. 
Thanks in advance. 
Regards, 
Yogesh 


Please do not print this email unless it is absolutely necessary. Spread 
environmental awareness.

The information contained in this electronic message and any attachments 
to this message are intended for the exclusive use of the addressee(s) and 
may contain proprietary, confidential or privileged information. If you 
are not the intended recipient, you should not disseminate, distribute or 
copy this e-mail. Please notify the sender immediately and destroy all 
copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient 
should check this email and any attachments for the presence of viruses. 
The company accepts no liability for any damage caused by any virus 
transmitted by this email. 

www.wipro.com



This communication is confidential, may be privileged and is meant only for the 
intended recipient.  If you are 
not the intended recipient, please notify the sender by reply and delete this 
message from your system.  Any 
unauthorised dissemination, distribution or copying hereof is prohibited.

BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation UK Limited, 
BNP Paribas UK Limited, 
BNP Paribas Commodity Futures Ltd and Investment Fund Services Limited are 
authorised and regulated by 
the Financial Services Authority.

BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private Bank are 
authorised by the CECEI 
and AMF.  BNP Paribas London Branch, BNP Paribas Securities Services London 
Branch and BNP Paribas 
Private Bank London Branch are regulated by the Financial Services Authority 
for the conduct of their UK 
business.  BNP Paribas Securities Services London Branch is also a member of 
the London Stock Exchange.

Reply via email to