• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Problem in Invoking Weblogic Web Service using JAX-RPC

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to invoke a weblogic web service using JAX-RPC API but i'm stumbled into this error:

javax.xml.rpc.soap.SOAPFaultException: Unable to parse the incoming request
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:317)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:147)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:473)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:459)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:569)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:422)
at com.git.lib.webservice.Client.testSyncSQLServer(Client.java:266)
at com.git.lib.webservice.Client.main(Client.java:277)

Below is the client java code i use:
String endpoint = "http://172.16.0.168:7001/INGateway/WSPoolSync";
String namespace = "http://com/git/webservice";
String action = "sqlServerTest";

// Setup the global JAXM message factory
System.setProperty("javax.xml.soap.MessageFactory", "weblogic.webservice.core.soap.MessageFactoryImpl");
// Setup the global JAX-RPC service factory
System.setProperty("javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");

try {
String soapAction = new StringBuffer(namespace).append('/').append(action).toString();

// create service factory
ServiceFactory factory = ServiceFactory.newInstance();

//Service service = new Service();
javax.xml.rpc.Service service = factory.createService(new QName(soapAction));
javax.xml.rpc.Call call = (javax.xml.rpc.Call) service.createCall();

call.setTargetEndpointAddress(endpoint);
call.setOperationName(new QName(soapAction));

call.setReturnType(javax.xml.rpc.encoding.XMLType.XSD_STRING);
call.addParameter("msg", javax.xml.rpc.encoding.XMLType.XSD_STRING, ParameterMode.IN);

System.out.println("Before invoke web service...");
Object objResult = call.invoke(new Object[] { "Testing1" });
System.out.println("After invoke web service...");
if (objResult != null)
System.out.println("objResult="+((String) objResult));
} catch (Exception e) {
e.printStackTrace();
}

Does anyone can help me to solve the problem?
I need a quick response for this problem. Please help me!

Best Regards,

Benny.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am also getting the same error. The only change I made in my application that I plugged in xercesImpl-2.8.1.jar instead of what comes bundled with weblogic 10. Here is the stack trace:

Failed to invoke service:
javax.xml.rpc.soap.SOAPFaultException: Exception during processing: com.ecc.webservice.ejb.ECCServiceException
(see Fault Detail for stacktrace) at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:270)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:131)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:439)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:405)
at weblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase.java:322)
at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:296)
at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:312)
at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:253)
at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:138)
at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:232)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6297)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3575)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)


Any clues regarding this will be greatly appreciated.

Regards
Ravi Gupta
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic