Browse Source

Bug fix in the File attachment

main
Luca Clementi 16 years ago
parent
commit
fe411d46d1
2 changed files with 10 additions and 5 deletions
  1. +8
    -3
      Namespaces.py
  2. +2
    -2
      XMLSchema.py

+ 8
- 3
Namespaces.py View File

@@ -24,9 +24,7 @@ except:
XSD1 = "http://www.w3.org/1999/XMLSchema" XSD1 = "http://www.w3.org/1999/XMLSchema"
XSD2 = "http://www.w3.org/2000/10/XMLSchema" XSD2 = "http://www.w3.org/2000/10/XMLSchema"
XSD3 = "http://www.w3.org/2001/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" XSI1 = "http://www.w3.org/1999/XMLSchema-instance"
XSI2 = "http://www.w3.org/2000/10/XMLSchema-instance" XSI2 = "http://www.w3.org/2000/10/XMLSchema-instance"
XSI3 = "http://www.w3.org/2001/XMLSchema-instance" XSI3 = "http://www.w3.org/2001/XMLSchema-instance"
@@ -142,6 +140,13 @@ class OASIS:
BASEFAULTS = WSRF_V1_2.BASEFAULTS.XSD_DRAFT1 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: class WSTRUST:
BASE = "http://schemas.xmlsoap.org/ws/2004/04/trust" BASE = "http://schemas.xmlsoap.org/ws/2004/04/trust"
ISSUE = "http://schemas.xmlsoap.org/ws/2004/04/trust/Issue" ISSUE = "http://schemas.xmlsoap.org/ws/2004/04/trust/Issue"


+ 2
- 2
XMLSchema.py View File

@@ -15,7 +15,7 @@
ident = "$Id$" ident = "$Id$"


import types, weakref, sys, warnings 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 Utility import DOM, DOMException, Collection, SplitQName, basejoin
from StringIO import StringIO from StringIO import StringIO


@@ -37,7 +37,7 @@ ATTRIBUTE_GROUPS = 'attr_groups'
ATTRIBUTES = 'attr_decl' ATTRIBUTES = 'attr_decl'
ELEMENTS = 'elements' ELEMENTS = 'elements'
MODEL_GROUPS = 'model_groups' 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): def GetSchema(component):
"""convience function for finding the parent XMLSchema instance. """convience function for finding the parent XMLSchema instance.


Loading…
Cancel
Save