65,186
社区成员




void accessService(String ^wsdl_url){
try{
collectorService2::CollectorService ws; /** this is the reference to the static web reference**/
ws.ping(); /**this is a simple method to check connection **//**TODO: test to make sure the signature is the same and works**/
testServices(); /** check all services*/
}catch(Exception ^ e){
String ^message =e->Message;
char* str2 = (char*)(void*)Marshal::StringToHGlobalAnsi(message);
cout<<"failed accesing the service from specified url "<< str2<<";"<<endl;
}
}