-
jdeveloper webservices
dear all i had created a webservices
called calc take nothing and return 1 as int for testing and learning using jdeveloepr
it apears on url so nice and work but when i try to call it from a java class client stub
public static void main(String[] args)
{
try
{
EmbeddedMyWebService2Stub stub = new EmbeddedMyWebService2Stub();
// Add your own code here.
System.out.println("stub of calc created ");
stub.calc();
System.out.println("done and sucess to call the calc method ");
}
and when i run this class it give me the folwing exception
stub of calc created
[SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml". Response was:
<HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>404 Not Found</H1>Resource /wedanyservices-WedanyServicesPro-context-root/MyWebService2 not found on this server</BODY></HTML>
]
at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:209)
at org.apache.soap.rpc.Call.invoke(Call.java:268)
at mypackage1.EmbeddedMyWebService2Stub.calc(EmbeddedMyWebService2Stub.java:77)
at mypackage1.EmbeddedMyWebService2Stub.main(EmbeddedMyWebService2Stub.java:34)
Process exited with exit code 0.
can any one help me and tell me what must i do to make it run without exception?
Similar Threads
-
Replies: 0
Last Post: 03-22-2006, 03:33 AM
-
By kauseeman in forum .NET
Replies: 0
Last Post: 05-26-2005, 02:03 PM
-
Replies: 1
Last Post: 01-18-2003, 02:09 PM
-
Replies: 0
Last Post: 04-20-2002, 07:51 AM
-
By Cecilio Thomas in forum .NET
Replies: 1
Last Post: 12-09-2001, 10:12 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks