org.universAAL.ri.wsdlToolkit.parser
Class WSDLParser

Package class diagram package WSDLParser
java.lang.Object
  extended by org.universAAL.ri.wsdlToolkit.parser.WSDLParser

public class WSDLParser
extends Object

Main class used for parsing WSDL files.

Author:
kgiannou

Constructor Summary
WSDLParser()
           
 
Method Summary
static void cloneAllParsedComplexandNativeObjects(ParsedWSDLDefinition theDefinition)
           
static void fixTheParserPaths(ParsedWSDLDefinition theDefinition)
           
static String getDocumentation(String wsdlURL)
          Returns documentation of a web service
static String getWSDLStyleAndUse(String wsdlURL)
          Returns the binding style (rpc or document) and the operation use (encoded or literal) of the web service, separated with the "#" character.
static ParsedWSDLDefinition parseWSDLwithAxis(String wsdlURL, boolean Axis2Enabled, boolean Axis1Enabled)
          Returns a ParsedWSDLDefinition after a successful parsing of a SOAP web service.
static boolean pingURL(String endpoint)
          Pings a url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDLParser

public WSDLParser()
Method Detail

parseWSDLwithAxis

public static ParsedWSDLDefinition parseWSDLwithAxis(String wsdlURL,
                                                     boolean Axis2Enabled,
                                                     boolean Axis1Enabled)
Returns a ParsedWSDLDefinition after a successful parsing of a SOAP web service. This method checks first if the web service is online, and then performs the parsing.

Parameters:
wsdlURL - the url of the SOAP web service
Axis2Enabled - a boolean indicating if the Axis2 framework should be enabled
Axis1Enabled - a boolean indicating if the Axis1 framework should be enabled
Returns:
the ParsedWSDLDefinition object containing all web service information
See Also:
ParsedWSDLDefinition

getWSDLStyleAndUse

public static String getWSDLStyleAndUse(String wsdlURL)
Returns the binding style (rpc or document) and the operation use (encoded or literal) of the web service, separated with the "#" character.

Parameters:
wsdlURL - the url of the SOAP web service
Returns:
String containing the binding style and the operation use of the web service

getDocumentation

public static String getDocumentation(String wsdlURL)
Returns documentation of a web service

Parameters:
wsdlURL - the url of the SOAP web service
Returns:
String containing the documentation of the web service

cloneAllParsedComplexandNativeObjects

public static void cloneAllParsedComplexandNativeObjects(ParsedWSDLDefinition theDefinition)

fixTheParserPaths

public static void fixTheParserPaths(ParsedWSDLDefinition theDefinition)

pingURL

public static boolean pingURL(String endpoint)
Pings a url

Parameters:
endpoint - the url that is to be pinged
Returns:
a boolean indicating if the url is pinged or not


Copyright © 2014 universAAL Consortium. All Rights Reserved.