|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.protocol.http.util.WSDLHelper
For now I use DOM for WSDLHelper, but it would be more efficient to use JAXB to generate an object model for WSDL and use it to perform serialization and deserialization. It also makes it easier to traverse the WSDL to get necessary information.
Created on: Jun 3, 2003
Field Summary | |
protected HashMap |
ACTIONS
|
String |
BINDNAME
|
protected HttpURLConnection |
CONN
|
protected String |
SOAPBINDING
|
protected Object[] |
SOAPOPS
|
protected org.w3c.dom.Document |
WSDLDOC
|
protected URL |
WSDLURL
-------------------------------------------- The members used by the class to do its work -------------------------------------------- |
Constructor Summary | |
WSDLHelper(String url)
Default constructor takes a string URL |
Method Summary | |
protected void |
buildDocument()
Method is used internally to parse the InputStream and build the document using javax.xml.parser API. |
protected void |
close()
We try to close the connection to make sure it doesn't hang around. |
protected void |
connect()
Method is used internally to connect to the URL. |
String |
getBinding()
Returns the binding point for the webservice. |
Object[] |
getOperations()
Look at the bindings with soap operations and get the soap operations. |
String |
getSoapAction(String key)
Return the soap action matching the operation name. |
Object[] |
getSOAPBindings()
Method will look at the binding nodes and see if the first child is a soap:binding. |
URL |
getURL()
Returns the URL |
String[] |
getWebMethods()
Get a list of the web methods as a string array. |
org.w3c.dom.Document |
getWSDLDocument()
Get the wsdl document. |
static void |
main(String[] args)
Simple test for the class uses bidbuy.wsdl from Apache's soap driver examples. |
void |
parse()
Call this method to retrieve the WSDL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected URL WSDLURL
protected HttpURLConnection CONN
protected org.w3c.dom.Document WSDLDOC
protected String SOAPBINDING
public String BINDNAME
protected Object[] SOAPOPS
protected HashMap ACTIONS
Constructor Detail |
public WSDLHelper(String url) throws MalformedURLException
Method Detail |
public URL getURL()
public String getBinding()
protected void connect() throws IOException
IOException
protected void close()
protected void buildDocument() throws javax.xml.parsers.ParserConfigurationException, IOException, org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
IOException
org.xml.sax.SAXException
public void parse() throws WSDLException
WSDLException
public String[] getWebMethods()
public String getSoapAction(String key)
public org.w3c.dom.Document getWSDLDocument()
public Object[] getSOAPBindings()
public Object[] getOperations()
public static void main(String[] args)
args
-
|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |