|
Home > Archive > SQL Anywhere Mobile > October 2005 > Http_mobilink
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Hello,
codewarrrior:4.2.5.7
ASA9:9.0.2.3137
mobilinksync9:9.0.2.3137
palm ,staticC++Api
My aim is to dowload a table from a sql server -via
mobilink.Iam able to do this by tcpip.
but when i use http the mobilink server is not receving any
request.
i started the mobilink server using -x http(port=2439)
My inetpub/scripts/ folder has iaredirect.dll.
in the ultralite application i specified
""hotsync_parms = "stream=http""" it was
""hotsync_parms = "stream=tcpip""" earlier.
Pls take look at my code bits :
********************
******************
static void SynchConfigSet()
{
Char * parms;
Char * hotsync_parms;
my_assert( DEMO_PARMS_SIZE > SYNCHPARMS_SIZE + 20 );
if( Prefs.synchParms[0] != '\0' ) {
// Supply the 'stream' parameter when parameters are set.
// This is used by the HotSync conduit and indicates which
// synchronization stream to use when contacting Mobilink.
parms = Prefs.synchParms;
hotsync_parms = "stream=http";
} else {
// In this case, use only default parameters. For the
conduit,
// parameters may be supplied in the registry of the
machine
// running Hotsync.
parms = NULL;
hotsync_parms = NULL;
}
DemoDB->ConfigureSynch( ULSocketStream(), parms,
Prefs.hotSyncEnabled != 0, hotsync_parms );
}
-------------------------------------
void CDemoDB::ConfigureSy
nch(
p_ul_stream_defn str
eam,
const TCHAR * parms,
bool enableOfflineS
ynch,
const TCHAR * offlineSynchExtraP
arms )
{
// The stream parameter is set using ULSocketStream() or
ULHTTSStream(),
// for example, or is NULL when using the Palm Hotsync
conduit.
m_Stream = stream;
// The stream_parms parameter contains connection and
stream-specific
// options, such as "host=myhost.mycorp.com" or
"host=172.31.143.23".
if( parms != NULL ) {
my_strncpy( m_SynchParms, parms, DEMO_PARMS_SIZE - 1 );
m_SynchParms[DEMO_PARMS_SIZE - 1] = '\0';
} else {
m_SynchParms[0] = '\0';
}
m_EnableOfflineSynch
= enableOfflineSynch;
// Offline synch (like HotSync) requires additional
parameters
// which are not part of a normal synchronization.
if( offlineSynchExtraPar
ms != NULL ) {
my_strncpy( m_OfflineSynchParms,
offlineSynchExtraPar
ms,
DEMO_PARMS_SIZE - 1 );
m_OfflineSynchParms[DEMO_PARMS_SIZE - 1] = '\0';
my_strcat( m_OfflineSynchParms,
TEXT(";") );
} else {
m_OfflineSynchParms[0] = '\0';
}
my_strcat( m_OfflineSynchParms,
m_SynchParms );
}
********************
****************
| |
| Shuchit 2005-10-27, 8:21 am |
| Rado wrote in news:43574a38.4e3a.1681692777@sybase.com:
>
> codewarrrior:4.2.5.7
> ASA9:9.0.2.3137
> mobilinksync9:9.0.2.3137
> palm ,staticC++Api
>
> My aim is to dowload a table from a sql server -via
> mobilink.Iam able to do this by tcpip.
> but when i use http the mobilink server is not receving any
> request.
>
> i started the mobilink server using -x http(port=2439)
>
> My inetpub/scripts/ folder has iaredirect.dll.
>
> in the ultralite application i specified
> ""hotsync_parms = "stream=http""" it was
> ""hotsync_parms = "stream=tcpip""" earlier.
>
Since your mobilink server is listening on http on port 2439 rather than the
default http port (80), you need to also specify the port in the
hotsync_parms.
Try changing hotsync_parms to
""hotsync_parms = " stream=http;port=243
9"""
Shuchit
| |
|
| yes i have mentioned that , but even then the mobilink
server doesnt recevie any request.pls take look at the line
DemoDB->ConfigSync(ULSocket...).....
should i use ULHTTPStream?
> Rado wrote in news:43574a38.4e3a.1681692777@sybase.com:
>
>
> Since your mobilink server is listening on http on port
> 2439 rather than the default http port (80), you need to
> also specify the port in the hotsync_parms.
> Try changing hotsync_parms to
> ""hotsync_parms = " stream=http;port=243
9"""
>
> Shuchit
| |
| David Fishburn 2005-10-27, 8:21 am |
| Rado wrote in news:43579ff1.52cd.1681692777@sybase.com
of sybase.public.sqlanywhere.mobilink:
R> yes i have mentioned that , but even then the mobilink
R> server doesnt recevie any request.pls take look at the line
R>
R> DemoDB->ConfigSync(ULSocket...).....
R>
R> should i use ULHTTPStream?
Yes.
--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng9 -v).
EBFs and Maintenance Releases
http://downloads.sybase.com/swx/sdmain.stm
Developer Community / Whitepapers
http://www.ianywhere.com/developer
CaseXpress - to report bugs
http://casexpress.sybase.com
CodeXchange - Free samples
[url]http://ianywhere.codexchange.sybase.com/servlets/ ProjectDocumentList[
/url]
| |
| Graham Hurst 2005-10-27, 8:21 am |
| I recommend using port 80 for both the MobiLink server and the client,
since that is the standard for HTTP. Port 2439 is registered for
MobiLink's TCP/IP protocol, so one should not use it for HTTP.
Cheers,
Graham
Shuchit wrote:
> Rado wrote in news:43574a38.4e3a.1681692777@sybase.com:
>
>
>
>
> Since your mobilink server is listening on http on port 2439 rather than the
> default http port (80), you need to also specify the port in the
> hotsync_parms.
> Try changing hotsync_parms to
> ""hotsync_parms = " stream=http;port=243
9"""
>
> Shuchit
|
|
|
|
|