Link to home
Start Free TrialLog in
Avatar of softbless
softbless

asked on

WSDL for Java Client

Hi Guys,

I'm newbie in web service, so please kindly explain as complete as possible ;)

I installed Alfresco (Java based), that had already provided some WSDL files.

We need to make 1 new java application that consume web service from Alfresco (Java Client).

Can we directly use the wsdl files? Because when i google, I read that many people said they use wsdl2java.

My question : Can i just use the wsdl files from Alfresco without using wsdl2java?
Avatar of Mick Barry
Mick Barry
Flag of Australia image

yes you can just use the existing wsdl
you can also use wsdl2java to generate the stubs
http://onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2
Avatar of softbless
softbless

ASKER

Hi Objects,

What is "stubs"? can u explain? english is not my first language.

And if we could use the existing WSDL, why people bother to use wsdl2java to gnerete the stubs?
The stubs are just java code
Writing the stubs yourself is tedious and error prone, wsdl2java simplifies the process

http://gdp.globus.org/gt3-tutorial/multiplehtml/ch01s02.html
So basically wsdl2java is assisting programmer to generate stubs(java code) to consume the wsdl. Is it like that?

So whether using wsdl2java or not, in the end the java code produced is basically will be the same. Is it correct?

Btw, thanks for the link. It's give simple explanation, that's why I could have more understanding about it. I've googled a lot before, but still cannot help me understanding web service. But your link works.
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks