aspose file tools
The moose likes Web Services and the fly likes reading WSDL from an uri Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "reading WSDL from an uri" Watch "reading WSDL from an uri" New topic
Author

reading WSDL from an uri

Guadalupe Ortiz
Ranch Hand

Joined: Sep 12, 2003
Posts: 74
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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:


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: reading WSDL from an uri
 
Similar Threads
Document : set raw xml (java)
Problems with Web Services
How to return XML data as a string?
Read File from jar file
location of xsd file