How do I create a web/wcf service client in C++? -


i'm using nsis build installer , part of installer details wcf service (i.e. url, user name , password). need validate these details.

in c# create service reference , following:

var proxy = new serviceclient(httpsbinding, serviceendpointaddress); proxy.clientcredentials.username.username = username; proxy.clientcredentials.username.password = password;  try {     proxy.open(); } catch (endpointnotfoundexception ex) {     // return end point's not valid } etc 

now need in c++ can called nsis (i've investigated methods of calling c# nsis , seem overkill want do). i've managed convert code generates binding , end point address i'm stuck on creating serviceclient.

i've added "web reference" project there's not equivalent of serviceclient in servicereference namespace. this:

servicereference::serviceclient ^service = gcnew servicereference::serviceclient(httpsbinding, endpointaddress); 

doesn't compile as:

'serviceclient': not member of 'servicereference'

so how create client?

have tried gsoap?

http://gsoap2.sourceforge.net/

that's we're using access ws* c++ programs.


Comments