Read-only archive of the All About Symbian forum (2001–2013) · About this archive

GSOAP Stock Quote example program

1 replies · 2,045 views · Started 27 July 2004

Hi, i'm running the 2.0 sdk on the 7.0 symbian os, and i downloaded the IBM gsoap alphaworks software and am trying to run the Stock Quotes example quote. I was able to get the code to compile (with some mild warnings) and run, but when i look up a quote it does not give me any results.

Currently, these are my namespace settings:

const SOAP_NMAC struct Namespace namespaces[] =
{
{"SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/", "http://www.w3.org/2001/09/soap-envelope"},
{"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.org/2003/05/soap-encoding"},
{"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/2001/XMLSchema-instance"},
{"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/2001/XMLSchema"},
{"s0", "http://www.webserviceX.NET/"},
{NULL, NULL}
};

and i'm making this call

rc = soap_call_s0__GetStockQuotes_(soap, "http://www.webservicex.com/stockquote.asmx", "GetQuote", (char*)symbol, Result);

am i doing something wrong here? Or is there somewhere else in the code that i need to fix in order to make this work on the 7.0 os? I know it works on the 6.1 os (its designed for that operating system) but has anyone had success running this on the 7.0? My internet connection works because i can run sockets and services, so that isnt the problem. Thanks in advance

I'm trying to run the stock quote sample on symbian 6.1 device and encountered the exactly same problem - program is running but not returning any quote. My internet connection is also fine. I'd appreciate it very much for sharing your exeperience with me. Thanks!