Java Doc for XsdBasedSoap11Wsdl4jDefinitionBuilder.java in  » Web-Services » spring-ws-1.0.0 » org » springframework » ws » wsdl » wsdl11 » builder » 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 » Web Services » spring ws 1.0.0 » org.springframework.ws.wsdl.wsdl11.builder 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.springframework.ws.wsdl.wsdl11.builder.AbstractWsdl4jDefinitionBuilder
      org.springframework.ws.wsdl.wsdl11.builder.AbstractBindingWsdl4jDefinitionBuilder
         org.springframework.ws.wsdl.wsdl11.builder.AbstractSoap11Wsdl4jDefinitionBuilder
            org.springframework.ws.wsdl.wsdl11.builder.XsdBasedSoap11Wsdl4jDefinitionBuilder

XsdBasedSoap11Wsdl4jDefinitionBuilder
public class XsdBasedSoap11Wsdl4jDefinitionBuilder extends AbstractSoap11Wsdl4jDefinitionBuilder implements InitializingBean(Code)
Builds a WsdlDefinition with a SOAP 1.1 binding based on an XSD schema. This builder iterates over all elements found in the schema, and creates a message for those elements that end with the request or response suffix. It combines these messages into operations, and builds a portType based on the operations. The schema itself is inlined in a types block.

Requires the schema and portTypeName properties to be set.
author:
   Arjen Poutsma
See Also:   XsdBasedSoap11Wsdl4jDefinitionBuilder.setSchema(org.springframework.core.io.Resource)
See Also:   XsdBasedSoap11Wsdl4jDefinitionBuilder.setPortTypeName(String)
See Also:   XsdBasedSoap11Wsdl4jDefinitionBuilder.setRequestSuffix(String)
See Also:   XsdBasedSoap11Wsdl4jDefinitionBuilder.setResponseSuffix(String)
since:
   1.0.0



Field Summary
final public static  StringDEFAULT_FAULT_SUFFIX
     The default suffix used to detect fault elements in the schema.
final public static  StringDEFAULT_PREFIX
     The default prefix used to register the target namespace in the WSDL.
final public static  StringDEFAULT_REQUEST_SUFFIX
     The default suffix used to detect request elements in the schema.
final public static  StringDEFAULT_RESPONSE_SUFFIX
     The default suffix used to detect response elements in the schema.
final public static  StringDEFAULT_SCHEMA_PREFIX
     The default prefix used to register the schema namespace in the WSDL.
final public static  StringSERVICE_SUFFIX
     The suffix used to create a service name from a port type name.


Method Summary
final public  voidafterPropertiesSet()
    
protected  voidbuildImports(Definition definition)
     Does nothing.
protected  voidbuildMessages(Definition definition)
     Creates messages for each element found in the schema for which isRequestMessage(), isResponseMessage(), or isFaultMessage() is true.
protected  voidbuildPortTypes(Definition definition)
    
protected  voidbuildTypes(Definition definition)
     Creates a Types object that is populated with the types found in the schema.
protected  QNamegetFaultMessageName(QName requestMessageName)
     Given an request message name, return the corresponding fault message name.
protected  QNamegetResponseMessageName(QName requestMessageName)
     Given an request message name, return the corresponding response message name.
protected  booleanisFaultMessage(QName name)
     Indicates whether the given name should be included as Message in the definition.
protected  booleanisRequestMessage(QName name)
     Indicates whether the given name name should be included as request Message in the definition.
protected  booleanisResponseMessage(QName name)
     Indicates whether the given name should be included as Message in the definition.
protected  voidpopulateDefinition(Definition definition)
     Adds the target namespace and schema namespace to the definition.
protected  voidpopulateMessage(Message message, Element element)
     Called after the Message has been created.
protected  voidpopulateOperation(Operation operation, Message requestMessage, Message responseMessage)
     Called after the Operation has been created.
protected  voidpopulatePart(Part part, QName elementName)
     Called after the Part has been created.
protected  voidpopulatePortType(PortType portType)
     Called after the PortType has been created.
protected  voidpopulateService(Service service)
     Sets the name of the service to the name of the port type, with "Service" appended to it.
public  voidsetFaultSuffix(String faultSuffix)
     Sets the suffix used to detect fault elements in the schema.
public  voidsetPortTypeName(String portTypeName)
     Sets the port type name used for this definition.
public  voidsetPrefix(String prefix)
     Sets the prefix used to declare the target namespace.
public  voidsetRequestSuffix(String requestSuffix)
     Sets the suffix used to detect request elements in the schema.
public  voidsetResponseSuffix(String responseSuffix)
     Sets the suffix used to detect response elements in the schema.
public  voidsetSchema(Resource schema)
     Sets the XSD schema to use for generating the WSDL.
public  voidsetSchemaPrefix(String schemaPrefix)
     Sets the prefix used to declare the schema target namespace.
public  voidsetTargetNamespace(String targetNamespace)
     Sets the target namespace used for this definition.

Field Detail
DEFAULT_FAULT_SUFFIX
final public static String DEFAULT_FAULT_SUFFIX(Code)
The default suffix used to detect fault elements in the schema.



DEFAULT_PREFIX
final public static String DEFAULT_PREFIX(Code)
The default prefix used to register the target namespace in the WSDL.



DEFAULT_REQUEST_SUFFIX
final public static String DEFAULT_REQUEST_SUFFIX(Code)
The default suffix used to detect request elements in the schema.



DEFAULT_RESPONSE_SUFFIX
final public static String DEFAULT_RESPONSE_SUFFIX(Code)
The default suffix used to detect response elements in the schema.



DEFAULT_SCHEMA_PREFIX
final public static String DEFAULT_SCHEMA_PREFIX(Code)
The default prefix used to register the schema namespace in the WSDL.



SERVICE_SUFFIX
final public static String SERVICE_SUFFIX(Code)
The suffix used to create a service name from a port type name.





Method Detail
afterPropertiesSet
final public void afterPropertiesSet() throws IOException, ParserConfigurationException, SAXException(Code)



buildImports
protected void buildImports(Definition definition) throws WSDLException(Code)
Does nothing.



buildMessages
protected void buildMessages(Definition definition) throws WSDLException(Code)
Creates messages for each element found in the schema for which isRequestMessage(), isResponseMessage(), or isFaultMessage() is true.
Parameters:
  definition - the WSDL4J Definition
throws:
  WSDLException - in case of errors
See Also:   XsdBasedSoap11Wsdl4jDefinitionBuilder.isRequestMessage(javax.xml.namespace.QName)
See Also:   XsdBasedSoap11Wsdl4jDefinitionBuilder.isResponseMessage(javax.xml.namespace.QName)
See Also:   XsdBasedSoap11Wsdl4jDefinitionBuilder.isFaultMessage(javax.xml.namespace.QName)



buildPortTypes
protected void buildPortTypes(Definition definition) throws WSDLException(Code)



buildTypes
protected void buildTypes(Definition definition) throws WSDLException(Code)
Creates a Types object that is populated with the types found in the schema.
Parameters:
  definition - the WSDL4J Definition
throws:
  WSDLException - in case of errors



getFaultMessageName
protected QName getFaultMessageName(QName requestMessageName)(Code)
Given an request message name, return the corresponding fault message name.

Default implementation removes the request suffix, and appends the fault suffix.
Parameters:
  requestMessageName - the name of the request message the name of the corresponding response message, or null




getResponseMessageName
protected QName getResponseMessageName(QName requestMessageName)(Code)
Given an request message name, return the corresponding response message name.

Default implementation removes the request suffix, and appends the response suffix.
Parameters:
  requestMessageName - the name of the request message the name of the corresponding response message, or null




isFaultMessage
protected boolean isFaultMessage(QName name)(Code)
Indicates whether the given name should be included as Message in the definition. Default implementation checks whether the local part ends with the fault suffix.
Parameters:
  name - the name of the element elligable for being a message true if to be included as message; false otherwise
See Also:   XsdBasedSoap11Wsdl4jDefinitionBuilder.setFaultSuffix(String)



isRequestMessage
protected boolean isRequestMessage(QName name)(Code)
Indicates whether the given name name should be included as request Message in the definition. Default implementation checks whether the local part ends with the request suffix.
Parameters:
  name - the name of the element elligable for being a message true if to be included as message; false otherwise
See Also:   XsdBasedSoap11Wsdl4jDefinitionBuilder.setRequestSuffix(String)



isResponseMessage
protected boolean isResponseMessage(QName name)(Code)
Indicates whether the given name should be included as Message in the definition. Default implementation checks whether the local part ends with the response suffix.
Parameters:
  name - the name of the element elligable for being a message true if to be included as message; false otherwise
See Also:   XsdBasedSoap11Wsdl4jDefinitionBuilder.setResponseSuffix(String)



populateDefinition
protected void populateDefinition(Definition definition) throws WSDLException(Code)
Adds the target namespace and schema namespace to the definition.



populateMessage
protected void populateMessage(Message message, Element element)(Code)
Called after the Message has been created.

Default implementation sets the name of the message to the element name.
Parameters:
  message - the WSDL4J Message
Parameters:
  element - the element
throws:
  WSDLException - in case of errors




populateOperation
protected void populateOperation(Operation operation, Message requestMessage, Message responseMessage) throws WSDLException(Code)
Called after the Operation has been created.

Default implementation sets the name of the operation to name of the messages, without suffix.
Parameters:
  operation - the WSDL4J Operation
Parameters:
  requestMessage - the WSDL4J request Message
Parameters:
  responseMessage - the WSDL4J response Message
throws:
  WSDLException - in case of errors
See Also:   XsdBasedSoap11Wsdl4jDefinitionBuilder.setPortTypeName(String)




populatePart
protected void populatePart(Part part, QName elementName)(Code)
Called after the Part has been created.

Default implementation sets the element name of the part.
Parameters:
  part - the WSDL4J Part
Parameters:
  elementName - the elementName
throws:
  WSDLException - in case of errors
See Also:   Part.setElementName(javax.xml.namespace.QName)




populatePortType
protected void populatePortType(PortType portType) throws WSDLException(Code)
Called after the PortType has been created.

Default implementation sets the name of the port type to the defined value.
Parameters:
  portType - the WSDL4J PortType
throws:
  WSDLException - in case of errors
See Also:   XsdBasedSoap11Wsdl4jDefinitionBuilder.setPortTypeName(String)




populateService
protected void populateService(Service service) throws WSDLException(Code)
Sets the name of the service to the name of the port type, with "Service" appended to it.



setFaultSuffix
public void setFaultSuffix(String faultSuffix)(Code)
Sets the suffix used to detect fault elements in the schema.
See Also:   XsdBasedSoap11Wsdl4jDefinitionBuilder.DEFAULT_FAULT_SUFFIX



setPortTypeName
public void setPortTypeName(String portTypeName)(Code)
Sets the port type name used for this definition. Required.



setPrefix
public void setPrefix(String prefix)(Code)
Sets the prefix used to declare the target namespace.
See Also:   XsdBasedSoap11Wsdl4jDefinitionBuilder.DEFAULT_PREFIX



setRequestSuffix
public void setRequestSuffix(String requestSuffix)(Code)
Sets the suffix used to detect request elements in the schema.
See Also:   XsdBasedSoap11Wsdl4jDefinitionBuilder.DEFAULT_REQUEST_SUFFIX



setResponseSuffix
public void setResponseSuffix(String responseSuffix)(Code)
Sets the suffix used to detect response elements in the schema.
See Also:   XsdBasedSoap11Wsdl4jDefinitionBuilder.DEFAULT_RESPONSE_SUFFIX



setSchema
public void setSchema(Resource schema)(Code)
Sets the XSD schema to use for generating the WSDL.



setSchemaPrefix
public void setSchemaPrefix(String schemaPrefix)(Code)
Sets the prefix used to declare the schema target namespace.
See Also:   XsdBasedSoap11Wsdl4jDefinitionBuilder.DEFAULT_SCHEMA_PREFIX



setTargetNamespace
public void setTargetNamespace(String targetNamespace)(Code)
Sets the target namespace used for this definition.



Fields inherited from org.springframework.ws.wsdl.wsdl11.builder.AbstractSoap11Wsdl4jDefinitionBuilder
final public static String DEFAULT_TRANSPORT_URI(Code)(Java Doc)

Methods inherited from org.springframework.ws.wsdl.wsdl11.builder.AbstractSoap11Wsdl4jDefinitionBuilder
protected ExtensibilityElement createSoapExtension(Class parentType, String localName) throws WSDLException(Code)(Java Doc)
protected void populateBinding(Binding binding, PortType portType) throws WSDLException(Code)(Java Doc)
protected void populateBindingFault(BindingFault bindingFault, Fault fault) throws WSDLException(Code)(Java Doc)
protected void populateBindingInput(BindingInput bindingInput, Input input) throws WSDLException(Code)(Java Doc)
protected void populateBindingOperation(BindingOperation bindingOperation, Operation operation) throws WSDLException(Code)(Java Doc)
protected void populateBindingOutput(BindingOutput bindingOutput, Output output) throws WSDLException(Code)(Java Doc)
protected void populateDefinition(Definition definition) throws WSDLException(Code)(Java Doc)
protected void populatePort(Port port, Binding binding) throws WSDLException(Code)(Java Doc)
protected void populateSoapAddress(SOAPAddress soapAddress) throws WSDLException(Code)(Java Doc)
protected void populateSoapBinding(SOAPBinding soapBinding) throws WSDLException(Code)(Java Doc)
protected void populateSoapBody(SOAPBody soapBody) throws WSDLException(Code)(Java Doc)
protected void populateSoapFault(BindingFault bindingFault, SOAPFault soapFault) throws WSDLException(Code)(Java Doc)
protected void populateSoapOperation(SOAPOperation soapOperation) throws WSDLException(Code)(Java Doc)
public void setLocationUri(String locationUri)(Code)(Java Doc)
public void setTransportUri(String transportUri)(Code)(Java Doc)

Methods inherited from org.springframework.ws.wsdl.wsdl11.builder.AbstractBindingWsdl4jDefinitionBuilder
public void buildBindings(Definition definition) throws WSDLException(Code)(Java Doc)
public void buildServices(Definition definition) throws WSDLException(Code)(Java Doc)
protected void populateBinding(Binding binding, PortType portType) throws WSDLException(Code)(Java Doc)
protected void populateBindingFault(BindingFault bindingFault, Fault fault) throws WSDLException(Code)(Java Doc)
protected void populateBindingInput(BindingInput bindingInput, Input input) throws WSDLException(Code)(Java Doc)
protected void populateBindingOperation(BindingOperation bindingOperation, Operation operation) throws WSDLException(Code)(Java Doc)
protected void populateBindingOutput(BindingOutput bindingOutput, Output output) throws WSDLException(Code)(Java Doc)
protected void populatePort(Port port, Binding binding) throws WSDLException(Code)(Java Doc)
protected void populateService(Service service) throws WSDLException(Code)(Java Doc)

Fields inherited from org.springframework.ws.wsdl.wsdl11.builder.AbstractWsdl4jDefinitionBuilder
final protected Log logger(Code)(Java Doc)

Methods inherited from org.springframework.ws.wsdl.wsdl11.builder.AbstractWsdl4jDefinitionBuilder
final public void buildBindings() throws WsdlDefinitionException(Code)(Java Doc)
abstract protected void buildBindings(Definition definition) throws WSDLException(Code)(Java Doc)
final public void buildDefinition() throws WsdlDefinitionException(Code)(Java Doc)
final public void buildImports() throws WsdlDefinitionException(Code)(Java Doc)
abstract protected void buildImports(Definition definition) throws WSDLException(Code)(Java Doc)
final public void buildMessages() throws WsdlDefinitionException(Code)(Java Doc)
abstract protected void buildMessages(Definition definition) throws WSDLException(Code)(Java Doc)
final public void buildPortTypes() throws WsdlDefinitionException(Code)(Java Doc)
abstract protected void buildPortTypes(Definition definition) throws WSDLException(Code)(Java Doc)
final public void buildServices() throws WsdlDefinitionException(Code)(Java Doc)
abstract protected void buildServices(Definition definition) throws WSDLException(Code)(Java Doc)
final public void buildTypes() throws WsdlDefinitionException(Code)(Java Doc)
abstract protected void buildTypes(Definition definition) throws WSDLException(Code)(Java Doc)
protected ExtensibilityElement createExtension(Class parentType, QName elementType) throws WSDLException(Code)(Java Doc)
final public Wsdl11Definition getDefinition() throws WsdlDefinitionException(Code)(Java Doc)
protected void populateDefinition(Definition definition) throws WSDLException(Code)(Java Doc)

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.