Commit Graph

61 Commits

Author SHA1 Message Date
8206c61bd6 Patch from Michael Van Canneyt : check for error in synapse http requesting.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@916 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-07-17 17:15:19 +00:00
1dbbf6ce7e Introduce "FreeObjectProperties()" method in TBaseComplexRemotable to allow its derived classes to clear (FreeAndNil) their object(s) and array(s) properties.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@909 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-07-16 11:16:39 +00:00
54ff0827eb Correct 64bit compilation error.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@906 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-07-14 14:23:07 +00:00
eda0eb7910 Unify resource strings in wst_consts.pas
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@902 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-07-09 14:10:58 +00:00
3b875dfea2 XSD Date related implementations :
* TDurationRemotable : duration 
  * TTimeRemotable : time 
  * TDateRemotable : date
  * TDateTimeRemotable : dateTime


git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@901 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-07-08 18:52:13 +00:00
ed00c63b47 TTDurationRemotable and TTimeRemotable and TDateRemotable now use an uniform API :
* ToStr()
  * Parse()

Note that this patch break compatibility a source level ( of these classes ).

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@898 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-07-07 10:45:45 +00:00
6ab87b285d TDurationRemotable and TTimeRemotable implementation + tests
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@896 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-07-06 16:21:25 +00:00
c8ad953c7c TDurationRemotable and TTimeRemotable are not implemented, so do not register them in the type register. Instead these types ( duration and time ) are typed string alias.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@887 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-06-30 20:26:15 +00:00
8cb6651cbe Register XSD "token" type
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@883 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-06-30 16:07:45 +00:00
73d1b45eb8 Serialiers : exceptions are no longer used internally to signal missing optional properties.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@875 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-06-29 01:57:44 +00:00
28da302bc6 TObjectCollectionRemotable now inherits from TBaseArrayRemotable instead of TAbstractComplexRemotable, that make more sense.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@863 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-06-26 12:32:45 +00:00
0fc47f2004 + runtime WSDL generation : SOAP Header blocks should not derive from THeaderBlock
+ test case

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@862 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-06-25 23:21:48 +00:00
abf1f15cde * Serialization : array and collection now have a "Options" property that can be used to indicate that they should be serialized, empty or not. To do so just include "ioAlwaysSerialize" in the "Options" property of the instance you want to customize.
* Test

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@861 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-06-25 13:54:10 +00:00
5164d80f26 Fix number parsing format : set wst_FormatSettings.ThousandSeparator = #0
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@849 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-06-16 00:55:56 +00:00
fe7e4d82a9 serialization :
* Empty array should not be serialized
  * When reading a array, if there is no array in the serialized stream, the input argument should be cleaned

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@818 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-06-01 22:28:39 +00:00
6315b87d48 Complex objects serialization : serializer objects must be notified for external property name registration and update themself accordingly.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@817 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-05-31 19:00:10 +00:00
4d76fe4edd Type registration : complex objects serialization's helpers are now fully created at registration time.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@808 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-05-25 16:08:42 +00:00
20cd52f952 Updated to use wst_consts.pas
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@786 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-05-06 16:55:36 +00:00
d2abf9846b +Delphi : QWord = UInt64 for CompilerVersion > 16.0
+THeaderBlockProxy :
  This class is used as a wrapper to allow a TBaseRemotable instance to be sent and received as a header block
+ICallContext.AddHeader() : 
  Overload to support classes that do not inherit from THeaderBlock
+TTypeRegistryItem.AddExternalSynonym(), TTypeRegistryItem.IsExternalSynonym()
  Usefull when a xsd defines a complex type and a "element" which type is the complex one.
+TTypeRegistry.FindByDeclaredName():
  Add an option to include the external synonyms in the search

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@744 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-03-18 15:53:10 +00:00
be86fa976b Delphi compatibility fix
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@740 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-03-13 17:10:21 +00:00
cff1351132 + Base64( refactored ),
+ Base16 
+ Extendable "AnsiChar" and "WideChar"
+ tests

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@665 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2009-01-19 17:46:33 +00:00
de258de519 Delphi 2009 support
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@626 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-12-12 22:02:35 +00:00
a43bb35944 git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@609 8e941d3f-bd1b-0410-a28a-d453659cc2b4 2008-11-24 15:39:35 +00:00
6f801dd3f8 ICallContext now has a property manager ( GetPropertyManager() ). At server side the so got property manager can be used to query the remote client informations such as its IP address ( RemoteIP )
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@573 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-09-25 02:24:25 +00:00
812edb945c Part 1
FPC UnicodeString support (+ test cases)
WideString support (+ test cases)

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@555 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-09-13 15:18:03 +00:00
bc4dd0ba39 Part 2
* simple content header block implementation : TSimpleContentHeaderBlock
  * XSD/WSDL generator tests : header, simple content header, collection

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@550 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-09-11 00:42:54 +00:00
3c301358b4 overloaded routines for testability
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@540 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-09-06 15:54:34 +00:00
7296df02a0 +Serialization of compound element ( TBaseComplexRemotable ) is now handle by TObjectSerializer that can read/write elements of different name spaces
+Fix server side SOAP headers reading.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@533 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-08-24 13:33:06 +00:00
d8690785ba Define TBinaryString ( = ansistring ) and use it in base64 BinaryData
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@532 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-08-18 19:04:16 +00:00
1e53041c77 TDurationRemotable implementation and tests
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@530 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-08-18 14:49:20 +00:00
4d7e766199 TBase64StringRemotable serialization correction , from Joost van der Sluis
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@522 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-08-04 15:31:54 +00:00
639bde5376 +Object Collection support
All WST custom attributes are now namespace qualified
Correct XDS generator for complex type extending simple type

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@520 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-08-01 21:38:55 +00:00
9576d325a4 change {$IFDEF FPC} for tkBool by {$IFDEF HAS_TKBOOL}
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@517 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-07-30 00:21:52 +00:00
056046f530 Suppress compiler warnings
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@511 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-07-28 17:41:26 +00:00
2a3c64a6e6 move initialization and finalization instructions to init/finit procs
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@461 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2008-06-06 13:27:02 +00:00
2b232e3d18 git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@310 8e941d3f-bd1b-0410-a28a-d453659cc2b4 2008-01-08 17:07:55 +00:00
4ac8b874cf json serialization : client & server
base64 encoded support + tests
new tests for schema parsers : complex type extending simple type

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@303 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-12-29 00:58:19 +00:00
a53b4f1c6e typ_lib_edtr bug fix
more tests and fix
Delphi GUI DUnit test suite runer 

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@292 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-12-19 23:31:52 +00:00
56ce4246c0 Delphi6 compatibility fix
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@285 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-11-12 09:21:46 +00:00
343b11db66 wsdl parser : assume style=document binding if not specified
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@277 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-10-19 15:30:20 +00:00
95fb7fb08f Delphi compiles ws_helper
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@254 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-09-02 19:05:47 +00:00
1069954eba Record support :
- Field may be hidden by calling SetFieldSerializationVisibility()
  - Field may be mapped to XML Attribute by calling RegisterAttributeProperty()

Some methods and routines have been marked "inline". By default the "inline" modifier is not enable. To enable it
uncomment the "//{$DEFINE USE_INLINE}" line in wst_global.inc.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@244 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-08-19 21:04:16 +00:00
11a897fc26 Object Pascal "record" serialization ( first commit! )
TTest_TIntfPoolItem
TTest_TSimpleItemFactory
TTest_XmlRpcFormatterExceptionBlock
TTest_SoapFormatterExceptionBlock
Record serialization test

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@243 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-08-19 00:29:43 +00:00
bd61ea0229 FPC 2.0.4 compatibility ( TFormBorderStyle is not present )
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@226 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-28 18:19:53 +00:00
8f8b770f34 + Range check error fix
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@225 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-25 16:37:32 +00:00
02efb4cb8a + add delphi DUnit (9.3) test suite
delphi compatibility 

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@224 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-25 00:30:44 +00:00
b78e642342 Fix fpc pooling
Services implementation pooling
Services configuration in external file

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@216 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-18 20:27:46 +00:00
726114b2ae Delphi pooling is ok
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@215 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-18 11:23:56 +00:00
65f4a3dffd + TStringBufferRemotable = reading a node's raw buffer
+ Better Delphi support : client & server( new )
    - SOAP, XMLRPC and BINARY formats

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@212 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-12 14:46:45 +00:00
6ca7b4a51d + XmlRpc format support ( server and client )
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@198 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-06-28 23:33:38 +00:00