I have deployed a webservice in axis and now i want to call the web service with a java application. Below are the steps i following: 1) From the wsdl2java i got the files: *service *servicelocator *soapbindingimpl *soapbindingstub *one interface 2) from the wsdl2wsdd i got a wsdd file.
Now i wrote a client application which calls this webservice.
My question is : The java files and the wsdd file generated by axis, do i have to make any changes in this files. I am new to web service so can anyone explain in detail
when i try to call the webservice through a java client application i get some error of org.dom and saxbuilder
Hi, I am stuck in the first step itself. Sorry, I could not reply to your solution, but I hope you can give me solution for the below question. I developed a webservice and deployed it using admin client and deploy.wsdd file.It got deployed fine and then I tested it, thorugh a webclient and it worked fine.(i used call and service classes of org.apache.axis.client to call the webservice) Now I am trying to use the java2wsdl of axis to create a wsdl file and then further wsdl2java to create stub so that I can create a real simple webclient. I wen to directory axis-home/web-inf/classes/com and typed the command given below.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/wsdl/extensions /ExtensibilityElement at org.apache.axis.wsdl.Java2WSDL.createEmitter(Java2WSDL.java:279) at org.apache.axis.wsdl.Java2WSDL.<init>(Java2WSDL.java:270) at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:680 Thanks Meena
Yash, it would help if you posted the full error message; from the snippet you mention it's impossible to tell what's happening. Normally, you don't need to change any of the files generated. You will need a client app, though. Have you deployed the WS using the WSDD file, and can you see it listed in the Axis web app?
Meenakshi, you need to put all the jar files shipped with Axis in your classpath (you seem not to have any classpath at all). Also, you should not be in the "com" directory, but one level higher up, and then you still need to include "." in your classpath.
Joined: Nov 30, 2005
Thanks for the reply, now I figured out the falut in my classpath (i had mispelled one of the jar files, anyway I have used . in my classpath)THanks for yout time, but now I get a different error. error is - The <class-of-portType> was not specified. I am not able to figure out what it means. Tried searching in google but no clues. Can you tell me what this error is about.