• Post Reply Bookmark Topic Watch Topic
  • New Topic

reading WSDL from an uri

 
Guadalupe Ortiz
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • 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
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • 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:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!