Java Doc for WSDLParser.java in  » Ajax » Laszlo-4.0.10 » org » openlaszlo » remote » json » soap » 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 » Ajax » Laszlo 4.0.10 » org.openlaszlo.remote.json.soap 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openlaszlo.remote.json.soap.WSDLParser

WSDLParser
public class WSDLParser (Code)
WSDL parser to obtain a SOAP service object.


Field Summary
final public static  String[]URIS_SOAP_HTTP
    
static  DocumentBuildermBuilder
     Static document builder.
 HashMapmComplexTypeMap
    
 ElementmDefinitions
     WSDL root element.
public  StringmNamespaceURI_SCHEMA_XSD
    
public  StringmNamespaceURI_SOAP_ENC
    
public  StringmNamespaceURI_WSDL
    
public  StringmNamespaceURI_WSDL_SOAP
    
public  QNamemQNameOperationInput
    
public  QNamemQNameOperationOutput
    
public  StringmTargetNamespace
    


Method Summary
 voidbindMessage(LZSOAPMessage soapMessage, Element mesgElement, String tag)
    
 booleandoesPortSupportSOAP(Element port)
     Check to see if port supports SOAP.
Parameters:
  port - port to check SOAP support.
 ElementfindElementByName(String ns, Element owner, String tag, String name)
     Find element by name attribute.
Parameters:
  ns - namespace.
Parameters:
  owner - owner element.
Parameters:
  tag - tag to search on.
Parameters:
  name - name to match.
 ElementfindElementByName(NodeList list, String name)
     Find element by name attribute.
Parameters:
  list - node list.
Parameters:
  name - name value to match.
 ElementfindMessageElement(String name)
     Find message element.
Parameters:
  name - name of message to find.
 ElementfindPortTypeElement(String name)
     Find portType element.
Parameters:
  name - name of portType element to find.
 ElementfindPortTypeOperationElement(NodeList portTypeOpList, String opname, String input, String output)
     Find a particular portType operation element based on name.
 ElementfindSchemaElement(String name)
     Find schema element.
Parameters:
  name - name of schema element to find.
 ElementfindServiceElement(String name)
     Find service element.
Parameters:
  name - name of service element to find.
 ElementgetBindingElement(Element port)
     Get binding element specified by the port's binding attribute.
Parameters:
  port - port element to get binding.
 ElementgetElementByAttributeNS(String ns, String elementName, String attrName, QName attrValue)
     Get an element based on its attribute name.
Parameters:
  ns - namespace.
Parameters:
  elementName - name of element to search.
Parameters:
  attrName - name of attribute to match.
Parameters:
  attrValue - value of attribute to match.
 StringgetEndpointAddress(Element port)
     Get the <soap:address .../> location attribute.
Parameters:
  port - port element to get endpoint address from.
 LZSOAPMessagegetMessage(Element bindOp, Element portTypeOp, String tag, String appendName)
     Parse message for input, output from portType operation.
Parameters:
  bindOp - operation element in binding
Parameters:
  portTypeOp - operation element in portType.
Parameters:
  tag - one of input, output.
Parameters:
  appendName - string to append to create implicit operation type nameif element has not explicitly declared it.
 SetgetPartSet(String nmtokens)
     Get list of message parts.
Parameters:
  nmtokens - name tokens.
 NodeListgetSchema()
     Get the namespace for the schema.
 booleanisDocumentLiteralWrapped(LZSOAPOperation op)
     Check to see if operation is a document/literal wrapped operation.
Parameters:
  op - check to see if operation is document/literal wrapped.
 booleanisRequestResponseOperation(Element op)
     Check to see if portType operation is request-response operation, since we currently have no way of supporting one-way, solicit-response, notification operations.
 booleanisSOAPHTTPTransport(String transport)
     Check to see if SOAP transport for binding is supported.
public static  voidmain(String[] args)
    
public static  LZSOAPServiceparse(String wsdl, InputSource is, String serviceName, String servicePort)
     Entry point method.
Parameters:
  wsdl - WSDL URL
Parameters:
  is -
Parameters:
  serviceName - can be null.
Parameters:
  servicePort - can be null.
public static  LZSOAPServiceparse(String wsdl, InputSource is)
     Entry point method.
 voidparseOperations(LZSOAPService service, Element binding, String defaultStyle)
     Parse SOAP operations and add them to service object.
 LZSOAPServiceparseWSDL(String wsdl, InputSource is, String serviceName, String servicePort)
     Parse WDSL file
Parameters:
  wsdl - WSDL URL
Parameters:
  is - WSDL input source.
Parameters:
  serviceName - name of service.
 voidsetNamespaces()
    

Field Detail
URIS_SOAP_HTTP
final public static String[] URIS_SOAP_HTTP(Code)



mBuilder
static DocumentBuilder mBuilder(Code)
Static document builder.



mComplexTypeMap
HashMap mComplexTypeMap(Code)



mDefinitions
Element mDefinitions(Code)
WSDL root element.



mNamespaceURI_SCHEMA_XSD
public String mNamespaceURI_SCHEMA_XSD(Code)



mNamespaceURI_SOAP_ENC
public String mNamespaceURI_SOAP_ENC(Code)



mNamespaceURI_WSDL
public String mNamespaceURI_WSDL(Code)



mNamespaceURI_WSDL_SOAP
public String mNamespaceURI_WSDL_SOAP(Code)



mQNameOperationInput
public QName mQNameOperationInput(Code)



mQNameOperationOutput
public QName mQNameOperationOutput(Code)



mTargetNamespace
public String mTargetNamespace(Code)





Method Detail
bindMessage
void bindMessage(LZSOAPMessage soapMessage, Element mesgElement, String tag) throws WSDLException(Code)

Parameters:
  soapMessage -
Parameters:
  mesgElement -
Parameters:
  tag - one of input or output



doesPortSupportSOAP
boolean doesPortSupportSOAP(Element port)(Code)
Check to see if port supports SOAP.
Parameters:
  port - port to check SOAP support. true if port supports SOAP, else false.



findElementByName
Element findElementByName(String ns, Element owner, String tag, String name)(Code)
Find element by name attribute.
Parameters:
  ns - namespace.
Parameters:
  owner - owner element.
Parameters:
  tag - tag to search on.
Parameters:
  name - name to match. found element.



findElementByName
Element findElementByName(NodeList list, String name)(Code)
Find element by name attribute.
Parameters:
  list - node list.
Parameters:
  name - name value to match. found element.



findMessageElement
Element findMessageElement(String name)(Code)
Find message element.
Parameters:
  name - name of message to find. found message element, else null.



findPortTypeElement
Element findPortTypeElement(String name)(Code)
Find portType element.
Parameters:
  name - name of portType element to find. matched portType element or null, if none found.



findPortTypeOperationElement
Element findPortTypeOperationElement(NodeList portTypeOpList, String opname, String input, String output)(Code)
Find a particular portType operation element based on name.
Parameters:
  portTypeOpList - node list of portType operations.
Parameters:
  opname - operation name to find.
Parameters:
  input - name of input parameter
Parameters:
  output - name of output parameter portType operation element if found, else null.



findSchemaElement
Element findSchemaElement(String name)(Code)
Find schema element.
Parameters:
  name - name of schema element to find. found schema element, else null.



findServiceElement
Element findServiceElement(String name)(Code)
Find service element.
Parameters:
  name - name of service element to find. found service element, else null.



getBindingElement
Element getBindingElement(Element port)(Code)
Get binding element specified by the port's binding attribute.
Parameters:
  port - port element to get binding. binding element.



getElementByAttributeNS
Element getElementByAttributeNS(String ns, String elementName, String attrName, QName attrValue)(Code)
Get an element based on its attribute name.
Parameters:
  ns - namespace.
Parameters:
  elementName - name of element to search.
Parameters:
  attrName - name of attribute to match.
Parameters:
  attrValue - value of attribute to match. element or null, if none found with elementName.



getEndpointAddress
String getEndpointAddress(Element port)(Code)
Get the <soap:address .../> location attribute.
Parameters:
  port - port element to get endpoint address from. endpoint address string.



getMessage
LZSOAPMessage getMessage(Element bindOp, Element portTypeOp, String tag, String appendName) throws WSDLException(Code)
Parse message for input, output from portType operation.
Parameters:
  bindOp - operation element in binding
Parameters:
  portTypeOp - operation element in portType.
Parameters:
  tag - one of input, output.
Parameters:
  appendName - string to append to create implicit operation type nameif element has not explicitly declared it. a soap message object.



getPartSet
Set getPartSet(String nmtokens)(Code)
Get list of message parts.
Parameters:
  nmtokens - name tokens. set part names.



getSchema
NodeList getSchema()(Code)
Get the namespace for the schema. target namespace for schema.



isDocumentLiteralWrapped
boolean isDocumentLiteralWrapped(LZSOAPOperation op)(Code)
Check to see if operation is a document/literal wrapped operation.
Parameters:
  op - check to see if operation is document/literal wrapped. true if it's a document/literal wrapped operation, else false.



isRequestResponseOperation
boolean isRequestResponseOperation(Element op)(Code)
Check to see if portType operation is request-response operation, since we currently have no way of supporting one-way, solicit-response, notification operations.
Parameters:
  op - port Type operation element.



isSOAPHTTPTransport
boolean isSOAPHTTPTransport(String transport)(Code)
Check to see if SOAP transport for binding is supported. Support only HTTP for now.
Parameters:
  transport - transport string. true if SOAP transport is supported, else false.



main
public static void main(String[] args)(Code)



parse
public static LZSOAPService parse(String wsdl, InputSource is, String serviceName, String servicePort) throws WSDLException, ServiceException(Code)
Entry point method.
Parameters:
  wsdl - WSDL URL
Parameters:
  is -
Parameters:
  serviceName - can be null.
Parameters:
  servicePort - can be null. LZSOAPService object.
exception:
  WSDLException - if there was a problem with the WSDL.
exception:
  ServiceException - if there was a problem creating LZSOAPService.



parse
public static LZSOAPService parse(String wsdl, InputSource is) throws WSDLException, ServiceException(Code)
Entry point method. Same as calling parse(is, null, null).
Parameters:
  wsdl - WSDL URL
Parameters:
  is - LZSOAPService object.
exception:
  WSDLException - if there was a problem with the WSDL.
exception:
  ServiceException - if there was a problem creating LZSOAPService.



parseOperations
void parseOperations(LZSOAPService service, Element binding, String defaultStyle) throws WSDLException(Code)
Parse SOAP operations and add them to service object.
Parameters:
  service - SOAP service object to add operations.
Parameters:
  binding - WSDL SOAP binding element.



parseWSDL
LZSOAPService parseWSDL(String wsdl, InputSource is, String serviceName, String servicePort) throws WSDLException, ServiceException(Code)
Parse WDSL file
Parameters:
  wsdl - WSDL URL
Parameters:
  is - WSDL input source.
Parameters:
  serviceName - name of service. If null, use first service element encountered.
Parameters:
  servicePort - name of port. if null, use first SOAP port elementencountered.. LZSOAPService object.
exception:
  WSDLException - if there was a problem with the WSDL.
exception:
  ServiceException - if there was a problem creating LZSOAPService.



setNamespaces
void setNamespaces()(Code)
Set namespaces: mNamespaceURI_WSDL, mNamespaceURI_WSDL_SOAP, mNamespaceURI_SCHEMA_XSD, mQNameOperationInput, mQNameOperationOutput



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.