gSoap Error 400
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: gSoap Error 400

  1. #1
    Join Date
    Mar 2013
    Posts
    2

    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,

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,011

    Re: gSoap Error 400

    What is soap_call___ns1__GetServerTime? i couldn't find it in Google search...
    Victor Nijegorodov

  3. #3
    Join Date
    Mar 2013
    Posts
    2

    Re: gSoap Error 400

    Quote Originally Posted by VictorN View Post
    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center