Forum Discussion

thenu's avatar
thenu
New Contributor
16 years ago

SOAPUI with client Interface

Actually i have created a wsdl project in SOAPUI. when i make asynchronous call to the client it throws exception.


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Missing operation for soapAction [urn:anonOutInOp] and body element [getContactDetails] with SOAP Version [SOAP 1.1]
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:383)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

org.apache.axis2.AxisFault: Missing operation for soapAction [urn:anonOutInOp] and body element [getContactDetails] with SOAP Version [SOAP 1.1]
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:548)
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
com.Client.getContactDetails(Client.java:26)
org.apache.jsp.jsp.GetContactDetails_jsp._jspService(GetContactDetails_jsp.java:58)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.

When i check my wsdl file the SOAPAction was empty string ""
Please help me resolve this issue

Whether i have to do ant thing from my client side

3 Replies

  • thenu's avatar
    thenu
    New Contributor
    Hi,
      Thanks for ur reply i hereby attached my wsdl file. how come i will make soap action declaration in client side (using Axis2)
  • I use Axis2 in soapUi to release your wsdl. However, there are some error
    Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
    at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
    at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
    Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:126)
    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
    ... 2 more
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:115)
    ... 3 more
    Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error: src-resolve: element 'getContactDetails@http://ing.esp.com/' not found.
    at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:325)
    ... 8 more
    Caused by: org.apache.xmlbeans.XmlException: error: src-resolve: element 'getContactDetails@http://ing.esp.com/' not found.
    at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
    at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:189)
    ... 8 more