Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]
Show
Ignore:
Timestamp:
11/17/05 23:30:05 (3 years ago)
Author:
nahi
Message:

updated.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/test/wsdl/test_fault.rb

    r1520 r1673  
    1919    <env:Fault xmlns:n1="http://schemas.xmlsoap.org/soap/encoding/" 
    2020        env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 
    21       <faultcode xsi:type="xsd:string">Server</faultcode> 
    22       <faultstring xsi:type="xsd:string">faultstring</faultstring> 
    23       <faultactor xsi:type="xsd:string">faultactor</faultactor> 
     21      <faultcode>Server</faultcode> 
     22      <faultstring>faultstring</faultstring> 
     23      <faultactor>faultactor</faultactor> 
    2424      <detail xmlns:n2="http://www.ruby-lang.org/xmlns/ruby/type/custom" 
    2525          xsi:type="n2:SOAPException"> 
     
    3838    opt = {} 
    3939    opt[:default_encodingstyle] = ::SOAP::EncodingNamespace 
    40     opt[:decode_typemap] = rpc_decode_typemap 
    4140    header, body = ::SOAP::Processor.unmarshal(@xml, opt) 
    4241    fault = ::SOAP::Mapping.soap2obj(body.response) 
    4342    assert_equal("Server", fault.faultcode) 
    4443    assert_equal("faultstring", fault.faultstring) 
    45     assert_equal(URI.parse("faultactor"), fault.faultactor) 
     44    assert_equal("faultactor", fault.faultactor) 
    4645    assert_equal(5, fault.detail.cause) 
    4746  end