71 Commits

Author SHA1 Message Date
harishd%netscape.com
c8fd40887c Patch provided by rayw@netscape.com: Ignore xsi:type if it's not a proper subtype of the schema-guaranteed type. b=202597, r=harishd@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@141543 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 23:23:26 +00:00
harishd%netscape.com
af528987ef Fabricate a unique name for anonymous schema types. b=199555, r=rayw@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@141347 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 00:11:34 +00:00
harishd%netscape.com
d06a9798f7 Make sure to resolve place-holder-array-type. b=192141, r=rayw@netscape.com, sr=vidur@netscape.com.
The target namespace on <schema> should be applied to <element> if and only if <element> is qualified. b=192972. r=rayw@netscape.com, sr=jst@netscape.com.
Fixed a few warnings.
*** NOT PART OF THE BUILD ***


git-svn-id: svn://10.0.0.236/trunk@138634 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 22:36:42 +00:00
dbaron%dbaron.org
f5b5bace95 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@136002 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 20:32:55 +00:00
dougt%netscape.com
1ebc6538fb Move FROZEN ContractID into nsXPCOM.h and define r=rpotts, sr=alec, b=166426
git-svn-id: svn://10.0.0.236/trunk@128770 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 23:36:13 +00:00
rayw%netscape.com
d29baad3e5 Fixes bug 141765, r=heikki, sr=jst, rs=rayw.
This is a very simple, safe fix that fixes a crash in decoding structures
inside of arrays in SOAP, and affects nothing else.


git-svn-id: svn://10.0.0.236/trunk@120690 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-03 11:56:31 +00:00
alecf%netscape.com
93e7be5f78 oops fix a typo in my last checkin, to bug 139633 that dbaron caught - "dst" should have been "src"
git-svn-id: svn://10.0.0.236/trunk@120274 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-30 01:39:22 +00:00
alecf%netscape.com
61312b4eeb fix bug 139633 - as a part of freezing nsAString, move Left/Right/Mid back into nsString, and fix consumers to start using Substring()
r=jag, sr=darin


git-svn-id: svn://10.0.0.236/trunk@120220 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-29 20:29:54 +00:00
rayw%netscape.com
4e3de121c8 Added support for new string types in SOAP so they are automatically recognized
as xs:string type during encoding.  Bug 131952, r=heikki, sr=jband, a=asa.


git-svn-id: svn://10.0.0.236/trunk@117170 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-22 11:54:43 +00:00
jband%netscape.com
57faa09874 fix bug 125084. Add support for empty arrays in nsIVariant. This is expressed as atype id rather than as a regular array with no elements. Includes changes to xpconnect to support mapping to empty JSArrays, xpconnect tests, and SOAP. Patches are from jcorwin@us.ibm.com and rayw@netscape.com. r=jband sr=brendan a=asa
git-svn-id: svn://10.0.0.236/trunk@117098 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-21 23:21:54 +00:00
cbiesinger%web.de
fefb97b01b bug 127419 r=rayw sr=jst a=asa
fix build warning in nsDefaultSOAPEncoder.cpp


git-svn-id: svn://10.0.0.236/trunk@115977 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 22:07:24 +00:00
rayw%netscape.com
11169260e5 Bustage fix. PRBool instead of bool, making OS2 red, fix to go green.
git-svn-id: svn://10.0.0.236/trunk@115199 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-22 03:09:21 +00:00
rayw%netscape.com
eb30dee02f Added conditional in makefiles and build module to enable or disable
MOZ_WSP.  This was only done inside of the MOZ_SOAP defines.  Tested
build with and without SOAP define.  This permits SOAP to be built
without web service proxies.  Related to bug 107795, but needed
whether or not SOAP becomes part of default build.

sr=vidur.  SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@114842 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 23:38:07 +00:00
rayw%netscape.com
81dd7bbf15 I found three small but important errors in type identification processes.
Two of them involve the missing classes Struct and AnySimpleType, which I
have been able to fake out.  The third involves the identification of the
type of the array.  When identifying the type of a variant, interface means
that it contains a struct.  but I was using the same method to identify the
type of an array, where interface always means you don't know the type (since
variants show up as interfaces in this case and even nested arrays are
variants).

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@114765 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 03:46:45 +00:00
rayw%netscape.com
2c5c9121b8 Added check for null schema type being passed in. Also made the type
not specified where it was AnyType or could be trivially derived from
the element name and namespaceURI being used.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@114688 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-16 12:25:11 +00:00
rayw%netscape.com
2094e0931d Last issues for SOAP review by Heikki and others.
SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@114675 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-16 08:01:15 +00:00
rayw%netscape.com
d0139a5eab A bunch of minor fixes from Heikki's reviews. Passes my tests.
SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@114601 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-15 15:54:20 +00:00
rayw%netscape.com
4ea3385c3f Minor whitespace sdjustments.
SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@114587 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-15 12:30:43 +00:00
rayw%netscape.com
3f3d8fdcb5 Attempts to patch-up incomplete type hierarchy in nsISchema.h, lack
of inheritance among builtins, and lack of AnySimpleType.  Commented
lines will have to eventually be reenabled when AnySimpleType is
produced.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@114584 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-15 12:10:03 +00:00
rayw%netscape.com
5271edd456 Added error reporting mechanism, and called it in quite a few places. Also
eliminated use of multiple SOAP encoding URIs, and now only rely on the 1.2
with aliasing that can output 1.1.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@114532 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 23:00:58 +00:00
rayw%netscape.com
f2b54c8910 Changed license header on SOAP files.
SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@114505 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 13:36:34 +00:00
rayw%netscape.com
0cc38f1628 Fixed IDL files to not use mozilla-specific types where possible.
Also identified and entered a placeholder solution for variants not being
able to represent an empty array.  also made primenumber test use
verifyheader.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@114504 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 13:08:25 +00:00
rayw%netscape.com
36cb618c2c Fixes on arrays, re: bug 121934. Lots of changed needed to permit arrays
to control the types of their children via the information received
from the schema.  But the two critical lines actually getting the
information on the child types from the schema are commented out, because
there are problems with dual hierarchies of schema types that make it
not work as well as it should -- also inability to determine whether
the schema actually specified a type or just gave a nice default.

This also includes fixes to leaks and other problems discovered reviewing
the array code.  This is the first code capable of inferring and encoding
a multi-dimensional array from the nested arrays of JS, where the array
type dictates.  All my tests still work.

SOAP is not part of the default build.


git-svn-id: svn://10.0.0.236/trunk@114457 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 00:53:46 +00:00
rayw%netscape.com
b5fc0f285e Changes to the way schema information is interpreted: First, acknowledging
that both complex types and simple restriction types may have base types,
and secondly acknowledging that complex types may have simple content models.

SOAP is not a part of the default build.


git-svn-id: svn://10.0.0.236/trunk@113896 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-07 11:40:40 +00:00
jband%netscape.com
916d323e21 fix windows bustage - not part of default build
git-svn-id: svn://10.0.0.236/trunk@113877 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-07 04:10:04 +00:00
rayw%netscape.com
06f4cfd1d3 Added code to properly decode multi-dimensional arrays as nested arrays
in XPCOM.  Unfortunately, there is no way to test this because Apache
SOAP servers do not seem to produce them in any simple configuration
because Java does not support multidimensional arrays.  I will be writing
code to test this later as I add support for encoding multi-dimensional
arrays, as specified by a schema type, which I can then decode without
actually sending / receiving a message, but I need to put this fix back
now.  At least I didn't break decoding of single-dimensional arrays.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@113865 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-07 03:02:59 +00:00
rayw%netscape.com
9cd6379065 A variety of bug fixes in SOAP, most notably, eliminating 1999 schema
types.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@113495 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 01:47:27 +00:00
vidur%netscape.com
7673c9518e Scoping rules seem to be different on windows and linux. Fixed compiler error on windows. This is not yet part of the default build.
git-svn-id: svn://10.0.0.236/trunk@113491 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 01:32:04 +00:00
rayw%netscape.com
b717e1974f A number of SOAP bug fixes including fixing problems with fault handling,
using wstrings instead of astrings for  arrays, and ignoring the http
status and returning a fault code when there is one.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@113211 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 17:40:06 +00:00
rayw%netscape.com
09b092f539 Fixed handling of conflicting type information.
SOAP is not part of the default build.


git-svn-id: svn://10.0.0.236/trunk@112904 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 23:38:57 +00:00
rayw%netscape.com
1556a1516c Added code to carefully follow the XMLSchema info when encoding and decoding
xpconnect objects, rejecting errors, and making sure that the child elements
appear in the correct order.

SOAP is not part of the default build.


git-svn-id: svn://10.0.0.236/trunk@112702 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 17:32:04 +00:00
rayw%netscape.com
498166895d Cleaned up handling of structs into its own encoder / decoder class so
that it will be easier to add all the schema type checking there.  Also
made this handler QI to nsIPropertyBag instead of expecting it to be the
type of the variant.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112683 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 11:26:35 +00:00
rayw%netscape.com
31553bcbdc Handle decoding of simple unknown types as strings, otherwise as variants
within arrays.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112636 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:57:31 +00:00
rayw%netscape.com
b2de4c6dd7 Added more array support for nested types in arrays.
SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112629 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:39:08 +00:00
rayw%netscape.com
4213779178 Added encoding of untyped arrays. Fixed test html.
SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112599 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:14:25 +00:00
rayw%netscape.com
6f1df8ddf5 Fixed infinite loop in struct decoding, added test case for struct decoding.
SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112474 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 23:09:15 +00:00
rayw%netscape.com
31f311dc28 Added an error check and a test case that does not work, yet, because
xpconnect is saying that an array is an interface, I think.

SOAP not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112449 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 20:09:06 +00:00
rayw%netscape.com
e7eda6ecb5 Made another test work, with a couple of bug fixes.
SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112437 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 18:28:37 +00:00
rayw%netscape.com
201c82c2cc Fixed type handling when decoding nested arrays.
git-svn-id: svn://10.0.0.236/trunk@112432 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 15:09:58 +00:00
rayw%netscape.com
4fc2e5d837 Fixed name of sparse array offset attribute.
Not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112430 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 14:30:11 +00:00
rayw%netscape.com
7068299b7b Added most of implementation of decoding of multidimensional arrays. The
only thing missing is proper construction of a variant.  I will consult
with John.

Not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112429 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 14:17:03 +00:00
rayw%netscape.com
4796f068c7 Added untested decoding of arrays. Did not break tests.
SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112416 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 03:01:06 +00:00
rayw%netscape.com
fd0b44e632 Added untested code to encode a property bag. Untested and I don't really
know how the property bag will come to me.  Did not break anything.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112382 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 07:23:31 +00:00
rayw%netscape.com
19b53a1249 Added untested code for decoding untyped complex objects. Didn't break
isprimenumber.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112378 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 05:39:57 +00:00
rayw%netscape.com
cf9fd6481c Reformatted files to eliminate bad tabs. Added nsISOAPPropertyBag, which
is not working perfectly WRT XPConnect, but broke nothing else.  Also
added mutator and su[pporting classes.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112374 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 03:23:06 +00:00
vidur%netscape.com
424395925f Added dimensions to arrayType attribute in encoding process. [not part of build]
git-svn-id: svn://10.0.0.236/trunk@111608 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 01:25:46 +00:00
rayw%netscape.com
0778de0a3a Fix for undefined symbol under Linux. Eliminated proxy/test due to
Makefile.in problems.  Added ability for a specific version of SOAP
(Encoding) to deal with either version of Schema URI if it is
explicitly specified.

SOAP is not part of the default build.


git-svn-id: svn://10.0.0.236/trunk@111596 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-08 22:11:57 +00:00
vidur%netscape.com
da48fd5fbd Addition of SOAPParameter class and contractID, minor fixes to encoding code. This is not part of the build.
git-svn-id: svn://10.0.0.236/trunk@111265 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-02 23:29:12 +00:00
rayw%netscape.com
4f3c37a8f4 Fixes to the way SOAP encodings are tied to the XML elements.
Not part of default build.


git-svn-id: svn://10.0.0.236/trunk@110012 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 18:56:19 +00:00
rayw%netscape.com
a1bfb55091 Minor fix and update to primes test.
Not part of default build.


git-svn-id: svn://10.0.0.236/trunk@109984 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 06:47:06 +00:00