Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Re: Problem: The AXIS engine could not find a target service to invoke!
Re: Problem: The AXIS engine could not find a target service to invoke! [message #492728] Wed, 21 October 2009 14:23
Mark Hutchinson is currently offline Mark Hutchinson
Messages: 53
Registered: July 2009
Member
Hi Nikita,

One way I know that you can get this exception is if your client is
using an endpoint address that is not quite right. The endpoint address
should look something like this:

http://localhost:8080/MyWebApp/services/MyService

A way to check if a URL is a valid axis web service endpoint is to enter
the address into a web browser. You'll see a message like "Hi There,
this is an Axis Service" if you have the endpoint correct and the
service is up and running.


If you haven't already seen them, we have tutorials on using our web
services on the wiki at:
http://wiki.eclipse.org/Creating_a_Bottom-Up_Java_Web_Servic e
http://wiki.eclipse.org/Creating_a_Top-Down_Java_Web_Service _Skeleton_from_a_WSDL_Document
http://wiki.eclipse.org/Creating_a_Java_Web_Service_Client


nitika.jain09@gmail.com wrote:
> hi
>
> I am new to web services. I just started with making a simple web
> service which return a string. I using using eclipse galileo (Eclipse
> Java EE IDE for Web Developers.) but when i am tring to invoke my
> webserive i am getting this error:
>
> faultString: The AXIS engine could not find a target service to invoke!
>
> I am using Tomcat 6 and axis 1.4. i am using eclipse wizards to make web
> service and client. the comple error is as follows:
>
> log4j:WARN No appenders could be found for logger
> (org.apache.axis.i18n.ProjectResourceBundle).
> log4j:WARN Please initialize the log4j system properly.
> Exception in thread "main" AxisFault
> faultCode: {http://xml.apache.org/axis/}Server.NoService
> faultSubcode:
> faultString: The AXIS engine could not find a target service to invoke!
> targetService is FileA
> faultActor:
> faultNode:
> faultDetail:
> {http://xml.apache.org/axis/}hostname:Nitika-PC
>
> The AXIS engine could not find a target service to invoke! targetService
> is FileA
> at org.apache.axis.message.SOAPFaultBuilder.createFau
> lt(SOAPFaultBuilder.java:222)
> at org.apache.axis.message.SOAPFaultBuilder.endElemen
> t(SOAPFaultBuilder.java:129)
> at org.apache.axis.encoding.DeserializationContext.en
> dElement(DeserializationContext.java:1087)
> at com.sun.org.apache.xerces.internal.parsers.Abstrac
> tSAXParser.endElement(AbstractSAXParser.java:601)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumen
> tFragmentScannerImpl.scanEndElement(XMLDocumentFra
> gmentScannerImpl.java:1774)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumen
> tFragmentScannerImpl$FragmentContentDriver.next(XM
> LDocumentFragmentScannerImpl.java:2930)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumen
> tScannerImpl.next(XMLDocumentScannerImpl.java:648)
> at com.sun.org.apache.xerces.internal.impl.XMLNSDocum
> entScannerImpl.next(XMLNSDocumentScannerImpl.java: 140)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumen
> tFragmentScannerImpl.scanDocument(XMLDocumentFragm entScannerImpl.java:510)
> at com.sun.org.apache.xerces.internal.parsers.XML11Co
> nfiguration.parse(XML11Configuration.java:807)
> at com.sun.org.apache.xerces.internal.parsers.XML11Co
> nfiguration.parse(XML11Configuration.java:737)
> at com.sun.org.apache.xerces.internal.parsers.XMLPars
> er.parse(XMLParser.java:107)
> at com.sun.org.apache.xerces.internal.parsers.Abstrac
> tSAXParser.parse(AbstractSAXParser.java:1205)
> at com.sun.org.apache.xerces.internal.jaxp.SAXParserI
> mpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:3 95)
> at org.apache.axis.encoding.DeserializationContext.pa
> rse(DeserializationContext.java:227)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPar t.java:696)
> at org.apache.axis.Message.getSOAPEnvelope(Message.ja va:435)
> at org.apache.axis.transport.http.HTTPSender.readFrom
> Socket(HTTPSender.java:796)
> at org.apache.axis.transport.http.HTTPSender.invoke(H TTPSender.java:144)
> at org.apache.axis.strategies.InvocationStrategy.visi
> t(InvocationStrategy.java:32)
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain .java:118)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.jav a:83)
> at org.apache.axis.client.AxisClient.invoke(AxisClien t.java:165)
> at org.apache.axis.client.Call.invokeEngine(Call.java :2784)
> at org.apache.axis.client.Call.invoke(Call.java:2767)
> at org.apache.axis.client.Call.invoke(Call.java:2443)
> at org.apache.axis.client.Call.invoke(Call.java:2366)
> at org.apache.axis.client.Call.invoke(Call.java:1812)
> at ws.A.FileASoapBindingStub.sayWebserciveA(FileASoap BindingStub.java:104)
> at ws.A.RunClientA.main(RunClientA.java:12)
>
> In case i am not precise in telling my problem, pls let me know. Actully
> this is my first time of asking problem in a forum. :?
> Thanks in advance.
Previous Topic:How to override values on the Scenario Defaults page in "Web Services" section?
Next Topic:Documentation on Extending Web Page Editor
Goto Forum:
  


Current Time: Thu Oct 23 03:20:42 GMT 2014

Powered by FUDForum. Page generated in 0.01813 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software