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

Changeset 66

Show
Ignore:
Timestamp:
04/20/01 21:33:37 (8 years ago)
Author:
nakahiro
Message:

Modified SOAPAction interface.

Files:

Legend:

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

    r49 r66  
    5050  end 
    5151 
    52   def send( methodNamespace, methodName, soapString
     52  def send( soapString, soapAction = nil
    5353    begin 
    54       s = sendPOST( methodNamespace, methodName, soapString
     54      s = sendPOST( soapString, soapAction
    5555    rescue PostUnavailableError 
    5656      begin 
    57         s = sendMPOST( methodNamespace, methodName, soapString
     57        s = sendMPOST( soapString, soapAction
    5858      rescue MPostUnavailableError 
    5959        raise HTTPStreamError.new( $! ) 
     
    6464  private 
    6565 
    66   def sendPOST( methodNamespace, methodName, soapString
     66  def sendPOST( soapString, soapAction
    6767    retryNo = NofRetry 
    6868    drv = nil 
     
    7777      raise 
    7878    end 
    79     action = methodNamespace.dup << '#' << methodName 
     79    action = "\"#{ soapAction }\"" 
    8080    requestHeaders = { 'SOAPAction' => action, 'Content-Type' => MediaType } 
    8181 
     
    129129  end 
    130130 
    131   def sendMPOST( methodNamespace, methodName, soapString
     131  def sendMPOST( soapString, soapAction
    132132    raise NotImplementError.new() 
    133133 
  • trunk/lib/soap/streamHandler_wo_http-access.rb

    r31 r66  
    4949  end 
    5050 
    51   def send( methodNamespace, methodName, soapString
     51  def send( soapString, soapAction = nil
    5252    begin 
    53       s = sendPOST( methodNamespace, methodName, soapString
     53      s = sendPOST( soapString, soapAction
    5454    rescue PostUnavailableError 
    5555      begin 
    56         s = sendMPOST( methodNamespace, methodName, soapString
     56        s = sendMPOST( soapString, soapAction
    5757      rescue MPostUnavailableError 
    5858        raise HTTPStreamError.new( $! ) 
     
    6363  private 
    6464 
    65   def sendPOST( methodNamespace, methodName, soapString
     65  def sendPOST( soapString, soapAction
    6666    server = URI.create( @server ) 
    6767 
     
    8989      absPath << '?' << server.query if server.query 
    9090    end 
    91     action = methodNamespace.dup << '#' << methodName 
    9291 
    9392    header = {} 
     
    10099Content-Length: #{ soapString.size } 
    101100Content-Type: #{ MediaType } 
    102 SOAPAction: #{ action } 
     101SOAPAction: "#{ soapAction }" 
    103102 
    104103EOS 
     
    172171  end 
    173172 
    174   def sendMPOST( methodNamespace, methodName, soapString
     173  def sendMPOST( soapString, soapAction
    175174    raise NotImplementError.new() 
    176175