Class: XDS::MTOMXopRequest
- Inherits:
-
XdsRequest
- Object
- XdsRequest
- XDS::MTOMXopRequest
- Defined in:
- lib/xds/mtom_xop_request.rb
Direct Known Subclasses
ProvideAndRegisterDocumentSetBXop, RetrieveDocumentSetRequest
Instance Attribute Summary
Attributes inherited from XdsRequest
#endpoint_uri, #header, #proxy_host, #proxy_port
Instance Method Summary collapse
Methods inherited from XdsRequest
#initialize, #to_soap, #to_soap_body
Constructor Details
This class inherits a constructor from XDS::XdsRequest
Instance Method Details
#execute ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/xds/mtom_xop_request.rb', line 4 def execute client = create_client parts = get_parts.to_java(Part) post = PostMethod.new(endpoint_uri) ent = XdsRequestEntity.new(parts, post.get_params) ent.type="application/xop+xml" ent.start=parts[0].id ent.start_info="application/soap+xml" ent.action=@header.action post.set_request_entity(ent) post.content_chunked=true client.executeMethod(post) post end |
#get_parts ⇒ Object
22 23 24 |
# File 'lib/xds/mtom_xop_request.rb', line 22 def get_parts raise "Impement me" end |