Changeset 1814
- Timestamp:
- 05/28/07 22:09:34 (2 years ago)
- Files:
-
- trunk/lib/soap/wsdlDriver.rb (modified) (1 diff)
- trunk/lib/wsdl/operationBinding.rb (modified) (2 diffs)
- trunk/lib/wsdl/soap/methodDefCreator.rb (modified) (1 diff)
- trunk/test/wsdl/oneway/oneway.wsdl (modified) (1 diff)
- trunk/test/wsdl/oneway/test_oneway.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/soap/wsdlDriver.rb
r1775 r1814 103 103 :request_style => op_bind.soapoperation_style, 104 104 :response_style => op_bind.soapoperation_style, 105 :request_use => op_bind. input.soapbody_use,106 :response_use => op_bind. output.soapbody_use,105 :request_use => op_bind.soapbody_use_input, 106 :response_use => op_bind.soapbody_use_output, 107 107 :elementformdefault => false, 108 108 :attributeformdefault => false trunk/lib/wsdl/operationBinding.rb
r1807 r1814 69 69 end 70 70 71 def soapbody_use_input 72 soapbody_use(@input) 73 end 74 75 def soapbody_use_output 76 soapbody_use(@output) 77 end 78 71 79 def soapaction 72 80 if @soapoperation … … 111 119 end 112 120 end 121 122 private 123 124 def soapbody_use(param) 125 param ? param.soapbody_use : nil 126 end 113 127 end 114 128 trunk/lib/wsdl/soap/methodDefCreator.rb
r1807 r1814 110 110 name_as = operation.name 111 111 style = binding.soapoperation_style 112 inputuse = binding. input ? binding.input.soapbody_use : nil113 outputuse = binding. output ? binding.output.soapbody_use : nil112 inputuse = binding.soapbody_use_input 113 outputuse = binding.soapbody_use_output 114 114 if style == :rpc 115 115 qname = binding.soapoperation_name trunk/test/wsdl/oneway/oneway.wsdl
r1785 r1814 6 6 <complexType> 7 7 <sequence> 8 <element name="msg" type="string" />8 <element name="msg" type="string" nillable="true" /> 9 9 </sequence> 10 10 </complexType> trunk/test/wsdl/oneway/test_oneway.rb
r1794 r1814 2 2 require 'soap/rpc/standaloneServer' 3 3 require 'wsdl/soap/wsdl2ruby' 4 require 'soap/wsdlDriver' 4 5 require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') 5 6 … … 92 93 @client.initiate(OnewayProcessRequest.new(nil)) 93 94 end 95 96 def test_wsdl 97 @client = ::SOAP::WSDLDriverFactory.new('oneway.wsdl').create_rpc_driver 98 @client.endpoint_url = "http://localhost:#{Port}/" 99 @client.wiredump_dev = STDERR if $DEBUG 100 # not raised 101 @client.initiate(OnewayProcessRequest.new("msg")) 102 @client.initiate(OnewayProcessRequest.new(nil)) 103 end 94 104 end 95 105