Hello,
I'm trying to call a webservice using gSoap with the following code:
I get the following error:Code:#include "SoapH.h"
#include "BasicHttpBinding_USCOREIAuthentication.nsmap"
int _tmain(int argc, _TCHAR* argv[])
{
struct soap soap;
soap_init(&soap);
struct _ns1__GetServerTime Send;
struct _ns1__GetServerTimeResponse Response;
int ret = soap_call___ns1__GetServerTime(&soap,0,0,&Send,&Response);
if(ret == SOAP_OK)
int a =1;
else
soap_print_fault(&soap, stderr);
system("Pause");
return 0;
}
Error 400 fault: SOAP-ENV:Server [no subcode]
"HTTP Error"
Detail: HTTP/1.1 400 Bad Request
Press any key to continue . . .
I get the same error trying to connect to different services. Can someone tell me what I'm doing wrong?
thanks,