| java.lang.Object org.openlaszlo.remote.json.soap.WSDLParser
WSDLParser | public class WSDLParser (Code) | | WSDL parser to obtain a SOAP service object.
|
Method Summary | |
void | bindMessage(LZSOAPMessage soapMessage, Element mesgElement, String tag) | boolean | doesPortSupportSOAP(Element port) Check to see if port supports SOAP.
Parameters: port - port to check SOAP support. | Element | findElementByName(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. | Element | findElementByName(NodeList list, String name) Find element by name attribute.
Parameters: list - node list. Parameters: name - name value to match. | Element | findMessageElement(String name) Find message element.
Parameters: name - name of message to find. | Element | findPortTypeElement(String name) Find portType element.
Parameters: name - name of portType element to find. | Element | findPortTypeOperationElement(NodeList portTypeOpList, String opname, String input, String output) Find a particular portType operation element based on name. | Element | findSchemaElement(String name) Find schema element.
Parameters: name - name of schema element to find. | Element | findServiceElement(String name) Find service element.
Parameters: name - name of service element to find. | Element | getBindingElement(Element port) Get binding element specified by the port's binding attribute.
Parameters: port - port element to get binding. | Element | getElementByAttributeNS(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. | String | getEndpointAddress(Element port) Get the <soap:address .../> location attribute.
Parameters: port - port element to get endpoint address from. | LZSOAPMessage | getMessage(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. | Set | getPartSet(String nmtokens) Get list of message parts.
Parameters: nmtokens - name tokens. | NodeList | getSchema() Get the namespace for the schema. | boolean | isDocumentLiteralWrapped(LZSOAPOperation op) Check to see if operation is a document/literal wrapped operation.
Parameters: op - check to see if operation is document/literal wrapped. | boolean | isRequestResponseOperation(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. | boolean | isSOAPHTTPTransport(String transport) Check to see if SOAP transport for binding is supported. | public static void | main(String[] args) | public static LZSOAPService | parse(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 LZSOAPService | parse(String wsdl, InputSource is) Entry point method. | void | parseOperations(LZSOAPService service, Element binding, String defaultStyle) Parse SOAP operations and add them to service object. | LZSOAPService | parseWSDL(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. | void | setNamespaces() |
URIS_SOAP_HTTP | final public static String[] URIS_SOAP_HTTP(Code) | | |
mNamespaceURI_SCHEMA_XSD | public String mNamespaceURI_SCHEMA_XSD(Code) | | |
mNamespaceURI_SOAP_ENC | public String mNamespaceURI_SOAP_ENC(Code) | | |
mNamespaceURI_WSDL_SOAP | public String mNamespaceURI_WSDL_SOAP(Code) | | |
mQNameOperationInput | public QName mQNameOperationInput(Code) | | |
mQNameOperationOutput | public QName mQNameOperationOutput(Code) | | |
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. |
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
|
|
|