|
From: <lcl...@us...> - 2009-04-07 00:02:17
|
Revision: 1486
http://pywebsvcs.svn.sourceforge.net/pywebsvcs/?rev=1486&view=rev
Author: lclement
Date: 2009-04-07 00:02:02 +0000 (Tue, 07 Apr 2009)
Log Message:
-----------
Bug fix in the File attachment
Modified Paths:
--------------
trunk/wstools/Namespaces.py
trunk/wstools/XMLSchema.py
Modified: trunk/wstools/Namespaces.py
===================================================================
--- trunk/wstools/Namespaces.py 2009-04-02 01:08:10 UTC (rev 1485)
+++ trunk/wstools/Namespaces.py 2009-04-07 00:02:02 UTC (rev 1486)
@@ -24,9 +24,7 @@
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 @@
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"
Modified: trunk/wstools/XMLSchema.py
===================================================================
--- trunk/wstools/XMLSchema.py 2009-04-02 01:08:10 UTC (rev 1485)
+++ trunk/wstools/XMLSchema.py 2009-04-07 00:02:02 UTC (rev 1486)
@@ -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 @@
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.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|