electric.soap.wsdl
Class SOAPBinding
java.lang.Object
electric.wsdl.Binding
electric.soap.wsdl.SOAPBinding
- All Implemented Interfaces:
- INamed, IQNamed, ISOAPConstants, IWSDLConstants
- Direct Known Subclasses:
- SOAP12Binding
- public class SOAPBinding
- extends Binding
- implements IWSDLConstants, ISOAPConstants
SOAPBinding corresponds to the WSDL elements at
definitions/binding, in the case where there is a soap
extensibility element at definitions/binding/soap:binding.
SOAPBinding is responsible for parsing existing WSDL and
generating new WSDL based on java.lang.reflect.Method
objects.
- Author:
- webMethods
Fields inherited from interface electric.wsdl.IWSDLConstants |
ADDRESS, BINDING, DEFINITIONS, DESCRIPTION, DOCUMENT, DOCUMENTATION, ELEMENT, ENCODED, ENCODING_STYLE, ENDPOINT, FAULT, FAULT_DETAIL, GET, GETPOST, HTTP, INPUT, LITERAL, LOCATION, MESSAGE, METHOD_NAMESPACE, MIME, NAME, NAMESPACE, OPERATION, OUTPUT, PARAMETER_ORDER, PARAMETERS, PART, PORT, PORT_TYPE, POST, RPC, SERVICE, SOAP, SOAP_ACTION, STYLE, TARGET_NAMESPACE, TARGET_NAMESPACE_PREFIX, TNS, TRANSPORT, TYPE, USE, VERB, WSDL_EXTENSION, WSDL_NAMESPACE, WSDL_PREFIX, WSDL_SOAP_NAMESPACE, WSDL_SOAP_PREFIX, WSDL_SOAP11_NAMESPACE, WSDL_SOAP11_PREFIX, WSDL_SOAP12_NAMESPACE, WSDL_SOAP12_PREFIX |
Fields inherited from interface electric.soap.ISOAPConstants |
ACTOR, ASYNC, BODY, DETAIL, ENCODING_STYLE, ENVELOPE, EXCEPTION, FAULT, FAULT_ACTOR, FAULT_CODE, FAULT_STRING, GET_SOAP_ACTOR, GET_SOAP_CODE, HEADER, MUST_UNDERSTAND, NEXT_ACTOR, OPTIMIZED_HEADER, SET_SOAP_ACTOR, SET_SOAP_CODE, SET_SOAP_DETAIL, SOAP_ACTION_HEADER, SOAP_BINDING, SOAP_ENCODING, SOAP_ENCODING_PREFIX, SOAP_ENVELOPE, SOAP_HTTP_TRANSPORT, SOAP_PREFIX, SOAP11_BINDING, SOAP11_ENCODING, SOAP11_ENVELOPE, SOAP12, SOAP12_BINDING, SOAP12_ENCODING, SOAP12_ENVELOPE, SOAP12_HTTP_CONTENT_TYPE, STACKTRACE, TME_PREFIX, UNDERSTOOD, XSD_PREFIX, XSI_PREFIX, XSI_SUFFIX |
Constructor Summary |
SOAPBinding(WSDL wsdl,
java.lang.String targetNamespace,
Element binding,
java.lang.String bindingNamespace)
|
SOAPBinding(WSDL wsdl,
java.lang.String namespace,
java.lang.String name,
MethodDescriptor[] methods,
Context context)
Given a set of Java methods, generate an object corresponding
to a <soap:binding> element and add it to the given WSDL
object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
transport
protected java.lang.String transport
style
protected java.lang.String style
operations
protected SOAPOperation[] operations
optimizations
protected SOAPOptimizations optimizations
bindingNamespace
protected java.lang.String bindingNamespace
SOAPBinding
public SOAPBinding(WSDL wsdl,
java.lang.String targetNamespace,
Element binding,
java.lang.String bindingNamespace)
throws WSDLException,
SchemaException
- Parameters:
wsdl
- targetNamespace
- binding
-
- Throws:
WSDLException
SchemaException
SOAPBinding
public SOAPBinding(WSDL wsdl,
java.lang.String namespace,
java.lang.String name,
MethodDescriptor[] methods,
Context context)
throws WSDLException,
SchemaException
- Given a set of Java methods, generate an object corresponding
to a <soap:binding> element and add it to the given WSDL
object. The context may contain:
-
a "style" property indicating the value of the
soap:Binding/@style attribute ("rpc" or"document")
-
a "namespace" property indicating the value of the
soap:Body/@namespace attribute
-
a "soapAction" property indicating the value of the
soap:Operation/@soapAction attribute. (deprecated)
a "wsdlPersonality" object that implements ISOAPPersonality.
- Parameters:
wsdl
- namespace
- name
- methods
- context
-
- Throws:
WSDLException
SchemaException
toString
public java.lang.String toString()
- Overrides:
toString
in class Binding
getStyle
public java.lang.String getStyle()
setDefaultStyle
public static void setDefaultStyle(java.lang.String defaultStyle)
- change the default style used (rpc or document)
- Parameters:
defaultStyle
-
getDefaultStyle
public static java.lang.String getDefaultStyle()
- Returns:
getTransport
public java.lang.String getTransport()
addSOAPOperation
protected void addSOAPOperation(SOAPOperation operation)
- Parameters:
operation
-
getSOAPOperation
public SOAPOperation getSOAPOperation(Operation operation)
- Parameters:
operation
-
getSOAPOperations
public SOAPOperation[] getSOAPOperations()
getOperations
public IOperation[] getOperations()
- Overrides:
getOperations
in class Binding
getSOAPResultName
public static java.lang.String getSOAPResultName(java.lang.String name)
- Parameters:
name
-
writeWSDL
public Element writeWSDL(Element definitions)
- Overrides:
writeWSDL
in class Binding
- Parameters:
definitions
-
writeWSDLSOAPBinding
protected Element writeWSDLSOAPBinding(Element definitions)
- Parameters:
definitions
-
getOptimizations
public SOAPOptimizations getOptimizations()
getBindingNamespace
public java.lang.String getBindingNamespace()
- Returns:
- the binding namespace.
setBindingNamespace
public void setBindingNamespace(java.lang.String bindingNamespace)
- Parameters:
bindingNamespace
-
setDefaultSOAPPersonality
public static void setDefaultSOAPPersonality(ISOAPPersonality wsdlPersonality)
- Parameters:
wsdlPersonality
-
copyright© 2001-2004 by webMethods All Rights Reserved.