• Post Reply Bookmark Topic Watch Topic
  • New Topic

Facing Problem in Web Service Client - Server.NoService

Baskaran Ragav
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am getting this error when i run my web service client

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

The AXIS engine could not find a target service to invoke! targetService is null
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:379)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
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 com.samples.ws.intf.SampleWebServiceSoapBindingStub.getName(Unknown Source)
at com.samples.ws.client.WebServiceClient.main(WebServiceClient.java:26)
Exception in thread "main"

Though the web service deployment looks successful.
When i hit the page http://localhost:8080/SimpleWebServiceWAR/services/SampleWebService
i am getting Hi there, this is an AXIS service! message.

This is my client code
public static void main(String[] a) throws Exception
WebServiceIntfService service = new WebServiceIntfServiceLocator();
WebServiceIntf intf = service.getSampleWebService(new URL("http://localhost:8080/SimpleWebServiceWAR/services/SampleWebService"));
String response = intf.getName(10); // web service method

Can any one high light me where its going wrong.
Bear Bibeault
Author and ninkuma
Posts: 65530
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Raghven k b",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

JavaRanch Sheriff
Ugender Rekulampally
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Did you deploy your service using deploy.wsdd script on to the server you are using?

and by the way, which application server are you using?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!