函数实例:
SOAP_FMAC5 int SOAP_FMAC6 __trt__GetServiceCapabilities(struct soap* soap, struct _trt__GetServiceCapabilities *trt__GetServiceCapabilities, struct _trt__GetServiceCapabilitiesResponse *trt__GetServiceCapabilitiesResponse)
{
struct trt__Capabilities* pobjCapabilities = soap_new_trt__Capabilities(soap, -1);
struct trt__ProfileCapabilities* pobjProfileCapabilities = soap_new_trt__ProfileCapabilities(soap, -1);
struct trt__StreamingCapabilities* pobjStreamingCapabilities = soap_new_trt__StreamingCapabilities(soap, -1);
DEBU(__LINE__, __FUNCTION__, "\n");
pobjProfileCapabilities->MaximumNumberOfProfiles = soap_new_int(soap, -1);
*(pobjProfileCapabilities->MaximumNumberOfProfiles) = 10;
pobjCapabilities->ProfileCapabilities = pobjProfileCapabilities;
pobjStreamingCapabilities->RTPMulticast = soap_new_xsd__boolean(soap, -1);
*(pobjStreamingCapabilities->RTPMulticast) = xsd__boolean__true_;
pobjStreamingCapabilities->RTP_USCORETCP = soap_new_xsd__boolean(soap, -1);
*(pobjStreamingCapabilities->RTP_USCORETCP) = xsd__boolean__true_;
pobjStreamingCapabilities->RTP_USCORERTSP_USCORETCP = soap_new_xsd__boolean(soap, -1);
*(pobjStreamingCapabilities->RTP_USCORERTSP_USCORETCP) = xsd__boolean__true_;
pobjStreamingCapabilities->NonAggregateControl = soap_new_xsd__boolean(soap, -1);
*(pobjStreamingCapabilities->NonAggregateControl) = xsd__boolean__true_;
pobjCapabilities->StreamingCapabilities = pobjStreamingCapabilities;
trt__GetServiceCapabilitiesResponse->Capabilities = pobjCapabilities;
pobjCapabilities->SnapshotUri = soap_new_xsd__boolean(soap, -1);
*(pobjCapabilities->SnapshotUri) = xsd__boolean__true_;
pobjCapabilities->Rotation = soap_new_xsd__boolean(soap, -1);
*(pobjCapabilities->Rotation) = xsd__boolean__true_;
return SOAP_OK;
}
初始化都是调用对应的专门的函数。