Need more information for making the webservice (Example of a echo service) and to deploy it in servicemix
Thanks, Erik rabi wrote: > > > Erik, > > If you are yet looking for an answer... > > 1. Create HTTP SU using servicemix-http-consumer-service-unit archetype > ------------ > mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling > -DarchetypeArtifactId=servicemix-http-consumer-service-unit > -DarchetypeVersion=3.1-incubating > -DgroupId=org.apache.servicemix.samples.sample-jsr181 > -DartifactId=sample-jsr181-http-su > > 2.create JSR181 SU using using servicemix-jsr181-annonated-service-unit > archetype > ---------- > mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling > -DarchetypeArtifactId=servicemix-jsr181-annonated-service-unit > -DarchetypeVersion=3.1-incubating > -DgroupId=org.apache.servicemix.samples.sample-jsr181 > -DartifactId=sample-jsr181-jsr181-su > > 3.create SA > ----- > mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling > -DarchetypeArtifactId=servicemix-service-assembly > -DarchetypeVersion=3.1-incubating > -DgroupId=org.apache.servicemix.samples.sample-jsr181 > -DartifactId=sample-jsr181-sa > > 4.Then replace the > $PROJECT_HOME\sample-jsr181-jsr181-su\src\main\java\org\apache\servicemi > x\samples\sample-jsr181\ExampleService.java with your own annotated > pojo.. > > 5. Modify the > $PROJECT_HOME\sample-jsr181-jsr181-su\src\main\resources\service.xml and > xbean.xml accordingly. > > Hope this helps.... > > > Regards, > Rabi Mishra, > http://rabisblog.blogspot.com/ > c++; /* this makes c bigger but returns the old value */ > -----Original Message----- > From: Erik Allais [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 27, 2007 3:42 PM > To: [email protected] > Subject: RE: Conception Problem about Service Consumer > > > i try to make this tuto but there no information about > > - how to make a maven archetype > - where i must store my POJO on the new archetype > > i really need help or an archive of this example to understand really > how to use it > > Thanks, > Erik > > > rabi wrote: >> >> >> OK .. Let us know your usecase and someone from the usergroup can >> help you.. >> >> Else you have a look at the wsdl-first sample that comes with >> servicemix. This is a contarct first wsdl sample using jsr181. >> >> If you have a pojo(annotated) that you want to expose as a WS using >> JSR181 and ServiceMix then you can look at >> >> http://incubator.apache.org/servicemix/servicemix-jsr181.html >> >> >> >> Regards, >> Rabi Mishra, >> http://rabisblog.blogspot.com/ >> c++; /* this makes c bigger but returns the old value */ >> -----Original Message----- >> From: Erik Allais [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, June 27, 2007 3:23 PM >> To: [email protected] >> Subject: RE: Conception Problem about Service Consumer >> >> >> to say the truth i dont know where are all the maven archetype i use >> this because i saw it in a tutorial... >> >> im lost >> >> >> rabi wrote: >>> >>> >>> Erik, >>> >>> You have taken the wsdl-first maven archetype to create your SU. >>> FYI, >> >>> this assumes that you have the wsdl(contract) with you to create >>> implementation from it using <wsgen>. >>> >>> Btw, what are you trying to do? contract first or code first.. Do you > >>> have a POJO (annotated) that you want to expose it using servicemix. >>> >>> Regards, >>> Rabi Mishra >>> http://rabisblog.blogspot.com/ >>> >>> ________________________________ >>> >>> From: Erik Allais [mailto:[EMAIL PROTECTED] >>> Sent: Tue 6/26/2007 10:41 PM >>> To: [email protected] >>> Subject: Re: Conception Problem about Service Consumer >>> >>> >>> >>> >>> i try to implement the example on this page : >>> http://incubator.apache.org/servicemix/servicemix-jsr181.html >>> >>> but i have a lot of interrogation about some step for example the >>> generation of the xbean.xml... >>> i need to reference a POJO class but where i must put this pojo on my > >>> archive >>> >>> i use maven to create the archetype like this : >>> mvn archetype:create \ >>> -DarchetypeGroupId=org.apache.servicemix.tooling \ >>> >> -DarchetypeArtifactId=servicemix-jsr181-wsdl-first-service-unit \ >>> -DarchetypeVersion=3.1-incubating \ >>> -DgroupId=com.examples.MyFirstService \ >>> -DartifactId=my-first-service-su \ >>> >>> -DremoteRepositories=http://people.apache.org/repo/m2-incubating-repo >>> s >>> itory >>> >>> i got the followind directory: >>> pom.xml >>> src >>> \ main >>> \ ressources >>> \ service.wsdl >>> \ xbean.xml >>> \ target >>> \ generated-sources >>> >>> i change the xbean.xml but where i must put my pojo class? >>> note: dont understand why i dont have my package (com.examples) >>> created >>> >>> >>> thanks for help >>> Erik, >>> >>> >>> Erik Allais wrote: >>>> >>>> hi, >>>> i must make a service provider that consume WS on an external >>>> Application >>>> (SugarCRM) >>>> >>>> the illustration: >>>> >>>> >>>> ESB<===>[WS: Service provider]------>consume WS------->[Application: >>>> SugarCRM] >>>> >>>> <------return result----------- >>>> >>>> >>>> my service provider inside servicemix must use a SOAP client to >>>> invoke the WS of my external application There is a component which >>>> can do that or i must use a SOAP client like XFire or Axis? >>>> >>>> note : All the WS i must invoke (sugarCRM) need complex type >>>> parameter >>>> >>>> Why this implementation?? >>>> Because i need to make an abstract layer over the WS of my >>>> application (bufferised some process for example) >>>> >>>> thanks, >>>> >>>> Erik >>>> >>>> >>>> >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Conception-Problem-about-Service-Consumer-tf397 >>> 7 >>> 822s12049.html#a11309858 Sent from the ServiceMix - User mailing list > >>> archive at Nabble.com. >>> >>> >>> >>> >>> >>> >>> 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 >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Conception-Problem-about-Service-Consumer-tf3977 >> 82 >> 2s12049.html#a11321489 >> Sent from the ServiceMix - User mailing list archive at Nabble.com. >> >> >> >> 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 >> >> > > -- > View this message in context: > http://www.nabble.com/Conception-Problem-about-Service-Consumer-tf397782 > 2s12049.html#a11321720 > Sent from the ServiceMix - User mailing list archive at Nabble.com. > > > > 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 > > -- View this message in context: http://www.nabble.com/Conception-Problem-about-Service-Consumer-tf3977822s12049.html#a11326557 Sent from the ServiceMix - User mailing list archive at Nabble.com.
