• 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

reading WSDL from an uri

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to parse an WSDL that is located in an URI. I�ve done it with an WSDL that is in the system directory like:
document = builder.parse( new File("test.wsdl") );
but when I try with the URI like:
document = builder.parse( new File("http://localhost:8080/library-jaxrpc/library") );
it return me an error indicating that the file was not found because it searchs it in the actual directopry plusss the http....
How can I do it to it to search for it in the uri http...??
(I would like, if posible, still using the same apy)
thanks in advance
Gobellot
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to use java.net.URL instead of java.io.File if your WSDL document is not a local file. I.e. something like:
 
reply
    Bookmark Topic Watch Topic
  • New Topic