Commit Graph

54 Commits

Author SHA1 Message Date
inoussa
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
inoussa
a670b3cc11 Record definition partialy supported in Type Library Editor
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@245 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-08-21 22:14:13 +00:00
inoussa
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
inoussa
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
inoussa
bbee29cb90 Release 0.5 copy
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@242 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-08-15 01:48:46 +00:00
inoussa
7788fcc3f4 typo in documentation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@241 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-08-14 22:04:55 +00:00
inoussa
9ecff4f98c git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@240 8e941d3f-bd1b-0410-a28a-d453659cc2b4 2007-08-14 18:53:43 +00:00
inoussa
65dab20c6f Delphi compatibility fix ( node filtering )
Add Delphi amazon sample

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@239 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-08-13 18:12:23 +00:00
inoussa
1b7b1d4349 fix wsdl parametter ambiguity
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@238 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-08-13 15:50:55 +00:00
inoussa
ab89744bda fpc compatibility fix
doc update

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@236 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-08-12 15:18:57 +00:00
inoussa
22093d6e75 test suite to use CThread on unix systems
save serialized streams to files 

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@231 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-31 10:48:24 +00:00
inoussa
c8296c17b9 PowerPC compatibility fix ( from Philip J Hess )
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@227 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-28 20:05:58 +00:00
inoussa
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
inoussa
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
inoussa
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
inoussa
d27d04532d Document UpdateObject
Type Library Editor : type alias definition added.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@222 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-22 17:09:02 +00:00
inoussa
0900785a6e linux validation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@221 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-20 20:36:45 +00:00
inoussa
b482688bff linux validation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@220 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-20 20:26:40 +00:00
inoussa
2728fb56d8 Type library editor : array editor
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@219 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-20 16:13:16 +00:00
inoussa
fd170582cf + Indy TCP server listner ( FPC & Delphi )
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@217 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-20 00:25:29 +00:00
inoussa
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
inoussa
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
inoussa
7032cef6b7 - Type Library Editor : array support
- better Delphi support
- server listeners refactored to ease service creation

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@214 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-14 23:17:03 +00:00
inoussa
5ce9841611 Delphi server side support ( binary, soap, xmlrpc ):
- the Indy http_server compile and works
 - for xml, the Delphi xmldom unit as used ( tested with msxml )

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@213 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-13 22:33:55 +00:00
inoussa
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
inoussa
2418e96d91 WSDL Type library Editor :
- class editing bug fix
 - Header block are now persisted in wsdl as a documentation

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@210 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-08 21:43:09 +00:00
inoussa
549deb3e6d lazarus IDE integration :
- WSDL file import ( GUI ) menu   Project/Web Services Toolkit/Import WSDL File ...
  - WSDL Type Library Editor ( GUI ) Project/Web Services Toolkit/Type Library Editor...


git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@209 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-07-07 20:56:01 +00:00
inoussa
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
inoussa
ba1e2d2d2b xml rpc start
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@194 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-06-26 20:42:29 +00:00
inoussa
0d3a0a126b git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@191 8e941d3f-bd1b-0410-a28a-d453659cc2b4 2007-06-24 23:49:07 +00:00
inoussa
63754badc0 switching the internal pascal parser to fcl-passrc
type_lib_edtr: type library editor

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@190 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-06-24 23:33:51 +00:00
inoussa
a9e53d8b96 service implementation pooling
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@189 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-06-24 15:32:38 +00:00
inoussa
c3e6d4b260 made a copy
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@186 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-06-23 13:41:44 +00:00
inoussa
790cf39be4 Linux compatibility fixing
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@162 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-05-06 19:31:24 +00:00
inoussa
320f639458 git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@161 8e941d3f-bd1b-0410-a28a-d453659cc2b4 2007-05-05 21:50:59 +00:00
inoussa
2a350f8827 preparing for the 0.4 release
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@159 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-05-05 19:05:01 +00:00
inoussa
74d5466765 client : new TCP transport implementation ( using synapse library ) in synapse_tcp_protocol.pas
server : TCP server implementatiion ( using synapse library ) in synapse_tcp_server.pas
Delphi : first binary format support
bugs fix in the WSDL generation for the server side

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@158 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-05-02 22:55:35 +00:00
inoussa
44f1a2f5da ws_helper :
+ wst_CreateInstance_<service_name>();
      new function to create a default proxy based on the address and params provided by the wsdl file.

wst runtime :
  + GetServiceDefaultFormatProperties()
  + GetServiceDefaultAddress()

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@153 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-04-26 23:23:41 +00:00
inoussa
558fbb5c86 bugs fixs
Amazon sample runs well

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@148 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-04-22 23:05:25 +00:00
inoussa
7d05065529 ws_helper : Better attribute parsing in nested types
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@145 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-04-17 00:52:02 +00:00
inoussa
bbeed9acfd ws_helper : nested type definition parsing
Example :
	        <xs:element name="NestedType">
	                <xs:complexType>
	                        <xs:sequence>
	                                <xs:element name="Property_1" type="xs:string"/>
	                                <xs:element name="Property_2" minOccurs="0" maxOccurs="unbounded">
      		                              <xs:complexType>
      	                                          <xs:sequence>
      	                                                 <xs:element name="Name" type="xs:string"/>
      	                                                 <xs:element name="Value" type="xs:string"/>
      	                                          </xs:sequence>
      	                                </xs:complexType>
	                                </xs:element>
	                        </xs:sequence>
	                </xs:complexType>
	        </xs:element>

ws_helper : Soap Binding Style are now recorded in the metadata registration subroutine generated by ws_helper


git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@144 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-04-12 00:48:00 +00:00
inoussa
2090bf84b2 ws_helper parses ( and records in procedure Register_%service%_ServiceMetadata() )
- service/port for <soap:address>
  - binding/operation for "soapAction"
  
ws_helper : better parsing of "function" operations

ws_helper supports a new switch :
  -u MODE Generate the pascal translation of the WSDL input file
       MODE value may be U for used types or A for all types


Complexe types extending with simpleContent support in the runtime and ws_helper :
   sample WSDL type
  	<xs:complexType name="MeasureType">
  		<xs:simpleContent>
  			<xs:extension base="xs:decimal">
  				<xs:attribute name="UnitSystem" type="xs:token" use="optional">
  				</xs:attribute>
  				<xs:attribute name="ZeroPoint" type="string" use="optional">
  				</xs:attribute>
  			</xs:extension>
  		</xs:simpleContent>
  	</xs:complexType> 


embedded array support :
   sample WSDL type
      <xsd:complexType name="EmbeddeArraySample">
        <xsd:sequence>
          <xsd:element name="Name" type="xsd:string"/>
          <xsd:element name="Count" type="xsd:int"/>
          <xsd:element name="ArrayItem" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
        </xsd:sequence>
      </xsd:complexType>

   sample instance of "EmbeddeArraySample"
      <example>
        <Name>WST NAME</Name>
        <Count>3</Count>
        <ArrayItem>Item 0</ArrayItem>
        <ArrayItem>Item 1</ArrayItem>
        <ArrayItem>Item 2</ArrayItem>
      </example>

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@139 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-04-02 13:19:48 +00:00
inoussa
49b0c3d159 soapAction parsing for operation, soap:address ( location ) parsing
TServiceOperation now has Properties ( see IModuleMetadataMngr.SetServiceCustomData ),
Code has been refactored to use ParseFilter() instead using TRttiFilterCreator

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@136 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-03-25 23:47:16 +00:00
inoussa
0071bd8371 First implementation of the "WSDL to Pascal" fonctionality support in ws_helper.
ws_helper now has the following parameters :
  ws_helper [-u] [-p] [-b] [-i] [-oPATH] inputFilename
    -u  Generate the pascal translation of the WSDL input file
    -p  Generate service proxy
    -b  Generate service binder
    -i  Generate service minimal implementation
    -o  PATH  Relative output directory
    -a  PATH  Absolute output directory

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@135 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2007-03-23 23:22:35 +00:00
inoussa
78de51ca7f Patch for procedure LoadObjectFromStream() from Martin Smat.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@39 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2006-11-25 15:42:41 +00:00
inoussa
b5ff30595d git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@37 8e941d3f-bd1b-0410-a28a-d453659cc2b4 2006-11-12 13:31:22 +00:00
inoussa
0cb149edf4 Assertion fix in the parser.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@33 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2006-10-29 15:06:12 +00:00
inoussa
e1f3f1041c library protocol added ( Hosting services into dynamic library DLL/SO).
connexion string format is
  lib:FileName=<A File Name>;target=<the target service>

example :lib:FileName=C:\Programmes\lazarus\wst\tests\library\obj\lib_server.dll;target=ICalculator

todo : test on Linux, write Documentation in the Wiki.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@32 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2006-10-29 01:50:19 +00:00
inoussa
35695810f7 git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@31 8e941d3f-bd1b-0410-a28a-d453659cc2b4 2006-10-28 17:04:49 +00:00
inoussa
05d331486c Removed file/folder
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2006-08-26 23:35:53 +00:00