Hi,
I created stubs using gsoap and axis c++.
Could not get both the client working,,,
Unlike in gsoap namespaces and endpoint...
my gsoap client can talk to the device but the response fails...
my question is....gsoap has namespaces...
class sBinding
{ public:
/// Runtime engine context allocated in constructor
struct soap *soap;
/// Endpoint URL of service 'sBinding' (change as needed)
const char *endpoint;
/// Constructor allocates soap engine context, sets default endpoint
URL, and sets namespace mapping table
sBinding()
{ soap = soap_new(); endpoint = "http://localhost/xapi"; if (soap &&
!soap->namespaces) { static const struct Namespace namespaces[] =
{
{"SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/", "
http://www.w3.org/*/soap-envelope", NULL},
{"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "
http://www.w3.org/*/soap-encoding", NULL},
{"xsi", "http://www.w3.org/2001/XMLSchema-instance", "
http://www.w3.org/*/XMLSchema-instance", NULL},
{"xsd", "http://www.w3.org/2001/XMLSchema", "
http://www.w3.org/*/XMLSchema", NULL},
{"e10", "http://www..com/XMLSchema/xos/dhcp", NULL, NULL},
{"e9", "http://www..com/XMLSchema/xos/l2protocol", NULL, NULL},
{"e4", "http://www..com/XMLSchema/xos/vlan", NULL, NULL},
{"e7", "http://www..com/XMLSchema/xos/snmp", NULL, NULL},
{"e8", "http://www..com/XMLSchema/xos/system", NULL, NULL},
{"e5", "http://www..com/XMLSchema/xos/port", NULL, NULL},
{"e6", "http://www..com/XMLSchema/xos/aaa", NULL, NULL},
{"e1", "http://www..com/XMLSchema/xos/switch", NULL, NULL},
{"e3", "http://www..com/XMLSchema/xos/common", NULL, NULL},
{NULL, NULL, NULL, NULL}
};
}
simlar method is there in axis c++ service stub is created...
do i need to set all these namespaces, endpoint,protocol type...transport
handler???????
class sBinding :public Stub
{
public:
STORAGE_CLASS_INFO sBinding(const char* pchEndpointUri,
AXIS_PROTOCOL_TYPE eProtocol=APTHTTP1_1);
STORAGE_CLASS_INFO sBinding()
}
when i call sBinding sb("http://device/xml");
i get a runtime error...
any ideas..it very very URGENT..some one throw soem ideas or
solution..............
Thanks