• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WSDL to Java

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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/
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Manikandan Sundaramoorthy
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic