Two Laptop Bag
The moose likes Web Services and the fly likes Web Service cleint error:urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Service cleint error:urgent" Watch "Web Service cleint error:urgent" New topic

Web Service cleint error:urgent


Joined: Jan 03, 2005
Posts: 15
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:
*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

any help will be appreciated

Meenakshi Sriram

Joined: Nov 30, 2005
Posts: 3
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
and typed the command given below.

java org.apache.axis.wsdl.Java2WSDL -o dvd.wsdl -l"http://localhost:80/axix/services/DVDSe
rvice -n "urn vdservice" -p"com" "urn vdservice"com.DVDService

when I typed this I get the follwoing error,

Exception in thread "main" java.lang.NoClassDefFoundError: javax/wsdl/extensions
at org.apache.axis.wsdl.Java2WSDL.createEmitter(
at org.apache.axis.wsdl.Java2WSDL.<init>(
at org.apache.axis.wsdl.Java2WSDL.main(
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
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?

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.
Meenakshi Sriram

Joined: Nov 30, 2005
Posts: 3
Hi Dittmer,

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.

I agree. Here's the link:
subject: Web Service cleint error:urgent
It's not a secret anymore!