title: JAX-WS client without a WSDL document file
body: <p>I am consuming a webservice soa, with netbeans (jax-ws) i use netbeans auto generate client, and all run fine, but i see that the wsdl is always downloading while the client is running.</p>
  
  <p>In production i don't want expose the wsdl, and i am trying to modify the client for don't require wsdl, all my intends are wrong, i find this:</p>
  
  <pre><code>WebService_Service svc = new WebService_Service(
    null,
    new QName("http://www.example.com/ws", "WebService"));
  WebService port = svc.getPort(WebService.class);
  BindingProvider bindingProvider = (BindingProvider) port;
  bindingProvider.getRequestContext()
    .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
      "http://www.example.com/real_endpoint_url_goes_here");
  </code></pre>
  
  <p>but when the first line is executed i found this exception:</p>
  
  <pre><code>Message: El contenido no está permitido en el prólogo.
      at com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.wrapException(Unknown Source)
      at com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.next(Unknown Source)
      at com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.nextContent(Unknown Source)
      at com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.nextElementContent(Unknown Source)
      at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.hasWSDLDefinitions(Unknown Source)
      at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source)
      at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source)
      at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(Unknown Source)
      at com.sun.xml.internal.ws.client.WSServiceDelegate.&lt;init&gt;(Unknown Source)
      at com.sun.xml.internal.ws.client.WSServiceDelegate.&lt;init&gt;(Unknown Source)
      at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(Unknown Source)
      at javax.xml.ws.Service.&lt;init&gt;(Unknown Source)
  </code></pre>
  
  <p>Any idea to ignore wsdl?</p>