0 Replies Latest reply: Jun 17, 2008 3:53 PM by 666705 RSS

    Use of JAX RPC Weblogic Callback Capability

    666705
      Just walking through the Callback example in the bea documentation at:
      http://edocs.bea.com/wls/docs100/webserv_adv/callback.html#wp259721

      But I can't seem to get the example to build properly, anyone else have troubles with this?

      Anyone else using callbacks at all?

      Code trying to build:
      = = = = = = = = = = = = = = = = = =
      package jsip.jaxrpc.services;
      import weblogic.jws.WLHttpTransport;
      import weblogic.jws.*;
      import weblogic.wsee.jws.CallbackInterface;
      import javax.jws.WebMethod;
      import javax.jws.WebService;

      @WebService(name="CallbackPortType",
      serviceName="WhereIsWaldo",
      targetNamespace="http://examples.org/")
                
      @WLHttpTransport(contextPath="callback",
      serviceUri="WhereIsWaldo",
      portName="WhereIsWaldo")
                
      public class JaxrpcAsyncReqRes
      {
      @Callback
      CallbackInterface callback;
           
      @WebMethod
      public void callbackOperation (String message)
      {       
      callback.callbackOperation (message);
      }
      }

      Error produced:
      = = = = = = = = = = == = =
      [jwsc] [ERROR] - weblogic.jws.CallbackService Annotation must be present on weblogic.wsee.jws.CallbackInterface.
      [jwsc] [ERROR] - The annotation weblogic.jws.Exclude is not allowed on callback interface weblogic.wsee.jws.CallbackInterface.


      Error message when building: