((com.sun.xml.rpc.client.StubBase)myRemoteStub)._setTransportFactory(new ClientTransportFactory() { @Override public ClientTransport create() { return new HttpClientTransport() { @Override protected HttpURLConnection createHttpConnection(String endpoint, SOAPMessageContext context) throws IOException { HttpURLConnection conn = super.createHttpConnection(endpoint, context); conn.setConnectTimeout(2000); conn.setReadTimeout(2000); return conn; } }; } });
protected Transport createTransport(URI location, WireFormat wf) throws IOException { TextWireFormat textWireFormat = asTextWireFormat(wf); // need to remove options from uri URI uri; try { uri = URISupport.removeQuery(location); } catch (URISyntaxException e) { MalformedURLException cause = new MalformedURLException("Error removing query on " + location); cause.initCause(e); throw cause; } return new HttpClientTransport(textWireFormat, uri); }
@Override protected Transport createTransport(URI location, WireFormat wf) throws IOException { TextWireFormat textWireFormat = asTextWireFormat(wf); // need to remove options from uri URI uri; try { uri = URISupport.removeQuery(location); } catch (URISyntaxException e) { MalformedURLException cause = new MalformedURLException("Error removing query on " + location); cause.initCause(e); throw cause; } return new HttpClientTransport(textWireFormat, uri); }
@Override protected Transport createTransport(URI location, WireFormat wf) throws IOException { TextWireFormat textWireFormat = asTextWireFormat(wf); // need to remove options from uri URI uri; try { uri = URISupport.removeQuery(location); } catch (URISyntaxException e) { MalformedURLException cause = new MalformedURLException("Error removing query on " + location); cause.initCause(e); throw cause; } return new HttpClientTransport(textWireFormat, uri); }
@Override protected Transport createTransport(URI location, WireFormat wf) throws IOException { TextWireFormat textWireFormat = asTextWireFormat(wf); // need to remove options from uri URI uri; try { uri = URISupport.removeQuery(location); } catch (URISyntaxException e) { MalformedURLException cause = new MalformedURLException("Error removing query on " + location); cause.initCause(e); throw cause; } return new HttpClientTransport(textWireFormat, uri); }