could you try adding some annotations in
package org.athiva.www.hierarchyservice; > > import javax.jws.WebService; > > @WebService( targetNamespace = "http://opensource.esb.org/CoC/") > public interface MyTestServices { > @WebMethod > public String getMyName(String sayWhat); > @WebMethod > public String getMyAge(String age); > } Implementation class package org.athiva.www. > > hierarchyservice; > > import javax.jws.WebService; > > @WebService(serviceName="MyTestService", targetNamespace = "http://opensource.esb.org/CoC/", portName = "MyTestEndpoint") > public class MyTestServicesImpl implements MyTestServices { > > public String getMyName(String sayWhat) { > // TODO Auto-generated method stub > return "Shayanthan"; > } > public String getMyAge(String age) { > // TODO Auto-generated method stub > return "My age is 21"; > } > } > in your pom.xml - have <className>org.athiva.www.hierarchyservice.MyTestServices </className> If this does not work - can you tell what classes does it generate ? thanks, Edell. On Thu, May 7, 2009 at 10:37 AM, shauom <[email protected]> wrote: > > Thanks for your kind responses Edell Nolan. > > But I still have the problem.. > > > following is my interface java class > > package org.athiva.www.hierarchyservice; > > import javax.jws.WebService; > > public interface MyTestServices { > public String getMyName(String sayWhat); > public String getMyAge(String age); > } > > following is my implementation for the interface java class > > package org.athiva.www.hierarchyservice; > > import javax.jws.WebService; > > @WebService(targetNamespace = "http://opensource.esb.org/CoC/") > public class MyTestServicesImpl implements MyTestServices { > > public String getMyName(String sayWhat) { > // TODO Auto-generated method stub > return "Shayanthan"; > } > public String getMyAge(String age) { > // TODO Auto-generated method stub > return "My age is 21"; > } > } > > Here I used the @WebService(targetNamespace = > "http://opensource.esb.org/CoC/") annotation in the implementation class. > > > Now have a loo at my pop xml file. - for my safe I'll upload the > http://www.nabble.com/file/p23423280/pom.xml pom.xml file here > > > <plugin> > <groupId>org.apache.cxf</groupId> > <artifactId>cxf-codegen-plugin</artifactId> > <version>2.0.9</version> > <dependencies> > <dependency> > > <groupId>org.apache.cxf</groupId> > > <artifactId>cxf-rt-frontend-jaxws > </artifactId> > <version>2.0.9</version> > </dependency> > </dependencies> > <executions> > <execution> > <id>generate-wsdl</id> > > <phase>process-classes</phase> > <configuration> > > > > <sourceRoot>${basedir}/target/jaxws > </sourceRoot> > <outputFile> > > ${basedir}/target/generated-sources/jaxws/MyTestServicesImpl.wsdl > </outputFile> > > > <className>org.athiva.www.hierarchyservice.MyTestServicesImpl > </className> > > <verbose>true</verbose> > > <classdir>${basedir}/target/classes</classdir> > > <targetNameSpace> > http://opensource.esb.org/CoC/ > </targetNameSpace> > > > </configuration> > <goals> > > <goal>java2wsdl</goal> > </goals> > </execution> > </executions> > </plugin> > > > > > As you prefer I changed my codes. It generate some classes but that are not > taken into the .zip archive file which is my service engine. So when I > deploy it in the serviceMix it send and runtime exception..:( > > > What can I do next.. help me in this issue.. thanks > > > > shauom > > > > > > > > > > > > > Edell Nolan wrote: > > > > Hi, > > > > Have you specified any annotations on your org.example.MyService > interface > > ? > > > > Also try this > > > > <executions> > > <execution> > > <id>generate-wsdl</id> > > <phase>process-classes</phase> > > <configuration> > > <className>org.example.MyService</className> > > <outputFile> > > > > ${project.build.directory}/generated-sources/jaxws/MyService.wsdl > > </outputFile> > > <verbose>true</verbose> > > <argline>-classdir > > ${project.build.directory}/classes</argline> > > </configuration> > > <goals> > > <goal>java2wsdl</goal> > > </goals> > > </execution> > > </executions> > > > > You are also on an old version of CXF - is it possible you can upgrade to > > a > > later version ? > > > > Edell. > > > > > > On Wed, May 6, 2009 at 1:17 PM, shauom <[email protected]> > wrote: > > > >> > >> Hi, every one, > >> I'm new to ServiceMix. I tried to develop a bottom up WS using > >> servicemix-cxf-bc and servicemix-cxf-se through maven builder. I tried > >> the > >> top down approach, its working. But for the bottom up, i couldn't find > a > >> good understandable examples. can u anyone help me to do so. I found > some > >> maven ( Java2WSDL ) CXF scripts to generate the WDSL file from the java > >> implantation. but its generate the WSDL file but not generate the > >> necessery > >> stub jave files. can anyone help me to write a good WS which using > >> servicemix-cxf-se. > >> > >> > >> I used this sources - > >> http://cwiki.apache.org/CXF20DOC/maven-integration-and-plugin.html > >> > >> Java2WSDL > >> > >> <plugin> > >> <groupId>org.apache.cxf</groupId> > >> <artifactId>cxf-codegen-plugin</artifactId> > >> <version>2.0.9</version> > >> <dependencies> > >> <dependency> > >> <groupId>org.apache.cxf</groupId> > >> <artifactId>cxf-rt-frontend-jaxws</artifactId> > >> <version>2.0.9</version> > >> </dependency> > >> </dependencies> > >> <executions> > >> <execution> > >> <id>generate-wsdl</id> > >> <phase>process-classes</phase> > >> <configuration> > >> <className>org.example.MyService</className> > >> </configuration> > >> <goals> > >> <goal>java2wsdl</goal> > >> </goals> > >> </execution> > >> </executions> > >> </plugin> > >> > >> > >> This is the script : http://www.nabble.com/file/p23405483/maven.txt > >> maven.txt > >> > >> > >> I need this urgently. so please help me.. :) > >> > >> > >> Thanks in advance > >> -- > >> View this message in context: > >> > http://www.nabble.com/Need-help-to-create-a-Bottomup-WS-using-CXF-tp23405483p23405483.html > >> Sent from the ServiceMix - User mailing list archive at Nabble.com. > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/Need-help-to-create-a-Bottomup-WS-using-CXF-tp23405483p23423280.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
