Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Building WS

$
0
0

Hi all ,

 

I need to create a WS which connects to database ( Sql Anywhere 11 / MsSql 2005/2008 )

 

The connections is via ODBC and all parameters for connection in an INI file on the machine's hard disk .

 

 

I have build a WS with 3 functions ,two of them  are connect and disconnect ,and 1 is for retrieve data and returns it .

 

For  Retrieve Function :  I put uf_connect() at start , and uf_disconnect() at the end.

 

uf_connect() returns -99 if connection has been failed .

 

I deployed it to my local machine's IIS ( Running on WS 2008 with IIS 7 )

 

 

Questions :

 

1. Is that wright ? that's how connect / disconnect should be when building WS ?

 

2. Trying the WS,  I always get error code = -99 meaning connect to the data base failed , Why is that ?

 

3. The ini file with the connections parameters placed in directory under c: drive . How should I refer to it in the WS code ?

    as : c:\directory name \ *.ini ?

 

4. Can I use MessageBox() in code or messagebox would not show all ?

 

working with Pb classic 12.5 build 4015

 

Thanks

 

Moshe


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>