-
March 18th, 2013, 11:16 AM
#1
gSoap Error 400
Hello,
I'm trying to call a webservice using gSoap with the following code:
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;
}
I get the following error:
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,
-
March 18th, 2013, 03:55 PM
#2
Re: gSoap Error 400
What is soap_call___ns1__GetServerTime? i couldn't find it in Google search...
Victor Nijegorodov
-
March 19th, 2013, 03:22 AM
#3
Re: gSoap Error 400
Originally Posted by VictorN
What is soap_call___ns1__GetServerTime? i couldn't find it in Google search...
This is a call to the specific service I am trying to reach. The error occurs with other services as well.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|