Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Use Codec Pin
zhanzongru19-Apr-09 1:36
zhanzongru19-Apr-09 1:36 
QuestionUDP based server and two clients Pin
deadlyabbas16-Apr-09 7:36
deadlyabbas16-Apr-09 7:36 
AnswerRe: UDP based server and two clients Pin
Stuart Dootson16-Apr-09 7:45
professionalStuart Dootson16-Apr-09 7:45 
GeneralRe: UDP based server and two clients Pin
led mike16-Apr-09 7:48
led mike16-Apr-09 7:48 
GeneralRe: UDP based server and two clients Pin
Randor 16-Apr-09 7:58
professional Randor 16-Apr-09 7:58 
GeneralRe: UDP based server and two clients Pin
led mike16-Apr-09 8:02
led mike16-Apr-09 8:02 
GeneralRe: UDP based server and two clients Pin
Stuart Dootson16-Apr-09 8:28
professionalStuart Dootson16-Apr-09 8:28 
QuestionUDP based server and two clients Pin
pandit8416-Apr-09 7:28
pandit8416-Apr-09 7:28 
AnswerRe: UDP based server and two clients Pin
led mike16-Apr-09 7:32
led mike16-Apr-09 7:32 
QuestionCommunication Problem [modified] Pin
ytubis16-Apr-09 7:01
ytubis16-Apr-09 7:01 
AnswerRe: Communication Problem Pin
led mike16-Apr-09 7:35
led mike16-Apr-09 7:35 
GeneralRe: Communication Problem Pin
ytubis16-Apr-09 7:45
ytubis16-Apr-09 7:45 
GeneralRe: Communication Problem Pin
Cedric Moonen16-Apr-09 7:53
Cedric Moonen16-Apr-09 7:53 
GeneralRe: Communication Problem Pin
ytubis16-Apr-09 8:06
ytubis16-Apr-09 8:06 
GeneralRe: Communication Problem Pin
Cedric Moonen16-Apr-09 8:15
Cedric Moonen16-Apr-09 8:15 
GeneralRe: Communication Problem Pin
bulg16-Apr-09 10:35
bulg16-Apr-09 10:35 
GeneralRe: Communication Problem Pin
Cedric Moonen16-Apr-09 20:00
Cedric Moonen16-Apr-09 20:00 
GeneralRe: Communication Problem Pin
led mike16-Apr-09 7:57
led mike16-Apr-09 7:57 
QuestionCombo Box Problem - the drop down list will not display Pin
Don Jones BNYMellon16-Apr-09 6:05
Don Jones BNYMellon16-Apr-09 6:05 
QuestionRe: Combo Box Problem - the drop down list will not display Pin
David Crow16-Apr-09 6:09
David Crow16-Apr-09 6:09 
AnswerRe: Combo Box Problem - the drop down list will not display Pin
Don Jones BNYMellon16-Apr-09 6:39
Don Jones BNYMellon16-Apr-09 6:39 
AnswerRe: Combo Box Problem - the drop down list will not display Pin
job198216-Apr-09 6:51
job198216-Apr-09 6:51 
QuestionConsumig WebService from C++. Pin
Mike Doner16-Apr-09 4:56
Mike Doner16-Apr-09 4:56 
Hi all,

I'm trying to find the best/easiest way to consume a WebService in my application which is written in C/C++. I've seen and tried numerous examples over the course of the last few days, and there seems to be pros and cons no matter which way I go. I thought I'd ask you folks your opinion.

I turned on the "/crl" option on in my project, and added a WebReference. I was able to call the WebService without any problems, but I'm unsure how to handle exceptions when something goes wrong (ie: address is no longer valid). If everything is up and running and things are successful, there are no problems.

Test_WSService      obtws;

try
{
  obtws.Url = "http://localhost:8088/mockObtain_WSSoapBinding1";
  obtws.UpdateObject ( "A", "B", "C" );
}
catch ( ??? )
{
}



With whatever route I go with, I'd like to be able to change the destination url on the fly as this will be specified in a user-modifiable configuration file.

My knowledge of COM is almost nil.

I've seen examples where a developer did all the WebService consuming in a C# dll, and just called that from the C++ application as well.

Whats your past experiences, recommendation?

Anything you could forward would be helpful.

Cheers.
Mike.
AnswerRe: Consumig WebService from C++. Pin
led mike16-Apr-09 7:45
led mike16-Apr-09 7:45 
GeneralRe: Consumig WebService from C++. Pin
Mike Doner20-Apr-09 6:20
Mike Doner20-Apr-09 6:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.