I am trying Calculator Example from Doc of Gsoap.
When I tried it from the public Network, it worked perfectly. When i tried it from my office network, Its showing me a bug:
Error -1 fault at source[no subcode]
"End of file or no input: message transfer interrupted"
Detail: [no detail]
After some debugging, I found that soap->href value is remaining NULL after the whole process.
This is the code, given in that Doc.
#include "soapcalcProxy.h"
#include "calc.nsmap"
#include <stdio.h>
#include "stdafx.h"
int main(void)
{
calcProxy service;
double result;
if (service.add(1.0, 2.0, result) == SOAP_OK)
{
std::cout << "The sum of 1.0 and 2.0 is " << result << std::endl;
}
else
{
service.soap_stream_fault(std::cerr);
}
service.destroy(); // delete data and release memory
return 0;
}
When I am checking the value of result variable, it is having the value 0.0000.
I am new to web services. Can anyone please tell me how to fix it?
Some hints will also be very helpful.
Thanks.
Aucun commentaire:
Enregistrer un commentaire