It's not a secret anymore!*
The moose likes Web Services and the fly likes WSDL to Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL to Java" Watch "WSDL to Java" New topic
Author

WSDL to Java

Manikandan Sundaramoorthy
Greenhorn

Joined: Apr 09, 2009
Posts: 12
hi,

I am trying to convert the WSDL file to JAVA using Eclipse IDE. first i uploaded the WSDL file in Web Services,after building the Services i got the Class files like Soap , Skeleton , Impl and Proxy.but i don't how to place the request to web services with this class files, whether i need to write any client side code?

Thanks and Regards
Mani
Bogumil Zebek
Greenhorn

Joined: Dec 23, 2010
Posts: 3
Hi,

to generate Java classes for client you can use Java tool stored in JDK:

wsimport -verbose -d d:/out -Xnocompile http://localhost:8080/EchoService/EchoServiceBean?wsdl

after that you will have all classes (in out dir) needed to communicate with WS.

WS interface:


Client:


More information's how to start WS on GlassFish you can find at http://blog.redstream.nl/2009/02/11/create-a-ejb3-webservice-with-maven2-running-on-glassfish/


Best regards
Bogumil
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Another good tutorial is how to create web service clients with JAX-WS: http://netbeans.org/kb/docs/websvc/client.html
There are a number of web service tutorials on NetBeans.org.
A basic JAX-WS tutorial for Eclipse: http://java.dzone.com/articles/jax-ws-hello-world
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Manikandan Sundaramoorthy
Greenhorn

Joined: Apr 09, 2009
Posts: 12
hi Ivan Krizsan and Bogumil thanks for your guidance .those links are very useful for me.
now i done the web service client using net-beans it's working properly, but how can i call that url with dynamic variable using java.


Thanks and Regards
Manikandan
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
What do you mean?
but how can i call that url with dynamic variable using java.

Using generated artifacts, it is still possible to configure the address of the endpoint invoked - see the ENDPOINT_ADDRESS_PROPERTY field in the BindingProvider class that can be found in the Java SE 6 API.
Best wishes!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSDL to Java
 
Similar Threads
J2EE WS client deployment
how to convert WSDL file into java
how to generate documentation for a webservice
JBuilder : problem in creating web services from WSDL using Weblogic
WSDL Location in Axis2