Class: SOAP::SOAPEnvelope
- Inherits:
-
XSD::NSDBase
- Object
- XSD::NSDBase
- SOAP::SOAPEnvelope
- Includes:
- SOAPCompoundtype, SOAPEnvelopeElement
- Defined in:
- lib/soap/element.rb
Constant Summary
Constants included from SOAP
AttrActor, AttrActorName, AttrArrayType, AttrArrayTypeName, AttrEncodingStyle, AttrEncodingStyleName, AttrMustUnderstand, AttrMustUnderstandName, AttrOffset, AttrOffsetName, AttrPosition, AttrPositionName, AttrRoot, AttrRootName, Base64Literal, Charset, EleBody, EleBodyName, EleEnvelope, EleEnvelopeName, EleFault, EleFaultActor, EleFaultActorName, EleFaultCode, EleFaultCodeName, EleFaultDetail, EleFaultDetailName, EleFaultName, EleFaultString, EleFaultStringName, EleHeader, EleHeaderName, EncodingNamespace, EnvelopeNamespace, LiteralNamespace, MediaType, NS, NextActor, PropertyName, RPCRouter, RPCServerException, RPCUtils, SOAPNamespaceTag, SOAPProxy, TypeMap, VERSION, ValueArray, ValueArrayName, XSDNamespaceTag, XSINamespaceTag
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#external_content ⇒ Object
readonly
Returns the value of attribute external_content.
-
#header ⇒ Object
Returns the value of attribute header.
Attributes included from SOAPCompoundtype
Attributes included from SOAPType
#definedtype, #elename, #encodingstyle, #extraattr, #id, #parent, #position, #precedents, #root
Attributes inherited from XSD::NSDBase
Instance Method Summary collapse
- #encode(generator, ns, attrs = {}) {|@header| ... } ⇒ Object
-
#initialize(header = nil, body = nil) ⇒ SOAPEnvelope
constructor
A new instance of SOAPEnvelope.
- #to_ary ⇒ Object
Methods included from SOAPType
Methods inherited from XSD::NSDBase
Constructor Details
#initialize(header = nil, body = nil) ⇒ SOAPEnvelope
Returns a new instance of SOAPEnvelope.
237 238 239 240 241 242 243 244 245 246 247 |
# File 'lib/soap/element.rb', line 237 def initialize(header = nil, body = nil) super() @type = nil @elename = EleEnvelopeName @encodingstyle = nil @header = header @body = body @external_content = {} header.parent = self if header body.parent = self if body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
234 235 236 |
# File 'lib/soap/element.rb', line 234 def body @body end |
#external_content ⇒ Object (readonly)
Returns the value of attribute external_content.
235 236 237 |
# File 'lib/soap/element.rb', line 235 def external_content @external_content end |
#header ⇒ Object
Returns the value of attribute header.
233 234 235 |
# File 'lib/soap/element.rb', line 233 def header @header end |
Instance Method Details
#encode(generator, ns, attrs = {}) {|@header| ... } ⇒ Object
259 260 261 262 263 264 265 266 |
# File 'lib/soap/element.rb', line 259 def encode(generator, ns, attrs = {}) SOAPGenerator.assign_ns(attrs, ns, elename.namespace, SOAPNamespaceTag) name = ns.name(@elename) generator.encode_tag(name, attrs) yield(@header) if @header and @header.encode? yield(@body) generator.encode_tag_end(name, true) end |
#to_ary ⇒ Object
268 269 270 |
# File 'lib/soap/element.rb', line 268 def to_ary [header, body] end |