dcsimg
Apache SOAP problem for proxy server for firewall
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vikas_pandya
Posted On:   Friday, March 29, 2002 07:10 AM

Am trying to use IBM UDDI registry to search and then to publish my service using UDDI4J API. My first problem is when i tried to connect to IBM UDDI registy with following snippet of code, as am running behind "proxy server" firewall i am not able to connect to IBM site. //here is code which i am using to connect to IBM URL UDDIProxy proxy = new UDDIProxy(); proxy.setInquiryURL("http://www-3.ibm.com/services/uddi/ testregistry/inquiryapi"); then by reading some of the user groups i got some clue to set "proxy" for Apache SOAP and am asking my program to use "proxy" setting for Apache SOAP with below code. Prop   More>>

Am trying to use IBM UDDI registry to search and then
to publish my service using UDDI4J API. My first
problem is when i tried to connect to IBM UDDI registy
with following snippet of code, as am running behind
"proxy server" firewall i am not able to connect to
IBM site.
//here is code which i am using to connect to IBM URL
UDDIProxy proxy = new UDDIProxy();
proxy.setInquiryURL("http://www-3.ibm.com/services/uddi/
testregistry/inquiryapi");

then by reading some of the user groups i got some
clue to set "proxy" for Apache SOAP and am asking my
program to use "proxy" setting for Apache SOAP with
below code.
Properties prop = System.getProperties();
prop.put("http.proxyHost","myproxy.com");
prop.put("http.proxyPort","8080");
prop.put("http.proxyUserName","username");
prop.put("http.proxyPassword","password");

when i tried to run this program am getting following
exception(s).
Exception in thread "main"
java.lang.NullPointerException
at
org.apache.soap.transport.TransportMessage.read(TransportMessage.java
:211)
at
org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:371)
at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnec
tion.java:282)
at
org.apache.soap.messaging.Message.send(Message.java:123)
at
org.uddi4j.transport.ApacheSOAPTransport.send(Unknown
Source)
at
org.uddi4j.transport.TransportBase.send(Unknown
Source)
at org.uddi4j.client.UDDIProxy.send(Unknown
Source)
at
org.uddi4j.client.UDDIProxy.find_business(Unknown
Source)
at
org.uddi4j.client.UDDIProxy.find_business(Unknown
Source)
at Search.main(Search.java:42)

my Search.java line 42 is: BusinessList bl =
proxy.find_business("V", null, 0);

and i believe due to failure of Apache SOAP transport
am getting this uddi4j exceptions.

Any help would be appreciated highly!!!
Thanks,

   <<Less

Re: Apache SOAP problem for proxy server for firewall

Posted By:   vikas_pandya  
Posted On:   Friday, March 29, 2002 09:14 AM

Never mind group, i figured out the problem and now Apache SOAP is working fine with proxy server for firewall.
About | Sitemap | Contact