This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes WSDL implementation file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL implementation file" Watch "WSDL implementation file" New topic
Author

WSDL implementation file

Sandeep Lakshmipathy
Ranch Hand

Joined: Mar 05, 2002
Posts: 31
dear friends
I want to check if the user has entered a wsdl implementation file uri or an interface file uri. I am currently doing it using the checking for service tag. Is there any other way or method to do the same?
Thanks
Sandeep


Sandeep Lakshmipathy
Roy Huang
Ranch Hand

Joined: Nov 21, 2001
Posts: 104
you can use the WSDL4j.jar files. searching from the IBM developerworks to get this jar file.
I get it from the WSTK2.4's affiliated class files, it is in teh com.ibm.wstk.wsdl folder.
In this API, they have a WSDLDocument object and
a WSDLDocumentIdentifier to solve this problem.
for the code:

try
{ this.wsdl =new WSDLDocument(new URL(wsdlurl));
if(WSDLDocumentIdentifier.isCompleteDocument
(this.wsdl))
{System.out.println("The WSDL File is a
complete WSDL");
}
else if
(WSDLDocumentIdentifier.isImplementationDocument(this.wsdl))
{System.out.println("The WSDL File is a Implementation WSDL");

try
{
System.out.println("Its WSDL interface
file is from:"+(this.wsdl.getImports())
[0].getLocationURI());

this.interfacewsdlurl=
(this.wsdl.getImports())
[0].getLocationURI();

.............................


SCJP 1.4/SCBCD/SCWCD<br />MCSE<br />IBM professional XML Developer<br />SAP certified Development Consultant (NetWeaver portal and Web JavaApplication)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSDL implementation file
 
Similar Threads
reading WSDL from an uri
Choosing the service URI at install time..?
Problems with Web Services
JAX-WS Client Endpoint as Property?
Import WSDL