harshadnatiye-ur4TIblo6goN+BqQ9rBEUg@public.gmane.org
12 years ago
Hi All,
I am new to webservice domain and gsoap as well.I have legacy code to
which I need to provide web interface.
Currently, I am working on Calculator POC application.
My main() function contains below code:
CalculatorService c;
c.bind(NULL, 9090, 100);
c.accept();
soap_begin_serve(&c)
When I invoke my service thru' browser I message as,
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>HTTP GET method not implemented</faultstring>
</SOAP-ENV:Fault>
My calc.h contains below code
// Content of file "calc.h":
//gsoap ns service name: Calculator
//gsoap ns service style: rpc
//gsoap ns service encoding: encoded
//gsoap ns service location: http://www.cs.fsu.edu/~engelen/calc.cgi
//gsoap ns schema namespace: urn:calc
//gsoap ns service method-action: add ""
int ns__add(double a, double b, double &result);
int ns__sub(double a, double b, double &result);
int ns__mul(double a, double b, double &result);
int ns__div(double a, double b, double &result);
I had used soapcpp2 -i calc.h to generate the required files.
Can you let me know where I am going wrong ?
Your suggestions are welcome.
Thanks in advance.
Regards,
Harshad
I am new to webservice domain and gsoap as well.I have legacy code to
which I need to provide web interface.
Currently, I am working on Calculator POC application.
My main() function contains below code:
CalculatorService c;
c.bind(NULL, 9090, 100);
c.accept();
soap_begin_serve(&c)
When I invoke my service thru' browser I message as,
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>HTTP GET method not implemented</faultstring>
</SOAP-ENV:Fault>
My calc.h contains below code
// Content of file "calc.h":
//gsoap ns service name: Calculator
//gsoap ns service style: rpc
//gsoap ns service encoding: encoded
//gsoap ns service location: http://www.cs.fsu.edu/~engelen/calc.cgi
//gsoap ns schema namespace: urn:calc
//gsoap ns service method-action: add ""
int ns__add(double a, double b, double &result);
int ns__sub(double a, double b, double &result);
int ns__mul(double a, double b, double &result);
int ns__div(double a, double b, double &result);
I had used soapcpp2 -i calc.h to generate the required files.
Can you let me know where I am going wrong ?
Your suggestions are welcome.
Thanks in advance.
Regards,
Harshad