[gsoap] Re: Can we run two gsoap servers on same machine.

2008-10-27 Thread jeroen94704
--- 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

[gsoap] Re:New user - gsoap compile errors

2008-10-27 Thread jeroen94704
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.

[gsoap] Re: string encoding problem

2008-10-27 Thread jeroen94704
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

Re: [gsoap] Re: string encoding problem

2008-10-27 Thread Thomas Porschberg
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

RE: [gsoap] Re:New user - gsoap compile errors

2008-10-27 Thread Tony Baldarelli
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

Re: [gsoap] Re: string encoding problem

2008-10-27 Thread Pete
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)