aspose file tools
The moose likes Web Services and the fly likes The AXIS engine could not find a target service to invoke Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "The AXIS engine could not find a target service to invoke" Watch "The AXIS engine could not find a target service to invoke" New topic
Author

The AXIS engine could not find a target service to invoke

vijay saraf
Ranch Hand

Joined: Jan 08, 2005
Posts: 141
Hi All,

I stucked with Axis 1.3 (please don't ask why 1.3...) and JDK 1.5 with webshpere.
i have very basic service 'Calculator' with two operations 'add' and 'subtract'
here is my server-config.wsdd file (placed under WEB-INF directory).



and here is my wsdl file.



when i try to invoke the service with simple client i am getting following error

AxisFault
faultCode: {http://xml.apache.org/axis/}Server.NoService
faultSubcode:
faultString: The AXIS engine could not find a target service to invoke! targetService is null
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:My_Host_Name

I am failed here to figure-out the problem.
for info,
i am getting expected results when i follow the urls
http://localhost:9080/TestService/services/Calculator
as
Hi there, this is an AXIS service!
Perhaps there will be a form for invoking the service here...

but when go to http://localhost:9080/TestService/servlet/AxisServlet and click the wsdl link (in actual it is http://localhost:9080/TestService/services/Calculator?wsdl) i am getting error messgae as
AXIS error
Could not generate WSDL!
There is no SOAP service at this location

Here is my web.xml file.


Could anyone please help me to know identify the problem.


Thanks
Vijay Saraf.
vijay saraf
Ranch Hand

Joined: Jan 08, 2005
Posts: 141
Ahh....

I got the problem...
My URLMapper was missing...
here is my new server-config.wsdd file



Well...........thanks all.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: The AXIS engine could not find a target service to invoke
 
Similar Threads
wstools unable to parse WSDL from Axis1.4
conditional axis web service - sample nowhere
Empty target namespace with axis1.2
de/serializers for ArrayLists
Problem with mapping Array String into HashMap in Axis