Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1814

Show
Ignore:
Timestamp:
05/28/07 22:09:34 (2 years ago)
Author:
nahi
Message:
  • oneway service support of WSDLDriverFactory. closes #346.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/soap/wsdlDriver.rb

    r1775 r1814  
    103103        :request_style => op_bind.soapoperation_style, 
    104104        :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
    107107        :elementformdefault => false, 
    108108        :attributeformdefault => false 
  • trunk/lib/wsdl/operationBinding.rb

    r1807 r1814  
    6969  end 
    7070 
     71  def soapbody_use_input 
     72    soapbody_use(@input) 
     73  end 
     74 
     75  def soapbody_use_output 
     76    soapbody_use(@output) 
     77  end 
     78 
    7179  def soapaction 
    7280    if @soapoperation 
     
    111119    end 
    112120  end 
     121 
     122private 
     123 
     124  def soapbody_use(param) 
     125    param ? param.soapbody_use : nil 
     126  end 
    113127end 
    114128 
  • trunk/lib/wsdl/soap/methodDefCreator.rb

    r1807 r1814  
    110110    name_as = operation.name 
    111111    style = binding.soapoperation_style 
    112     inputuse = binding.input ? binding.input.soapbody_use : nil 
    113     outputuse = binding.output ? binding.output.soapbody_use : nil 
     112    inputuse = binding.soapbody_use_input 
     113    outputuse = binding.soapbody_use_output 
    114114    if style == :rpc 
    115115      qname = binding.soapoperation_name 
  • trunk/test/wsdl/oneway/oneway.wsdl

    r1785 r1814  
    66        <complexType> 
    77          <sequence> 
    8             <element name="msg" type="string"/> 
     8            <element name="msg" type="string" nillable="true" /> 
    99          </sequence> 
    1010        </complexType> 
  • trunk/test/wsdl/oneway/test_oneway.rb

    r1794 r1814  
    22require 'soap/rpc/standaloneServer' 
    33require 'wsdl/soap/wsdl2ruby' 
     4require 'soap/wsdlDriver' 
    45require File.join(File.dirname(File.expand_path(__FILE__)), '..', '..', 'testutil.rb') 
    56 
     
    9293    @client.initiate(OnewayProcessRequest.new(nil)) 
    9394  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 
    94104end 
    95105