• 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

Virtual Earth Web Services

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am trying to generate proxy files for the microsoft virtual earth web service using WSDL2Java api .

java org.apache.axis.wsdl.WSDL2Java -W -s -S true -o src http://staging.dev.virtualearth.net/webservices/v1/metadata/sear
chservice/searchservice.wsdl

I get the following exception.....
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
...
....
.....
........

I am able to access the wsdl file from IE . What could be the possible reason ?
Is there any other way to access Micrsoft virtual Earth webservices from any Java Application?
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You must be behind a Proxy and hence you might be receiving this exception. I tried it on my PC and got all the 62 emitted files from WSDL2Java utility. You may also try and write a small piece of code invoking WSDL2Java with the �Proxy-Authorization� param set for the proxy.
 
Ramesh Sahu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you .
Can you please elaborate on how to set �Proxy-Authorization� param for the proxy & where do I need to add this?

[ December 17, 2008: Message edited by: Ramesh Sahu ]
[ December 17, 2008: Message edited by: Ramesh Sahu ]
 
Nitin Pathak
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ramesh Sahu:

Can you please elaborate on how to set �Proxy-Authorization� param for the proxy & where do I need to add this?



Maybe this post would prove to be useful for your cause.
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Basically you have to set the proxy properties to get through

Client Side Axis: Standard Properties


Otherwise download all the WSDL and XML Schema files with a browser and save them at a local file location:

http://staging.dev.virtualearth.net/webservices/v1/metadata/searchservice/searchservice.wsdl
http://staging.dev.virtualearth.net/webservices/v1/metadata/searchservice/searchservice1.wsdl
http://staging.dev.virtualearth.net/webservices/v1/metadata/searchservice/searchservice.xsd
http://staging.dev.virtualearth.net/webservices/v1/metadata/searchservice/searchservice1.xsd
http://staging.dev.virtualearth.net/webservices/v1/metadata/searchservice/searchservice3.xsd
http://staging.dev.virtualearth.net/webservices/v1/metadata/searchservice/searchservice2.xsd
http://staging.dev.virtualearth.net/webservices/v1/metadata/searchservice/searchservice4.xsd

And supply them all to WSDL2Java


The ellipsis (...) is simply a placeholder for other commandline options that I do not show.

The schemaLocation attribute is only a suggestion - so hopefully WSDL2Java will take the files that you supply instead.
[ December 17, 2008: Message edited by: Peer Reynders ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic