steffen: server/kolab-horde-framework/kolab-horde-framework/XML_WBXML/docs/examples decode.php, NONE, 1.1 encode.php, NONE, 1.1 syncml_client_packet_1.wbxml, NONE, 1.1 syncml_client_packet_1.xml, NONE, 1.1 syncml_client_packet_2.xml, NONE, 1.1 syncml_server_packet_1.wbxml, NONE, 1.1 syncml_server_packet_1.xml, NONE, 1.1 wbxml.wbxml, NONE, 1.1
cvs at intevation.de
cvs at intevation.de
Fri Oct 14 16:33:18 CEST 2005
- Previous message: steffen: server/kolab-horde-framework/kolab-horde-framework/XML_WBXML/WBXML/DTD SyncML.php, NONE, 1.1 SyncMLDevInf.php, NONE, 1.1 SyncMLMetInf.php, NONE, 1.1
- Next message: steffen: server/kolab-horde-framework/kolab-horde-framework/XML_WBXML/tests decode-encode.phpt, NONE, 1.1 decode1.phpt, NONE, 1.1 decode2.phpt, NONE, 1.1 encode-decode.phpt, NONE, 1.1 encode1.phpt, NONE, 1.1 encode2.phpt, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: steffen
Update of /kolabrepository/server/kolab-horde-framework/kolab-horde-framework/XML_WBXML/docs/examples
In directory doto:/tmp/cvs-serv28903/kolab-horde-framework/kolab-horde-framework/XML_WBXML/docs/examples
Added Files:
decode.php encode.php syncml_client_packet_1.wbxml
syncml_client_packet_1.xml syncml_client_packet_2.xml
syncml_server_packet_1.wbxml syncml_server_packet_1.xml
wbxml.wbxml
Log Message:
Separated Horde Framework from kolab-resource-handlers
--- NEW FILE: decode.php ---
#!/usr/local/bin/php
<?php
/**
* $Horde: framework/XML_WBXML/docs/examples/decode.php,v 1.8 2004/03/20 14:07:47 jan Exp $
*
* @package XML_WBXML
*/
error_reporting(E_ALL);
// Need to include only the Decoder class for decoding - everything
// else needed will be pulled in for you.
include_once 'XML/WBXML/Decoder.php';
// No options are needed for the decoder object - just instantiate it.
$decoder = &new XML_WBXML_Decoder();
// The decode() method expects a filehandle as input. Open up a wbxml
// file - the example here uses one of the test files included with
// the package. Make sure to open wbxml files in binary mode so that
// your code behaves properly on Windows.
$infile = isset($argv[1]) ? $argv[1] : 'syncml_client_packet_1.wbxml';
$input = fopen($infile, 'rb');
if (!$input) {
die("Unable to open input file $infile.\n");
}
// Now we just pass the filehandle to the decode() method. It returns
// the decoded XML.
$xml = $decoder->decode($input);
// We can close the input handle now if desired.
fclose($input);
// Since this is an example, just print out the XML:
echo $xml;
--- NEW FILE: encode.php ---
#!/usr/local/bin/php
<?php
/**
* $Horde: framework/XML_WBXML/docs/examples/encode.php,v 1.8 2004/03/20 14:07:47 jan Exp $
*
* @package XML_WBXML
*/
// Need to include only the Encoder class for encoding - everything
// else needed will be pulled in for you.
include_once 'XML/WBXML/Encoder.php';
// No options are needed for the encoder object - just instantiate it.
$encoder = &new XML_WBXML_Encoder();
$test_file = 'syncml_client_packet_1.xml';
$fp = fopen('test-' . $test_file . '.wbxml', 'wb');
$encoder->setOutputStream($fp);
$xml = file_get_contents($test_file);
$encoder->encode($xml);
fclose($fp);
--- NEW FILE: syncml_client_packet_1.wbxml ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: syncml_client_packet_1.xml ---
<?xml version="1.0"?>
<!DOCTYPE SyncML PUBLIC "-//SYNCML//DTD SyncML 1.1//EN" "http://www.openmobilealliance.org/syncml/docs/syncml_represent_v11_20020215.dtd">
<SyncML xmlns="syncml:SYNCML1.1">
<SyncHdr>
<VerDTD>
1.1
</VerDTD>
<VerProto>
SyncML/1.1
</VerProto>
<SessionID>
0
</SessionID>
<MsgID>
1
</MsgID>
<Target>
<LocURI>
http://pyramid6.com:8080/sync
</LocURI>
</Target>
<Source>
<LocURI>
AA712857A16E02800
</LocURI>
<LocName>
anthony
</LocName>
</Source>
<Cred>
<Meta>
<Format xmlns="syncml:metinf">
b64
</Format>
<Type xmlns="syncml:metinf">
syncml:auth-md5
</Type>
</Meta>
<Data>
amO5sygiWy+nqxA2r0++BA==
</Data>
</Cred>
<Meta>
<MaxMsgSize xmlns="syncml:metinf">
10000
</MaxMsgSize>
<MaxObjSize xmlns="syncml:metinf">
4000000
</MaxObjSize>
</Meta>
</SyncHdr>
<SyncBody>
<Put>
<CmdID>
1
</CmdID>
<Meta>
<Type xmlns="syncml:metinf">
application/vnd.syncml-devinf+xml
</Type>
</Meta>
<Item>
<Source>
<LocURI>
./devinf11
</LocURI>
</Source>
<Data>
<DevInf xmlns="syncml:devinf">
<VerDTD>
1.1
</VerDTD>
<Man>
Synthesis AG
</Man>
<Mod>
Synthesis Sync Client 1.1 PocketPC Std
</Mod>
<OEM>
Synthesis AG
</OEM>
<SwV>
2.0.1.9
</SwV>
<DevId>
SySync Client PocketPC Std
</DevId>
<DevTyp>
workstation
</DevTyp>
<UTC>
</UTC>
<SupportNumberOfChanges>
</SupportNumberOfChanges>
<SupportLargeObjs>
</SupportLargeObjs>
<DataStore>
<SourceRef>
./contacts
</SourceRef>
<MaxGUIDSize>
64
</MaxGUIDSize>
<Rx-Pref>
<CTType>
text/x-vcard
</CTType>
<VerCT>
2.1
</VerCT>
</Rx-Pref>
<Tx-Pref>
<CTType>
text/x-vcard
</CTType>
<VerCT>
2.1
</VerCT>
</Tx-Pref>
<SyncCap>
<SyncType>
1
</SyncType>
<SyncType>
2
</SyncType>
<SyncType>
3
</SyncType>
<SyncType>
4
</SyncType>
<SyncType>
5
</SyncType>
<SyncType>
6
</SyncType>
</SyncCap>
</DataStore>
<CTCap>
<CTType>
text/x-vcard
</CTType>
<PropName>
BEGIN
</PropName>
<ValEnum>
VCARD
</ValEnum>
<PropName>
END
</PropName>
<ValEnum>
VCARD
</ValEnum>
<PropName>
VERSION
</PropName>
<ValEnum>
2.1
</ValEnum>
<PropName>
N
</PropName>
<PropName>
TITLE
</PropName>
<PropName>
ORG
</PropName>
<PropName>
BDAY
</PropName>
<PropName>
TEL
</PropName>
<PropName>
EMAIL
</PropName>
<PropName>
URL
</PropName>
<PropName>
NOTE
</PropName>
<PropName>
ADR
</PropName>
</CTCap>
</DevInf>
</Data>
</Item>
</Put>
<Get>
<CmdID>
2
</CmdID>
<Meta>
<Type xmlns="syncml:metinf">
application/vnd.syncml-devinf+xml
</Type>
</Meta>
<Item>
<Target>
<LocURI>
./devinf11
</LocURI>
</Target>
</Item>
</Get>
<Alert>
<CmdID>
3
</CmdID>
<Data>
201
</Data>
<Item>
<Target>
<LocURI>
contacts
</LocURI>
</Target>
<Source>
<LocURI>
./contacts
</LocURI>
</Source>
<Meta>
<Anchor xmlns="syncml:metinf">
<Next>
20030925T175524Z
</Next>
</Anchor>
</Meta>
</Item>
</Alert>
<Final>
</Final>
</SyncBody>
</SyncML>
--- NEW FILE: syncml_client_packet_2.xml ---
<?xml version="1.0"?>
<!DOCTYPE SyncML PUBLIC "-//SYNCML//DTD SyncML 1.1//EN" "http://www.openmobilealliance.org/syncml/docs/syncml_represent_v11_20020215.dtd">
<SyncML xmlns="syncml:syncml1.1">
<SyncHdr>
<VerDTD>
1.1
</VerDTD>
<VerProto>
SyncML/1.1
</VerProto>
<SessionID>
0
</SessionID>
<MsgID>
1
</MsgID>
<Target>
<LocURI>
http://pyramid6.com:8080/sync
</LocURI>
</Target>
<Source>
<LocURI>
AA712857A16E02800
</LocURI>
<LocName>
anthony
</LocName>
</Source>
<Cred>
<Meta>
<Format xmlns="syncml:metinf1.1">
b64
</Format>
<Type xmlns="syncml:metinf1.1">
syncml:auth-md5
</Type>
</Meta>
<Data>
amO5sygiWy+nqxA2r0++BA==
</Data>
</Cred>
<Meta>
<MaxMsgSize xmlns="syncml:metinf1.1">
10000
</MaxMsgSize>
<MaxObjSize xmlns="syncml:metinf1.1">
4000000
</MaxObjSize>
</Meta>
</SyncHdr>
<SyncBody>
<Put>
<CmdID>
1
</CmdID>
<Meta>
<Type xmlns="syncml:metinf1.1">
application/vnd.syncml-devinf+xml
</Type>
</Meta>
<Item>
<Source>
<LocURI>
./devinf11
</LocURI>
</Source>
<Data>
</Data>
</Item>
</Put>
<Get>
<CmdID>
2
</CmdID>
<Meta>
<Type xmlns="syncml:metinf1.1">
application/vnd.syncml-devinf+xml
</Type>
</Meta>
<Item>
<Target>
<LocURI>
./devinf11
</LocURI>
</Target>
</Item>
</Get>
<Alert>
<CmdID>
3
</CmdID>
<Data>
201
</Data>
<Item>
<Target>
<LocURI>
contacts
</LocURI>
</Target>
<Source>
<LocURI>
./contacts
</LocURI>
</Source>
<Meta>
<Anchor xmlns="syncml:metinf1.1">
<Next>
20030925T175524Z
</Next>
</Anchor>
</Meta>
</Item>
</Alert>
<Final>
</Final>
</SyncBody>
</SyncML>
--- NEW FILE: syncml_server_packet_1.wbxml ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: syncml_server_packet_1.xml ---
<?xml version="1.0"?>
<!DOCTYPE SyncML PUBLIC "-//SYNCML//DTD SyncML 1.1//EN" "http://www.openmobilealliance.org/syncml/docs/syncml_represent_v11_20020215.dtd">
<SyncML xmlns="syncml:SYNCML1.1">
<SyncHdr>
<VerDTD>
1.1
</VerDTD>
<VerProto>
SyncML/1.1
</VerProto>
<SessionID>
0
</SessionID>
<MsgID>
1
</MsgID>
<Target>
<LocURI>
AA712857A16E02800
</LocURI>
<LocName>
anthony
</LocName>
</Target>
<Source>
<LocURI>
http://pyramid6.com:8080/sync
</LocURI>
</Source>
<Meta>
<MaxMsgSize xmlns="syncml:metinf">
50000
</MaxMsgSize>
<MaxObjSize xmlns="syncml:metinf">
4000000
</MaxObjSize>
</Meta>
</SyncHdr>
<SyncBody>
<Status>
<CmdID>
1
</CmdID>
<MsgRef>
1
</MsgRef>
<CmdRef>
0
</CmdRef>
<Cmd>
SyncHdr
</Cmd>
<TargetRef>
http://pyramid6.com:8080/sync
</TargetRef>
<SourceRef>
AA712857A16E02800
</SourceRef>
<Chal>
<Meta>
<Format xmlns="syncml:metinf">
b64
</Format>
<Type xmlns="syncml:metinf">
syncml:auth-md5
</Type>
<NextNonce xmlns="syncml:metinf">
O0JUQVAkISE=
</NextNonce>
</Meta>
</Chal>
<Data>
401
</Data>
</Status>
<Status>
<CmdID>
2
</CmdID>
<MsgRef>
1
</MsgRef>
<CmdRef>
1
</CmdRef>
<Cmd>
Put
</Cmd>
<Data>
401
</Data>
</Status>
<Status>
<CmdID>
3
</CmdID>
<MsgRef>
1
</MsgRef>
<CmdRef>
2
</CmdRef>
<Cmd>
Get
</Cmd>
<Data>
401
</Data>
</Status>
<Status>
<CmdID>
4
</CmdID>
<MsgRef>
1
</MsgRef>
<CmdRef>
3
</CmdRef>
<Cmd>
Alert
</Cmd>
<Data>
401
</Data>
</Status>
<Final>
</Final>
</SyncBody>
</SyncML>
--- NEW FILE: wbxml.wbxml ---
(This appears to be a binary file; contents omitted.)
- Previous message: steffen: server/kolab-horde-framework/kolab-horde-framework/XML_WBXML/WBXML/DTD SyncML.php, NONE, 1.1 SyncMLDevInf.php, NONE, 1.1 SyncMLMetInf.php, NONE, 1.1
- Next message: steffen: server/kolab-horde-framework/kolab-horde-framework/XML_WBXML/tests decode-encode.phpt, NONE, 1.1 decode1.phpt, NONE, 1.1 decode2.phpt, NONE, 1.1 encode-decode.phpt, NONE, 1.1 encode1.phpt, NONE, 1.1 encode2.phpt, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the commits
mailing list