• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WSDL implementation file

 
Sandeep Lakshmipathy
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Roy Huang
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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();

.............................
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic