Forum Post: RE: How to Call Web Service from Java.?

  • Thread starter Thread starter James Arsenault
  • Start date Start date
Status
Not open for further replies.
J

James Arsenault

Guest
Saravanan, Try this with the bundled SOAP test client included with Corticon Server. Run install dir \Server\bin\testServerAxis.bat Use option “130” to send your test XML file to the server. See the section “Consuming a Decision Service” in the “Deploying Web Services with Java” guide. I’m asking you to try this to help identify if it’s possibly in your client code. Thanks, Jim From: sanswa19 [mailto:bounce-sanswa19@community.progress.com] Sent: Monday, October 27, 2014 10:52 AM To: TU.Corticon@community.progress.com Subject: RE: [Technical Users - Corticon] How to Call Web Service from Java.? RE: How to Call Web Service from Java.? Reply by sanswa19 Hi James, I am getting below type of error when i pass string value as parameter in excecute() Error Details, Exception in thread "main" com.sun.xml.internal.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: java.rmi.RemoteException: Unexpected Error; nested exception is: com.corticon.service.ccserver.exception.CcServerInvalidArgumentException: CcServer.execute(Document) Invalid Root Element Name....expected 'CorticonRequest' but received execute Object state for: com.corticon.eclipse.server.core.impl.CcServerImpl: com.corticon.eclipse.server.core.impl.CcServerImpl@796e1c Please see the server log to find more detail regarding exact cause of the failure. at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(Unknown Source) at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(Unknown Source) at com.sun.xml.internal.ws.client.sei.StubHandler.readResponse(Unknown Source) at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(Unknown Source) at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(Unknown Source) at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source) at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source) at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(Unknown Source) at com.sun.proxy.$Proxy32.execute(Unknown Source) at Run.main(Run.java:55) My Request xml is been like below ?xml version="1.0"? CorticonRequest xmlns="urn:Corticon" xmlns:xsi=" www.w3.org/.../XMLSchema-instance" decisionServiceName="Sample" WorkDocuments Applicant id="Order_id_1" Blind true /Blind /Applicant /WorkDocuments /CorticonRequest Thanks in advance Saravanan P. Stop receiving emails on this subject. Flag this post as spam/abuse.

Continue reading...
 
Status
Not open for further replies.
Back
Top