soap: Ignore unknown namespaces and assign dummy URLs
This commit is contained in:
parent
03fb87b322
commit
fca3355744
14
SoXML.st
14
SoXML.st
|
@ -333,6 +333,18 @@ Object subclass: SoPortableUtil [
|
|||
]
|
||||
]
|
||||
|
||||
XML.XMLParser subclass: SoXMLParser [
|
||||
| namespaces |
|
||||
findNamespace: ns [
|
||||
[^ super findNamespace: ns]
|
||||
on: XML.InvalidSignal
|
||||
do: [^ self customNamespaces at: ns ifAbsentPut: ['unknown'] ]
|
||||
]
|
||||
|
||||
customNamespaces [
|
||||
^ namespaces ifNil: [namespaces := Dictionary new]
|
||||
]
|
||||
]
|
||||
|
||||
|
||||
Object subclass: SoVWXMLParserAdapter [
|
||||
|
@ -427,7 +439,7 @@ Object subclass: SoVWXMLParserAdapter [
|
|||
"assuming VWXML"
|
||||
|
||||
<category: 'actions'>
|
||||
^(XML.XMLParser processDocumentString: xmlString
|
||||
^(SoXMLParser processDocumentString: xmlString
|
||||
beforeScanDo: [:p | p validate: false]) root
|
||||
]
|
||||
]
|
||||
|
|
Reference in New Issue