2 Replies Latest reply on Oct 26, 2006 7:19 PM by jason.greene

    Call invocation failed excepiton when invoking EJB3 WebServi

    mmarcom

      hi all,
      i am exposing an EJB3 SLSB as WebServices....
      when i call it i am receiving this exception:

      Exception in thread "main" java.rmi.RemoteException: Call invocation failed with
       code [Client] because of: Endpoint {http://org.jboss.ws/ejb3ws}WSRemoteSEIPort
      does not contain operation meta data for: {http://org.jboss.ws/samples/jsr181ejb
      }testWebServiceMethod; nested exception is:
       javax.xml.rpc.soap.SOAPFaultException: Endpoint {http://org.jboss.ws/ejb
      3ws}WSRemoteSEIPort does not contain operation meta data for: {http://org.jboss.
      ws/samples/jsr181ejb}testWebServiceMethod
       at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:713)
       at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
       at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148)
       at $Proxy0.testWebServiceMethod(Unknown Source)
       at ws.jboss.org.samples.jsr181ejb.WSFacadeTester.doTest(WSFacadeTester.j
      ava:54)
       at ws.jboss.org.samples.jsr181ejb.WSFacadeTester.main(WSFacadeTester.jav
      a:36)
      Caused by: javax.xml.rpc.soap.SOAPFaultException: Endpoint {http://org.jboss.ws/
      ejb3ws}WSRemoteSEIPort does not contain operation meta data for: {http://org.jbo
      ss.ws/samples/jsr181ejb}testWebServiceMethod
       at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.getSOAPFaultException(SO
      APFaultExceptionHelper.java:100)
       at org.jboss.ws.binding.soap.SOAPBindingProvider.unbindResponseMessage(S
      OAPBindingProvider.java:486)
       at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:702)
       ... 5 more
      


      my wsdl is as follows

      <?xml version="1.0" encoding="UTF-8"?>
      <definitions name='WSFacade' targetNamespace='http://org.jboss.ws/samples/jsr181ejb' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:ns1='http://core.j2me.mm.com/jaws' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://org.jboss.ws/samples/jsr181ejb' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
       <types>
       <schema targetNamespace='http://core.j2me.mm.com/jaws' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:ns2='http://org.jboss.ws/samples/jsr181ejb' xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:tns='http://core.j2me.mm.com/jaws' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
       <import namespace='http://org.jboss.ws/samples/jsr181ejb'/>
       <complexType name='Agency'>
       <sequence>
       <element name='emailAddress' nillable='true' type='string'/>
       <element name='id' type='int'/>
       <element name='jobHunter' nillable='true' type='string'/>
       <element name='name' nillable='true' type='string'/>
       <element name='phoneNumber' nillable='true' type='string'/>
       <element name='site' nillable='true' type='string'/>
       </sequence>
       </complexType>
       </schema>
       <schema targetNamespace='http://org.jboss.ws/samples/jsr181ejb' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:ns1='http://core.j2me.mm.com/jaws' xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:tns='http://org.jboss.ws/samples/jsr181ejb' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
       <import namespace='http://core.j2me.mm.com/jaws'/>
       <complexType name='Agency.Array'>
       <sequence>
       <element maxOccurs='unbounded' minOccurs='0' name='value' nillable='true' type='ns1:Agency'/>
       </sequence>
       </complexType>
       </schema>
       </types>
       <message name='WSRemoteSEI_testWebServiceMethod'>
       <part name='arrayOfAgency_1' type='tns:Agency.Array'/>
       </message>
       <message name='WSRemoteSEI_testWebServiceMethodResponse'>
       <part name='result' type='tns:Agency.Array'/>
       </message>
       <portType name='WSRemoteSEI'>
       <operation name='testWebServiceMethod' parameterOrder='arrayOfAgency_1'>
       <input message='tns:WSRemoteSEI_testWebServiceMethod'/>
       <output message='tns:WSRemoteSEI_testWebServiceMethodResponse'/>
       </operation>
       </portType>
       <binding name='WSRemoteSEIBinding' type='tns:WSRemoteSEI'>
       <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
       <operation name='testWebServiceMethod'>
       <soap:operation soapAction=''/>
       <input>
       <soap:body namespace='http://org.jboss.ws/samples/jsr181ejb' use='literal'/>
       </input>
       <output>
       <soap:body namespace='http://org.jboss.ws/samples/jsr181ejb' use='literal'/>
       </output>
       </operation>
       </binding>
       <service name='WSFacade'>
       <port binding='tns:WSRemoteSEIBinding' name='WSRemoteSEIPort'>
       <soap:address location='http://WorldCorp:9080/ejbJ2me-app-1/TestFacade'/>
       </port>
       </service>
      </definitions>
      



      can anyone tell me why i am having this exception??

      thanks and regars
      Marco

        • 1. Re: Call invocation failed excepiton when invoking EJB3 WebS
          mmarcom

          hi,
          found out that i was uisng wrong namespace..
          .but after fixing it.. i got this exception

          creating service....
          Exception in thread "main" org.jboss.ws.WSException: Cannot obtain java type map
          ping for: {http://org.jboss.ws/ejb3ws}Agency.Array
           at org.jboss.ws.deployment.JSR109MetaDataBuilder.buildParameterMetaDataR
          pc(JSR109MetaDataBuilder.java:247)
           at org.jboss.ws.deployment.JSR109MetaDataBuilder.setupOperationsFromWSDL
          (JSR109MetaDataBuilder.java:196)
           at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaDataInte
          rnal(JSR109ClientMetaDataBuilder.java:208)
           at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR
          109ClientMetaDataBuilder.java:126)
           at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR
          109ClientMetaDataBuilder.java:82)
           at org.jboss.ws.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:96)
           at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryIm
          pl.java:157)
           at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryIm
          pl.java:142)
           at ws.jboss.org.samples.jsr181ejb.WSFacadeTester.doTest(WSFacadeTester.j
          ava:49)
           at ws.jboss.org.samples.jsr181ejb.WSFacadeTester.main(WSFacadeTester.jav
          a:36)
          
          


          the signature of my webservice is

          Agency[] testWebService(Agency[] in) ....

          i am usign SOAP RPC, and it is failing to find types.. is it too complex to use RPC? i am going to try literal now... but i am curious to know if someone has find similar problem
          found this post

          http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3978884#3978884


          but there is no solution yet......

          any help?

          thank in advance and regards
          Marco


          • 2. Re: Call invocation failed excepiton when invoking EJB3 WebS
            jason.greene

            Do you have a jaxrpc-mapping.xml in your client deployment?

            -Jason