on 11-21-2007 1:48 PM
Hi all,
I have a wsdl file. I want to create a web service which implement this wsdl ( not to create a web service client ).
Anyone konws how to do it?
Regards,
Hui
Hui,
Lets get this to point, you <b>CANNOT</b> create a new web service from a wsdl, reason is that a wsdl is a definition file ( like an interface toa class). However, you can <b>implement</b> a new web service from that wsdl file. For more refer to the following link,
http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL
So what i must suggest as a solution is for you to create a new EJB/Simple bean in a new project and then expose that as a web service, since you can covert the wsdl to some interfaces, you will have ti implement them and then you would be done. As simple as it sounds ( though a different way round):-)
Thanks,
Guru.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!,
Apache has provided one jar to get a command, WsdltoJava. keeping that jar on you classpath,if you will run the command, you will get .class file for Request and Response Object of your WSDL.you need to Deconpile the class file and chcek what are the input and output paramter.Now create the Java class and SQL to handle your processing.
Hope this help you
regards,
Mithileshwar Sahu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hui Wang,
If you want to create Web Service with this wsdl, i am thinking first you need to create Proxy (Client) in your EJB. Then you can create web service with this EJB.
Will it possible to access Service without creating client?
Correct me if i am wrong.
Regards,
Sridhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.