[sync] Problem with RPC

Anthony Mills amills at gascard.net
Sat Dec 13 21:43:33 PST 2003


Ok, I got it working, well not working, but now it calls 
syncml_wbxml.php.  Thanks for your help,

Anthony

BTW I did have the wrong tags. cvs update -dP -A cleared it up

Anthony Mills wrote:
> Never mind, I think I found the problem,  I'm doing a recheck out with 
> update -A, I think I had my original install tags.  Sorry, about that. 
> Let me finish this and see if I can get it working.
> 
> Anthony
> 
> Chuck Hagenbuch wrote:
> 
>> Quoting Anthony Mills <amills at gascard.net>:
>>
>>
>>> This didn't seem to work.  Any other ideas?  Also, why did rpc.php not
>>> have changes to support wbxml.  And the authorization was not bypassed.
>>
>>
>>
>> I guess that's kind of a relief, actually. The wbxml support should be 
>> there,
>> but there isn't any support for bypassing auth yet. Well, actually, 
>> the support
>> was there in rpc.php, I just hadn't actually done it in the SyncML 
>> backend.
>> I've just ocmmitted that change.
>>
>>
>>>  Do I not the correct code? My rpc.php is 1.23.
>>
>>
>>
>> That's the latest version. In it, I have:
>>
>> if (!empty($_SERVER['CONTENT_TYPE'])) {
>>     if (strstr($_SERVER['CONTENT_TYPE'], 'application/vnd.syncml+xml')) {
>>         $serverType = 'syncml';
>>     } elseif (strstr($_SERVER['CONTENT_TYPE'], 
>> 'application/vnd.syncml+wbxml'))
>> {
>>         $serverType = 'syncml_wbxml';
>>
>> ... around lines 20-24.
>>
>> -chuck
>>
>> -- 
>> Charles Hagenbuch, <chuck at horde.org>
>> "I'm really... I'm not too fascinated by green food." - Average Joe
>>
> 
> 
> 




More information about the sync mailing list