• Post Reply Bookmark Topic Watch Topic
  • New Topic

crossing proxy

 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I downloaded a program to access the google search web service. But the program could not reach out since we have a proxy.

Do you know how to cross the proxy?

There is a solution using the URL class.



But I want the connection string as a string (not as an URL object) because, i am using .

Here is the error message :

[aruljose@aruljose systinet]$ java -classpath ${WASP_HOME}/lib/wasp.jar:${CLASSPATH}:. demo.google.GoogleClient
ERROR: com.idoox.wsdl.xml.WSDLReaderImpl - java.net.UnknownHostException: api.google.com
WARNING: com.idoox.wsdl.xml.WSDLReaderImpl - java.io.IOException
Exception in thread "main" org.systinet.wasp.webservice.LookupException: Error obtaining WSDL definition from http://api.google.com/GoogleSearch.wsdl
at com.systinet.wasp.webservice.ServiceClientImpl.lookup(ServiceClientImpl.java:555)
at com.systinet.wasp.webservice.ServiceClientImpl.createProxy(ServiceClientImpl.java:434)
at org.systinet.wasp.webservice.Registry.lookup(Registry.java:168)
at demo.google.GoogleClient.main(GoogleClient.java:36)
Caused by: WSDLException: faultCode=INVALID_WSDL: Cannot get WSDL at ' [url=http://api.google.com/GoogleSearch.wsdl%27.]http://api.google.com/GoogleSearch.wsdl'.[/url]
Exception occured: java.net.UnknownHostException: api.google.com:
at com.idoox.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:236)
at com.idoox.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:200)
at com.idoox.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:337)
at com.idoox.wasp.wsdl.WSDLRepositoryImpl.getDefinition(WSDLRepositoryImpl.java:158)
at com.idoox.wasp.SOAPServiceInfoCache.getServiceInfos(SOAPServiceInfoCache.java:52)
at com.systinet.wasp.webservice.ServiceClientImpl.lookup(ServiceClientImpl.java:553)
... 3 more

Can any one help??

If required, you can have a look at the client program

http://aruljose:8080/ex/GoogleClient.html


ARUL JOSE
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This looks to be more appropriate in Sockets and Internet Protocols. I'll move it there.
 
Vikas Bhatia
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Michael Ernest:
This looks to be more appropriate in Sockets and Internet Protocols. I'll move it there.


It looks more to be a DNS issue than a proxy issue. If the proxy was not letting you go through, then you should have seen a different error message like, "connection refused". Please check your DNS server to see if it can resolve the desired address or not.
 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I could access the wsdl file thru the browser. so i dont think it is a DNS problem
 
Arun Prasath
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google api also has a configurable feature wherein you will be able to set up proxy settings.Have you tried that?
 
Arul Jose
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you tell me what file it is?

I actually tried various options.

I have crossed proxy in normal java programs. I could not do it here.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!