• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Calling a web service in Axis2

 
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am new to web services. I am trying to make my first web service to work.
I am using Axis2. This example i am trying is from the book 'Developing web services with apache axis2' by Kent Ka Iok Tong. (http://www.agileskills2.org/DWSAA/index.html)

I downloaded the source code and trying to run 'SimpleService' example.
I deployed this service to axis and when i try to run the client it throws:

org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation not found is http://localhost:8080/axis2/services/SimpleService and the WSA Action = http://ttdev.com/ss/NewOperation

I don't know what exactly the problem is. but my wild guess is it has some thing to do with WSDL file.

Here is the WSDL file



Could anyone please clarify me what exactly <soap peration soapAction="http://ttdev.com/ss/NewOperation"/> does? what is NewOperation?

Thanks,
Srikanth.

[ May 29, 2008: Message edited by: Srikanth Reddy ]
[ June 10, 2008: Message edited by: Ulf Dittmer ]
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Srikanth:
I don't know what exactly the problem is. but my wild guess is it has some thing to do with WSDL file.


The problem will not be in the WSDL, it will be in the deployment of the service.
The error is suggesting that there is no service available with the url http://localhost:8080/axis2/services/SimpleService and soap action http://ttdev.com/ss/NewOperation
The url is the way of identifying a service and the soap action identifies the operation, in your case the service is SimpleServiceSOAP and the operation is concat.
Are you sure the service is properly deployed on axis. What do you get when you enter the url: http://localhost:8080/axis2/services/SimpleService on your browser?
 
Ranch Hand
Posts: 98
MyEclipse IDE Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Srikanth,

Irrespective of the example , Axis has its own framework to deploy a service where you can access using your standalone or web based client.
The heart of Axis is services XML file which generates WSDL for you
at run time.
To my knowledge,the problem might be
1.your example is not deployed properly as a service into Axis i.e problem with your deployment structure
2.you might be trying to access a operation in the service with a wrong name

try this in your browser http://localhost:8080/axis2/services/SimpleService?wsdl

This should show you a web service definition language if properly deployed

cheers aruna
[ June 10, 2008: Message edited by: Ulf Dittmer ]
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are correctly deployed the service and the implementation is in your ear or war.
Then please remove the soap action and try it.

Make sure that you have specified the webservice method and end point interface details in some configuration file based on axis.

Thanks,
NAREN
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just went through similar trials trying to get this to work.

The exciting bit is when you create the wsdl and you set the endpoint to http://localhost:8080/axis2/services/

It continues on the next page so the endpoint should really be

http://localhost:8080/axis2/services/SimpleService

(pages 39 -40 of Developing web services with apache axis2).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic