--- In gsoap@yahoogroups.com, aijaz soomro [EMAIL PROTECTED] wrote:
Can we run two gsoap servers on same machine.?? If yes, then How?
Becuase I tried to run two servers on same machine with two
different ports. the server started sucessfully, but only one server
is listening to the service
This is a shot in the dark, but are you including the .nsmap file more
than once in your project? I've gotten some unpredictable results
because of that in the past.
Failing that, trust the compiler output: It looks like the file
addrValClient.c somehow shows up at least twice in your project.
Thomas,
What do you mean when you say the output was latin? Are you talking
about the encoding of the XML messages? Or do you mean output to the
screen? If the latter: gsoap does not print anything. That's the job
of your code.
If you mean that some function that used to return a latin string
Hi Jeroen,
your advice was helpful. In my test client I simply use
printf(%s, mystring.c_str())
to print the result string. And here I get now always UTF-8.
I think I have to use a library like iconv to convert from UTF-8 to
latin.
Although I know it is off-topic: Does anyone have a code
Ok, your second idea was the problem. I did not notice it because
addrValClientLib.c includes addrValClient.c., thus I did not notice that the
same code was being linked twice. Thanks.
Thanks.
Tony
-Original Message-
From: gsoap@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of
Thomas
Here's a function I grabbed from somewhere to approximate a UTF8 to Latin
conversion
void Utf8ToLatin1(std::string out, const std::string in)
{
const char* s = in.c_str();
unsigned char c;
unsigned char outc;
while ((c = *(unsigned char*)s++))
{
if (c 0x7F)