• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

crossing proxy

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This looks to be more appropriate in Sockets and Internet Protocols. I'll move it there.
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I could access the wsdl file thru the browser. so i dont think it is a DNS problem
 
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic