code: static InjectionBinding<WebServiceRef> createWebServiceRefBindingFromResource(Resource resource, ComponentNameSpaceConfiguration cnsConfig, Class<?> serviceClass,
                                                                                    String jndiName) throws InjectionException {
          InjectionBinding<WebServiceRef> binding = null;
  
          WebServiceRef wsRef = createWebServiceRefFromResource(resource, serviceClass, jndiName);
          WebServiceRefInfo wsrInfo = WebServiceRefInfoBuilder.buildWebServiceRefInfo(wsRef, cnsConfig.getClassLoader());
          wsrInfo.setClientMetaData(JaxWsMetaDataManager.getJaxWsClientMetaData(cnsConfig.getModuleMetaData()));
          wsrInfo.setServiceInterfaceClassName(serviceClass.getName());
          binding = new WebServiceRefBinding(wsRef, cnsConfig);
  
          // register the metadata, and set a flag on the binding instance that let's us
          // know this binding represents metadata from an @Resource annotation
          ((WebServiceRefBinding) binding).setWebServiceRefInfo(wsrInfo);
          ((WebServiceRefBinding) binding).setResourceType(true);
  
          return binding;
      }
docs: This method will be used to create an instance of a WebServiceRefBinding object
  that holds metadata obtained from an @Resource annotation. The @Resource annotation
  in this case would have been indicating a JAX-WS service type injection.