[Uddi4j-general] RE:...Proxy server settings for UDDI4J
Brought to you by:
ihodges
From: Manjunath R <ema...@ya...> - 2001-04-05 07:53:04
|
Hi Thanks David Melgar, I did the same thing that was said in ur reply...but im afraid it does'nt work. However i did some digging in to the UDDI4j api and found a nice way to set the Proxy setting.. The saop v2.1 does support the settting of the proxy server and its port. You have to import the "org.apache.soap.transport.http.SOAPHTTPConnection" class. and then you are ready to GO. The following snippet of code shows how to do this - - - - String proxyHost = ProxyHostname; int proxyPort = Proxyport; // Construct a UDDIProxy object. UDDIProxy proxy = new UDDIProxy(); // create the transport and set parameters SOAPHTTPConnection st = new SOAPHTTPConnection(); st.setProxyHost(proxyHost); st.setProxyPort(proxyPort); proxy.setTransport(st); proxy.setInquiryURL("http://www-3.ibm.com/services/uddi/testregistry/inquiryapi"); BusinessList bl = proxy.find_business("S", null, 0); - - - - That 's it Bye for now... Manjunath.R __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |