| 1 |
=begin |
|---|
| 2 |
SOAP4R |
|---|
| 3 |
Copyright (C) 2000 NAKAMURA Hiroshi. |
|---|
| 4 |
|
|---|
| 5 |
This program is free software; you can redistribute it and/or modify it under |
|---|
| 6 |
the terms of the GNU General Public License as published by the Free Software |
|---|
| 7 |
Foundation; either version 2 of the License, or (at your option) any later |
|---|
| 8 |
version. |
|---|
| 9 |
|
|---|
| 10 |
This program is distributed in the hope that it will be useful, but WITHOUT ANY |
|---|
| 11 |
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
|---|
| 12 |
PRATICULAR PURPOSE. See the GNU General Public License for more details. |
|---|
| 13 |
|
|---|
| 14 |
You should have received a copy of the GNU General Public License along with |
|---|
| 15 |
this program; if not, write to the Free Software Foundation, Inc., 675 Mass |
|---|
| 16 |
Ave, Cambridge, MA 02139, USA. |
|---|
| 17 |
=end |
|---|
| 18 |
|
|---|
| 19 |
module SOAP |
|---|
| 20 |
public |
|---|
| 21 |
|
|---|
| 22 |
EnvelopeNamespace = 'http://schemas.xmlsoap.org/soap/envelope/' |
|---|
| 23 |
EncodingNamespace = 'http://schemas.xmlsoap.org/soap/encoding/' |
|---|
| 24 |
|
|---|
| 25 |
NextActor = 'http://schemas.xmlsoap.org/soap/actor/next' |
|---|
| 26 |
|
|---|
| 27 |
AttrMustUnderstand = 'mustUnderstand' |
|---|
| 28 |
AttrEncodingStyle = 'encodingStyle' |
|---|
| 29 |
AttrActor = 'actor' |
|---|
| 30 |
|
|---|
| 31 |
class Error < StandardError; end |
|---|
| 32 |
|
|---|
| 33 |
class MethodDefinitionError < Error; end |
|---|
| 34 |
class HTTPStreamError < Error; end |
|---|
| 35 |
class PostUnavailableError < HTTPStreamError; end |
|---|
| 36 |
class MPostUnavailableError < HTTPStreamError; end |
|---|
| 37 |
|
|---|
| 38 |
class ArrayIndexOutOfBoundsError < Error; end |
|---|
| 39 |
class ArrayStoreError < Error; end |
|---|
| 40 |
|
|---|
| 41 |
class FaultError < Error |
|---|
| 42 |
public |
|---|
| 43 |
|
|---|
| 44 |
attr_reader :faultCode |
|---|
| 45 |
attr_reader :faultString |
|---|
| 46 |
attr_reader :faultActor |
|---|
| 47 |
attr_reader :detail |
|---|
| 48 |
|
|---|
| 49 |
def initialize( fault ) |
|---|
| 50 |
@faultCode = fault.faultCode |
|---|
| 51 |
@faultString = fault.faultString |
|---|
| 52 |
@faultActor = fault.faultActor |
|---|
| 53 |
@detail = fault.detail |
|---|
| 54 |
end |
|---|
| 55 |
end |
|---|
| 56 |
|
|---|
| 57 |
class FormatDecodeError < Error; end |
|---|
| 58 |
|
|---|
| 59 |
end |
|---|