|
Revision 1902, 0.6 kB
(checked in by nahi, 1 year ago)
|
- added support of all XML Schema facets for restriction. No validation implemented yet. (do you want to validate XML messages by soap4r?) closes #364.
|
| Line | |
|---|
| 1 |
# SOAP4R - SOAP Namespace library |
|---|
| 2 |
# Copyright (C) 2000-2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>. |
|---|
| 3 |
|
|---|
| 4 |
# This program is copyrighted free software by NAKAMURA, Hiroshi. You can |
|---|
| 5 |
# redistribute it and/or modify it under the same terms of Ruby's license; |
|---|
| 6 |
# either the dual license version in 2003, or any later version. |
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
require 'xsd/datatypes' |
|---|
| 10 |
require 'xsd/ns' |
|---|
| 11 |
require 'soap/soap' |
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
module SOAP |
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
class NS < XSD::NS |
|---|
| 18 |
KNOWN_TAG = XSD::NS::KNOWN_TAG.dup.update( |
|---|
| 19 |
SOAP::EnvelopeNamespace => 'env' |
|---|
| 20 |
) |
|---|
| 21 |
|
|---|
| 22 |
def initialize(tag2ns = nil) |
|---|
| 23 |
super(tag2ns) |
|---|
| 24 |
end |
|---|
| 25 |
|
|---|
| 26 |
private |
|---|
| 27 |
|
|---|
| 28 |
def default_known_tag |
|---|
| 29 |
KNOWN_TAG |
|---|
| 30 |
end |
|---|
| 31 |
end |
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
end |
|---|