Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Web Services
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Eclipse Collections Categorically: Level up your programming game
this week in the
Open Source Projects
forum!
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
Tim Cooke
paul wheaton
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Web Services
faultString: java.io.FileNotFoundException
Vaishali Paramane
Ranch Hand
Posts: 107
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
I am trying to develop simple hello world first program but getting error
AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.io.FileNotFoundException: axis/HelloWorld.jws faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.io.FileNotFoundException: axis/HelloWorld.jws at org.apache.axis.handlers.JWSHandler.setupService(JWSHandler.java:103) at org.apache.axis.handlers.JWSHandler.invoke(JWSHandler.java:72)
I am using axis-1_4 and
java
1.7
Soap
server is working .
public class HelloWorld { /** * Returns "Hello <sender>!". */ public String sayHello(String sender) { return "Hello " + sender + "!"; } }
// The Axis package is used to generate and handle the SOAP call import org.apache.axis.client.Call; import org.apache.axis.client.Service; import org.apache.axis.encoding.XMLType; // The rpc package is used to create the RPC call import javax.xml.namespace.QName; import javax.xml.rpc.NamespaceConstants; // The java.net package gives us a URL class import java.net.URL; public class HelloWorldClient { /** * Test main. */ public static void main(String args[]) { System.out.println("HelloWorld.main: Entering..."); try { String url = "http://Vaishali:8080/axis/HelloWorld.jws"; String sender = "Reader"; Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress(new URL(url)); call.setSOAPActionURI("sayHello"); call.setEncodingStyle(NamespaceConstants.NSURI_SOAP_ENCODING ); call.setOperationName(new QName("urn:helloworld", "SayHello")); //call.setReturnType(XMLType.XSD_STRING); String hello = (String)call.invoke(new Object[] { sender } ); System.out.println("The Web Service returned: " + hello); System.out.println("HelloWorld.main: All done!"); } catch(Exception exception) { exception.printStackTrace(); System.err.println("Caught an exception: " + exception); } } }
all jar files in path and HelloWorld.jws is in C:\java\axis-1_4\webapps\axis\WEB-INF\classes
Can anyone help me?
Thanks
Vaishali
SCJP, SCJD
Preparing for SCWCD
Create symphonies in seed and soil. For this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Exception: java.rmi.RemoteException: Call invocation failed;
WSIFException : invoking service method
Unable to test webservice using a client
problem with perl web services and java client
calling asp webservice from tomcat 5 based app
More...