5 Replies Latest reply on Jan 4, 2006 3:50 AM by Ashok Kumar V

    Problem with EJB Web Service with two params

    Scott Jones Newbie

      I am having a problem with an ejb that has two params.

      The ejb deploys fine, but when I go to http://localhost:8080/ws4ee/services

      I get the following error:

      org.jboss.axis.InternalException: java.lang.Exception: The OperationDesc for hello was not synchronized to a method of com.acxiom.sentricx.ejb.fraudsearch.FraudSearchEndpoint.
      


      I am trying to do doc literal for the style. It works fine with either of my complex objects as a single param. But when I put both I get that error.

      Thanks for any help,
      Scott

        • 2. Re: Problem with EJB Web Service with two params
          Scott Jones Newbie

          No I had not read that item.

          One more question:
          Do you see any problems with getting around the problem by packaging up the params to my ejb in a single object and making that object the only param to the EJB.

          Thanks

          • 4. Re: Problem with EJB Web Service with two params
            chahua wang Newbie

            you have to use wrapper.

            <configuration
             xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
            
             <service name="OrderProcessService"
             targetNamespace="http://org.jboss.test.webservice/samples2"
             typeNamespace="http://org.jboss.test.webservice/samples2/types"
             packageName="org.jboss.test.webservice.samples2">
             <interface name="org.jboss.test.webservice.samples2.OrderProcess"/>
             </service>
            
            </configuration>
            
             <!-- BEGIN manual modification -->
             <service-endpoint-interface-mapping>
             <service-endpoint-interface>org.jboss.test.webservice.samples2.OrderProcessWrapped</service-endpoint-interface>
             <wsdl-port-type xmlns:portTypeNS="http://org.jboss.test.webservice/samples2">portTypeNS:OrderProcess</wsdl-port-type>
             <wsdl-binding xmlns:bindingNS="http://org.jboss.test.webservice/samples2">bindingNS:OrderProcessBinding</wsdl-binding>
             <service-endpoint-method-mapping>
             <java-method-name>processOrder</java-method-name>
             <wsdl-operation>processOrder</wsdl-operation>
             <wrapped-element/>
             <method-param-parts-mapping>
             <param-position>0</param-position>
             <param-type>org.jboss.test.webservice.samples2.OrderProcess_processOrder_RequestStruct</param-type>
             <wsdl-message-mapping>
             <wsdl-message xmlns:wsdlMsgNS="http://org.jboss.test.webservice/samples2">wsdlMsgNS:OrderProcess_processOrder</wsdl-message>
             <wsdl-message-part-name>parameters</wsdl-message-part-name>
             <parameter-mode>IN</parameter-mode>
             </wsdl-message-mapping>
             </method-param-parts-mapping>
             <wsdl-return-value-mapping>
             <method-return-value>org.jboss.test.webservice.samples2.OrderProcess_processOrder_ResponseStruct</method-return-value>
             <wsdl-message xmlns:wsdlMsgNS="http://org.jboss.test.webservice/samples2">wsdlMsgNS:OrderProcess_processOrderResponse</wsdl-message>
             <wsdl-message-part-name>result</wsdl-message-part-name>
             </wsdl-return-value-mapping>
             </service-endpoint-method-mapping>
             </service-endpoint-interface-mapping>
             <!-- END manual modification -->
            




            • 5. Re: Problem with EJB Web Service with two params
              Ashok Kumar V Newbie

               

              "acxsjones" wrote:
              I am having a problem with an ejb that has two params.

              The ejb deploys fine, but when I go to http://localhost:8080/ws4ee/services

              I get the following error:
              14:16:07,373 INFO [AxisServlet] Exception:
              org.jboss.axis.InternalException: java.lang.Exception: The OperationDesc for payBill was not synchronized to a method of com.unisys.os2200.demo.banking.webservices.BillPaymentEndPoint.
               at org.jboss.axis.description.ServiceDesc.syncOperationToClass(ServiceDesc.java:870)
               at org.jboss.axis.description.ServiceDesc.getSyncedOperationsForName(ServiceDesc.java:1217)
               at org.jboss.axis.description.ServiceDesc.loadServiceDescByIntrospectionRecursive(ServiceDesc.java:1063)
               at org.jboss.axis.description.ServiceDesc.loadServiceDescByIntrospection(ServiceDesc.java:984)
              


              I am trying to do doc literal for the style.
              Thanks for any help,
              Ashok