Java Doc for WSDLHelper.java in  » Testing » jakarta-jmeter » org » apache » jmeter » protocol » http » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » jakarta jmeter » org.apache.jmeter.protocol.http.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.jmeter.protocol.http.util.WSDLHelper

WSDLHelper
public class WSDLHelper (Code)
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

author:
   Peter Lin
version:
   $Revision: 596725 $



Field Summary
protected  HashMapACTIONS
    
protected  AuthManagerAUTH
    
public  StringBINDNAME
    
protected  HttpURLConnectionCONN
    
protected  StringSOAPBINDING
    
protected  Object[]SOAPOPS
    
protected  DocumentWSDLDOC
    
protected  URLWSDLURL
    
protected  URLbindingURL
    

Constructor Summary
public  WSDLHelper(String url)
    
public  WSDLHelper(String url, AuthManager auth)
    

Method Summary
protected  voidbuildDocument()
     Method is used internally to parse the InputStream and build the document using javax.xml.parser API.
protected  voidclose()
     We try to close the connection to make sure it doesn't hang around.
protected  voidconnect()
     Method is used internally to connect to the URL.
public  StringgetBinding()
     Returns the binding point for the webservice.
public  StringgetBindingHost()
    
public  StringgetBindingPath()
    
public  intgetBindingPort()
    
public  Object[]getOperations()
     Look at the bindings with soap operations and get the soap operations. Since WSDL may describe multiple bindings and each binding may have multiple soap operations, we iterate through the binding nodes with a first child that is a soap binding.
public  StringgetProtocol()
     Return the protocol from the URL.
public  Object[]getSOAPBindings()
     Method will look at the binding nodes and see if the first child is a soap:binding.
public  StringgetSoapAction(String key)
     Return the soap action matching the operation name.
public  URLgetURL()
    
public  DocumentgetWSDLDocument()
     Get the wsdl document.
public  String[]getWebMethods()
     Get a list of the web methods as a string array.
public static  voidmain(String[] args)
     Simple test for the class uses bidbuy.wsdl from Apache's soap driver examples.
public  voidparse()
     Call this method to retrieve the WSDL.

Field Detail
ACTIONS
protected HashMap ACTIONS(Code)



AUTH
protected AuthManager AUTH(Code)



BINDNAME
public String BINDNAME(Code)



CONN
protected HttpURLConnection CONN(Code)



SOAPBINDING
protected String SOAPBINDING(Code)



SOAPOPS
protected Object[] SOAPOPS(Code)



WSDLDOC
protected Document WSDLDOC(Code)



WSDLURL
protected URL WSDLURL(Code)
-------------------------------------------- The members used by the class to do its work --------------------------------------------



bindingURL
protected URL bindingURL(Code)




Constructor Detail
WSDLHelper
public WSDLHelper(String url) throws MalformedURLException(Code)
Default constructor takes a string URL



WSDLHelper
public WSDLHelper(String url, AuthManager auth) throws MalformedURLException(Code)




Method Detail
buildDocument
protected void buildDocument() throws ParserConfigurationException, IOException, SAXException(Code)
Method is used internally to parse the InputStream and build the document using javax.xml.parser API.



close
protected void close()(Code)
We try to close the connection to make sure it doesn't hang around.



connect
protected void connect() throws IOException(Code)
Method is used internally to connect to the URL. It's protected; therefore external classes should use parse to get the resource at the given location.
throws:
  IOException -



getBinding
public String getBinding()(Code)
Returns the binding point for the webservice. Right now it naively assumes there's only one binding point with numerous soap operations. String



getBindingHost
public String getBindingHost()(Code)
Return the host in the WSDL binding address



getBindingPath
public String getBindingPath()(Code)
Return the path in the WSDL for the binding address



getBindingPort
public int getBindingPort()(Code)
Return the port for the binding address



getOperations
public Object[] getOperations()(Code)
Look at the bindings with soap operations and get the soap operations. Since WSDL may describe multiple bindings and each binding may have multiple soap operations, we iterate through the binding nodes with a first child that is a soap binding. If a WSDL doesn't use the same formatting convention, it is possible we may not get a list of all the soap operations. If that is the case, getSOAPBindings() will need to be changed. I should double check the WSDL spec to see what the official requirement is. Another option is to get all operation nodes and check to see if the first child is a soap:operation. The benefit of not getting all operation nodes is WSDL could contain duplicate operations that are not SOAP methods. If there are a large number of methods and half of them are HTTP operations, getting all operations could slow things down. Node[]



getProtocol
public String getProtocol()(Code)
Return the protocol from the URL. this is needed, so that HTTPS works as expected.



getSOAPBindings
public Object[] getSOAPBindings()(Code)
Method will look at the binding nodes and see if the first child is a soap:binding. If it is, it adds it to an array. Node[]



getSoapAction
public String getSoapAction(String key)(Code)
Return the soap action matching the operation name.



getURL
public URL getURL()(Code)
Returns the URL the URL



getWSDLDocument
public Document getWSDLDocument()(Code)
Get the wsdl document.



getWebMethods
public String[] getWebMethods()(Code)
Get a list of the web methods as a string array.



main
public static void main(String[] args)(Code)
Simple test for the class uses bidbuy.wsdl from Apache's soap driver examples.
Parameters:
  args -



parse
public void parse() throws WSDLException(Code)
Call this method to retrieve the WSDL. This method must be called, otherwise a connection to the URL won't be made and the stream won't be parsed.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.