• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Accessing web service

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guy's please tell me how to invoke(or access) webservices
 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can access any web service using WSDL file.

approach is like-

1) First identify WSDL file.
2) Create stubs of WS using WSDLToJava command.
3) Identify authentication if required, and call same in your call from client.
 
Anbarasu Selvaraj
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank You Vikram.

But, the Stub Creation is giving error. (For WSDL File i am Giving URL)
 
vikram Kesav
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you paste error message and let me know the WSDL link if it is not password protected.
 
Anbarasu Selvaraj
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Error Message is,
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java

all jar files are included in classpath
 
vikram Kesav
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just make sure....Do you have any of the below jar file in your classpath.

What IDE you are using? try to set axis jars classpath on command prompt and run WSDL2Java command from there.


Information on class org.apache.axis.wsdl.WSDL2Java:

Containing JAR files:
axis.jar
axis-1.0.jar
axis-1.1.jar
axis-1.2.1.jar
axis-1.2.jar
axis-1.3.jar
axis-1.4.jar
axis-1.4.jar
axis-1.1-beta.jar
axis-1.2-RC1.jar
axis-1.2-RC2.jar
axis-1.2-RC3.jar
axis-1.2-alpha-1.jar
axis-1.2-beta-2.jar
axis-1.2-beta-3.jar

 
Anbarasu Selvaraj
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank You Vikram. Eclipse it's working.( still, command line it's not working.)
 
So you made a portal in time and started grabbing people. This tiny ad thinks that's rude:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic