3 Replies Latest reply on Sep 4, 2009 10:19 AM by ntsankov

    Unwanted warning

    ntsankov

      Hi,

      I have a WS client created with wsconsume, but I want to specify the service endpoint at runtime. The solution I found is:

      MyService stub = new MyService(null, SERVICE_QNAME);
      MyPortType myPort = stub.getMyPort();
      ((BindingProvider)myPort).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpointUrlString);
      


      which works ok, except that I get a
      "WARN [org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl] Cannot get port meta data for: {http://ws...}MyPort"
      in the log. I suppose this is caused by the fact that I pass null as wsdl location, but I don't want the client to parse the wsdl each time.
      Can someone help me get rid of this warning? Maybe there is a better way to dynamically specify the endpoint?