Custom Web Service to consuming blob data
Dear All,
We are try to create a Custom Web Service in Java to consume the blob data by passing input. We are getting error while connecting the webservice from JDeveloper (401 unauthorized). Both webservice provide and consumer are in same network. We are using below code for proxy authentication.
System.setProperty("java.net.useSystemProxies", "true");
Properties systemSettings = System.getProperties();
systemSettings.put("proxySet", "true");
try{
List proxies = ProxySelector.getDefault().select(new URI("http://docswrf.com.qa/sites/invoice/_layouts/invoice/DOCSInvoiceWS.asmx"));
for (Iterator iter = proxies.iterator(); iter.hasNext();) {
Proxy proxy = (Proxy) iter.next();
System.out.println(proxy);
InetSocketAddress address = (InetSocketAddress) proxy.address();