0 Replies Latest reply on Apr 9, 2014 7:10 AM by aruntech89

    Invoking Webservice in JBoss EAP 6.1 throws ERROR

    aruntech89

      Hi All,

       

      We are using JDevloper 11.1.2.4 for ADF Mobile Dev.

       

      1) We have a sample EJB project which is deployed in JBoss EAP 6.1.  It has sayHello method in it.

      2) From Http Analyzer of Jdev -  i have tested my WSDL and it seems to be working fine. and tested in integrated Test Client its working.

      3) After Testing i have created Web Service Data Control in my porject and trying to get the result. but it gives me error.

       

       

      Error Details :

       

      13:42:11,538 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (http-/192.168.1.161:8080-1) Interceptor for {http://src/}SessionEJBBeanService#{http://src/}sayHello has thrown exception, unwinding

      now: org.apache.cxf.interceptor.Fault: The given SOAPAction http://src/sayHello does not match an operation.

              at org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor$SoapActionInAttemptTwoInterceptor.handleMessage(SoapActionInInterceptor.java:188)

              at org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor$SoapActionInAttemptTwoInterceptor.handleMessage(SoapActionInInterceptor.java:162)

              at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)

              at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

              at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:237)

              at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:95)

              at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:156)

              at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)

              at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:225)

              at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:145)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

              at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)

              at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140) [jbossws-spi-2.1.2.Final-redhat-1.jar:2.1.2.Final-redhat-1]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_41]

       

      13:42:44,947 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (http-/192.168.1.161:8080-1) Interceptor for {http://src/}SessionEJBBeanService#{http://src/}sayHello has thrown exception, unwinding

      now: org.apache.cxf.interceptor.Fault: The given SOAPAction http://src/sayHello does not match an operation.

              at org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor$SoapActionInAttemptTwoInterceptor.handleMessage(SoapActionInInterceptor.java:188)

              at org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor$SoapActionInAttemptTwoInterceptor.handleMessage(SoapActionInInterceptor.java:162)

              at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)

              at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

              at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:237)

              at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:95)

              at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:156)

              at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)

              at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:225)

              at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:145)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

              at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)

              at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140) [jbossws-spi-2.1.2.Final-redhat-1.jar:2.1.2.Final-redhat-1]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)

              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_41]

       

      My WSDL

       

      <wsdl:definitions name="SessionEJBBeanService" targetNamespace="http://src/">

      <wsdl:types>

      <xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://src/">

      <xsd:element name="sayHello" nillable="true" type="xsd:string"/>

      </xsd:schema>

      </wsdl:types>

      <wsdl:message name="sayHelloResponse">

      <wsdl:part element="tns:sayHello" name="sayHello">

          </wsdl:part>

      </wsdl:message>

      <wsdl:message name="sayHello">

        </wsdl:message>

      <wsdl:portType name="SessionEJBBeanService">

      <wsdl:operation name="sayHello">

      <wsdl:input message="tns:sayHello" name="sayHello">

          </wsdl:input>

      <wsdl:output message="tns:sayHelloResponse" name="sayHelloResponse">

          </wsdl:output>

      </wsdl:operation>

      </wsdl:portType>

      <wsdl:binding name="SessionEJBBeanServiceSoapBinding" type="tns:SessionEJBBeanService">

      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="sayHello"><soap:operation soapAction="" style="document"/>

      <wsdl:input name="sayHello">

      <soap:body use="literal"/>

      </wsdl:input>

      <wsdl:output name="sayHelloResponse">

      <soap:body use="literal"/>

      </wsdl:output>

      </wsdl:operation>

      </wsdl:binding>

      <wsdl:service name="SessionEJBBeanService">

      <wsdl:port binding="tns:SessionEJBBeanServiceSoapBinding" name="SessionEJBBeanServicePort">

      <soap:address location="http://192.168.1.161:8080/TestEjb/SessionEJBBeanService"/>

      </wsdl:port>

      </wsdl:service>

      </wsdl:definitions>

       

      Any help will be useful for us.

       

      Thanks  In Advance

      Arun T