Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug fix in the File attachment

git-svn-id: https://pywebsvcs.svn.sourceforge.net/svnroot/pywebsvcs/trunk@1486 7150bf37-e60d-0410-b93f-83e91ef0e581
  • Loading branch information...
commit 8b608d27de0d89cc36cbd0ed54cf97ddb4298bfc 1 parent 305e95e
lclement authored
Showing with 10 additions and 5 deletions.
  1. +8 −3 wstools/Namespaces.py
  2. +2 −2 wstools/XMLSchema.py
View
11 wstools/Namespaces.py
@@ -24,9 +24,7 @@ class SCHEMA:
XSD1 = "http://www.w3.org/1999/XMLSchema"
XSD2 = "http://www.w3.org/2000/10/XMLSchema"
XSD3 = "http://www.w3.org/2001/XMLSchema"
- #AXIS attachment implementation details
- AXIS = "http://xml.apache.org/xml-soap"
- XSD_LIST = [ XSD1, XSD2, XSD3, AXIS]
+ XSD_LIST = [ XSD1, XSD2, XSD3]
XSI1 = "http://www.w3.org/1999/XMLSchema-instance"
XSI2 = "http://www.w3.org/2000/10/XMLSchema-instance"
XSI3 = "http://www.w3.org/2001/XMLSchema-instance"
@@ -142,6 +140,13 @@ class X509TOKEN:
BASEFAULTS = WSRF_V1_2.BASEFAULTS.XSD_DRAFT1
+class APACHE:
+ '''This name space is defined by AXIS and it is used for the TC in TCapache.py,
+ Map and file attachment (DataHandler)
+ '''
+ AXIS_NS = "http://xml.apache.org/xml-soap"
+
+
class WSTRUST:
BASE = "http://schemas.xmlsoap.org/ws/2004/04/trust"
ISSUE = "http://schemas.xmlsoap.org/ws/2004/04/trust/Issue"
View
4 wstools/XMLSchema.py
@@ -15,7 +15,7 @@
ident = "$Id$"
import types, weakref, sys, warnings
-from Namespaces import SCHEMA, XMLNS, SOAP
+from Namespaces import SCHEMA, XMLNS, SOAP, APACHE
from Utility import DOM, DOMException, Collection, SplitQName, basejoin
from StringIO import StringIO
@@ -37,7 +37,7 @@ def release():
ATTRIBUTES = 'attr_decl'
ELEMENTS = 'elements'
MODEL_GROUPS = 'model_groups'
-BUILT_IN_NAMESPACES = [SOAP.ENC,] + SCHEMA.XSD_LIST
+BUILT_IN_NAMESPACES = [SOAP.ENC,] + SCHEMA.XSD_LIST + [APACHE.AXIS_NS]
def GetSchema(component):
"""convience function for finding the parent XMLSchema instance.
Please sign in to comment.
Something went wrong with that request. Please try again.