Commit 91aa0fc9 authored by claes's avatar claes

New namespace s0, time type, and Value type

parent e0ffcc2d
/* /*
* Proview $Id: opc_provider.cpp,v 1.6 2007-03-15 08:07:50 claes Exp $ * Proview $Id: opc_provider.cpp,v 1.7 2007-03-15 15:25:36 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -57,11 +57,12 @@ void opc_provider::object( co_procom *pcom) ...@@ -57,11 +57,12 @@ void opc_provider::object( co_procom *pcom)
objectOid( pcom, m_list[0].po.fchoix); objectOid( pcom, m_list[0].po.fchoix);
} }
void opc_provider::insert_object( pwr_tOix fth, pwr_tOix bws, ns1__BrowseElement *element, void opc_provider::insert_object( pwr_tOix fth, pwr_tOix bws, s0__BrowseElement *element,
int first, int last, int load_children, std::string *path) int first, int last, int load_children, std::string *path)
{ {
opcprv_obj o; opcprv_obj o;
char *valp; xsd__anyType *valp;
int opctype;
strcpy( o.po.name, name_to_objectname( (char *) element->Name->c_str())); strcpy( o.po.name, name_to_objectname( (char *) element->Name->c_str()));
if ( element->ItemPath) if ( element->ItemPath)
...@@ -80,139 +81,146 @@ void opc_provider::insert_object( pwr_tOix fth, pwr_tOix bws, ns1__BrowseElement ...@@ -80,139 +81,146 @@ void opc_provider::insert_object( pwr_tOix fth, pwr_tOix bws, ns1__BrowseElement
o.po.body_size = sizeof(pwr_sClass_Opc_Hier); o.po.body_size = sizeof(pwr_sClass_Opc_Hier);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
if ( opc_get_property( element->Properties, opc_mProperty_Description, &valp)) if ( opc_get_property( element->Properties, opc_mProperty_Description, &valp))
strncpy( ((pwr_sClass_Opc_Hier *)o.po.body)->Description, valp, strncpy( ((pwr_sClass_Opc_Hier *)o.po.body)->Description,
((xsd__string *)valp)->__item.c_str(),
sizeof(((pwr_sClass_Opc_Hier *)o.po.body)->Description)); sizeof(((pwr_sClass_Opc_Hier *)o.po.body)->Description));
} }
else { else {
if ( opc_get_property( element->Properties, opc_mProperty_DataType, &valp)) { if ( opc_get_property( element->Properties, opc_mProperty_DataType, &valp)) {
if ( strcmp( valp, "string") == 0) { if ( !opc_string_to_opctype( ((xsd__string *)valp)->__item.c_str(), &opctype))
opctype = opc_eDataType_;
switch ( opctype) {
case opc_eDataType_string:
o.po.cid = pwr_cClass_Opc_String; o.po.cid = pwr_cClass_Opc_String;
o.po.body_size = sizeof(pwr_sClass_Opc_String); o.po.body_size = sizeof(pwr_sClass_Opc_String);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
} break;
else if ( strcmp( valp, "boolean") == 0) { case opc_eDataType_boolean:
o.po.cid = pwr_cClass_Opc_Boolean; o.po.cid = pwr_cClass_Opc_Boolean;
o.po.body_size = sizeof(pwr_sClass_Opc_Boolean); o.po.body_size = sizeof(pwr_sClass_Opc_Boolean);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
} break;
else if ( strcmp( valp, "float") == 0) { case opc_eDataType_float:
o.po.cid = pwr_cClass_Opc_Float; o.po.cid = pwr_cClass_Opc_Float;
o.po.body_size = sizeof(pwr_sClass_Opc_Float); o.po.body_size = sizeof(pwr_sClass_Opc_Float);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
} break;
else if ( strcmp( valp, "double") == 0) { case opc_eDataType_double:
o.po.cid = pwr_cClass_Opc_Double;
o.po.body_size = sizeof(pwr_sClass_Opc_Double);
o.po.body = calloc( 1, o.po.body_size);
}
else if ( strcmp( valp, "double") == 0) {
o.po.cid = pwr_cClass_Opc_Double; o.po.cid = pwr_cClass_Opc_Double;
o.po.body_size = sizeof(pwr_sClass_Opc_Double); o.po.body_size = sizeof(pwr_sClass_Opc_Double);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
} break;
else if ( strcmp( valp, "decimal") == 0) { case opc_eDataType_decimal:
o.po.cid = pwr_cClass_Opc_Decimal; o.po.cid = pwr_cClass_Opc_Decimal;
o.po.body_size = sizeof(pwr_sClass_Opc_Decimal); o.po.body_size = sizeof(pwr_sClass_Opc_Decimal);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
} break;
else if ( strcmp( valp, "int") == 0) { case opc_eDataType_int:
o.po.cid = pwr_cClass_Opc_Int; o.po.cid = pwr_cClass_Opc_Int;
o.po.body_size = sizeof(pwr_sClass_Opc_Int); o.po.body_size = sizeof(pwr_sClass_Opc_Int);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
} break;
else if ( strcmp( valp, "short") == 0) { case opc_eDataType_short:
o.po.cid = pwr_cClass_Opc_Short; o.po.cid = pwr_cClass_Opc_Short;
o.po.body_size = sizeof(pwr_sClass_Opc_Short); o.po.body_size = sizeof(pwr_sClass_Opc_Short);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
} break;
else if ( strcmp( valp, "byte") == 0) { case opc_eDataType_byte:
o.po.cid = pwr_cClass_Opc_Byte; o.po.cid = pwr_cClass_Opc_Byte;
o.po.body_size = sizeof(pwr_sClass_Opc_Byte); o.po.body_size = sizeof(pwr_sClass_Opc_Byte);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
} break;
else if ( strcmp( valp, "unsignedLong") == 0) { case opc_eDataType_unsignedLong:
o.po.cid = pwr_cClass_Opc_UnsignedLong; o.po.cid = pwr_cClass_Opc_UnsignedLong;
o.po.body_size = sizeof(pwr_sClass_Opc_UnsignedLong); o.po.body_size = sizeof(pwr_sClass_Opc_UnsignedLong);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
} break;
else if ( strcmp( valp, "unsignedInt") == 0) { case opc_eDataType_unsignedInt:
o.po.cid = pwr_cClass_Opc_UnsignedInt; o.po.cid = pwr_cClass_Opc_UnsignedInt;
o.po.body_size = sizeof(pwr_sClass_Opc_UnsignedInt); o.po.body_size = sizeof(pwr_sClass_Opc_UnsignedInt);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
} break;
else if ( strcmp( valp, "unsignedShort") == 0) { case opc_eDataType_unsignedShort:
o.po.cid = pwr_cClass_Opc_UnsignedShort; o.po.cid = pwr_cClass_Opc_UnsignedShort;
o.po.body_size = sizeof(pwr_sClass_Opc_UnsignedShort); o.po.body_size = sizeof(pwr_sClass_Opc_UnsignedShort);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
} break;
else if ( strcmp( valp, "unsignedByte") == 0) { case opc_eDataType_unsignedByte:
o.po.cid = pwr_cClass_Opc_UnsignedByte; o.po.cid = pwr_cClass_Opc_UnsignedByte;
o.po.body_size = sizeof(pwr_sClass_Opc_UnsignedByte); o.po.body_size = sizeof(pwr_sClass_Opc_UnsignedByte);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
} break;
else if ( strcmp( valp, "base64Binary") == 0) { case opc_eDataType_base64Binary:
o.po.cid = pwr_cClass_Opc_Base64Binary; o.po.cid = pwr_cClass_Opc_Base64Binary;
o.po.body_size = sizeof(pwr_sClass_Opc_Base64Binary); o.po.body_size = sizeof(pwr_sClass_Opc_Base64Binary);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
} break;
else if ( strcmp( valp, "dateTime") == 0) { case opc_eDataType_dateTime:
o.po.cid = pwr_cClass_Opc_DateTime; o.po.cid = pwr_cClass_Opc_DateTime;
o.po.body_size = sizeof(pwr_sClass_Opc_DateTime); o.po.body_size = sizeof(pwr_sClass_Opc_DateTime);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
} break;
else if ( strcmp( valp, "time") == 0) { case opc_eDataType_time:
o.po.cid = pwr_cClass_Opc_Time; o.po.cid = pwr_cClass_Opc_Time;
o.po.body_size = sizeof(pwr_sClass_Opc_Time); o.po.body_size = sizeof(pwr_sClass_Opc_Time);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
} break;
else if ( strcmp( valp, "date") == 0) { case opc_eDataType_date:
o.po.cid = pwr_cClass_Opc_Date; o.po.cid = pwr_cClass_Opc_Date;
o.po.body_size = sizeof(pwr_sClass_Opc_Date); o.po.body_size = sizeof(pwr_sClass_Opc_Date);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
} break;
else if ( strcmp( valp, "duration") == 0) { case opc_eDataType_duration:
o.po.cid = pwr_cClass_Opc_Duration; o.po.cid = pwr_cClass_Opc_Duration;
o.po.body_size = sizeof(pwr_sClass_Opc_Duration); o.po.body_size = sizeof(pwr_sClass_Opc_Duration);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
} break;
else if ( strcmp( valp, "QName") == 0) { case opc_eDataType_QName:
o.po.cid = pwr_cClass_Opc_QName; o.po.cid = pwr_cClass_Opc_QName;
o.po.body_size = sizeof(pwr_sClass_Opc_QName); o.po.body_size = sizeof(pwr_sClass_Opc_QName);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
default:
o.po.cid = pwr_cClass_Opc_Hier;
o.po.body_size = sizeof(pwr_sClass_Opc_Hier);
o.po.body = calloc( 1, o.po.body_size);
} }
if ( opc_get_property( element->Properties, opc_mProperty_Description, &valp)) { if ( opc_get_property( element->Properties, opc_mProperty_Description, &valp)) {
pwr_tString80 desc;
strncpy( desc, ((xsd__string *)valp)->__item.c_str(), sizeof(desc));
switch ( o.po.cid) { switch ( o.po.cid) {
case pwr_cClass_Opc_Float: case pwr_cClass_Opc_Float:
strncpy( ((pwr_sClass_Opc_Float *)o.po.body)->Description, valp, strncpy( ((pwr_sClass_Opc_Float *)o.po.body)->Description, desc,
sizeof(((pwr_sClass_Opc_Float *)o.po.body)->Description)); sizeof(((pwr_sClass_Opc_Float *)o.po.body)->Description));
break; break;
case pwr_cClass_Opc_Double: case pwr_cClass_Opc_Double:
strncpy( ((pwr_sClass_Opc_Float *)o.po.body)->Description, valp, strncpy( ((pwr_sClass_Opc_Float *)o.po.body)->Description, desc,
sizeof(((pwr_sClass_Opc_Double *)o.po.body)->Description)); sizeof(((pwr_sClass_Opc_Double *)o.po.body)->Description));
break; break;
case pwr_cClass_Opc_Int: case pwr_cClass_Opc_Int:
strncpy( ((pwr_sClass_Opc_Int *)o.po.body)->Description, valp, strncpy( ((pwr_sClass_Opc_Int *)o.po.body)->Description, desc,
sizeof(((pwr_sClass_Opc_Int *)o.po.body)->Description)); sizeof(((pwr_sClass_Opc_Int *)o.po.body)->Description));
break; break;
case pwr_cClass_Opc_Short: case pwr_cClass_Opc_Short:
strncpy( ((pwr_sClass_Opc_Short *)o.po.body)->Description, valp, strncpy( ((pwr_sClass_Opc_Short *)o.po.body)->Description, desc,
sizeof(((pwr_sClass_Opc_Short *)o.po.body)->Description)); sizeof(((pwr_sClass_Opc_Short *)o.po.body)->Description));
break; break;
case pwr_cClass_Opc_Byte: case pwr_cClass_Opc_Byte:
strncpy( ((pwr_sClass_Opc_Byte *)o.po.body)->Description, valp, strncpy( ((pwr_sClass_Opc_Byte *)o.po.body)->Description, desc,
sizeof(((pwr_sClass_Opc_Byte *)o.po.body)->Description)); sizeof(((pwr_sClass_Opc_Byte *)o.po.body)->Description));
break; break;
case pwr_cClass_Opc_UnsignedInt: case pwr_cClass_Opc_UnsignedInt:
strncpy( ((pwr_sClass_Opc_UnsignedInt *)o.po.body)->Description, valp, strncpy( ((pwr_sClass_Opc_UnsignedInt *)o.po.body)->Description, desc,
sizeof(((pwr_sClass_Opc_UnsignedInt *)o.po.body)->Description)); sizeof(((pwr_sClass_Opc_UnsignedInt *)o.po.body)->Description));
break; break;
case pwr_cClass_Opc_UnsignedShort: case pwr_cClass_Opc_UnsignedShort:
strncpy( ((pwr_sClass_Opc_UnsignedShort *)o.po.body)->Description, valp, strncpy( ((pwr_sClass_Opc_UnsignedShort *)o.po.body)->Description, desc,
sizeof(((pwr_sClass_Opc_UnsignedShort *)o.po.body)->Description)); sizeof(((pwr_sClass_Opc_UnsignedShort *)o.po.body)->Description));
break; break;
case pwr_cClass_Opc_UnsignedByte: case pwr_cClass_Opc_UnsignedByte:
strncpy( ((pwr_sClass_Opc_UnsignedByte *)o.po.body)->Description, valp, strncpy( ((pwr_sClass_Opc_UnsignedByte *)o.po.body)->Description, desc,
sizeof(((pwr_sClass_Opc_UnsignedByte *)o.po.body)->Description)); sizeof(((pwr_sClass_Opc_UnsignedByte *)o.po.body)->Description));
break; break;
} }
...@@ -222,11 +230,13 @@ void opc_provider::insert_object( pwr_tOix fth, pwr_tOix bws, ns1__BrowseElement ...@@ -222,11 +230,13 @@ void opc_provider::insert_object( pwr_tOix fth, pwr_tOix bws, ns1__BrowseElement
o.po.cid = pwr_cClass_Opc_Hier; o.po.cid = pwr_cClass_Opc_Hier;
o.po.body_size = sizeof(pwr_sClass_Opc_Hier); o.po.body_size = sizeof(pwr_sClass_Opc_Hier);
o.po.body = calloc( 1, o.po.body_size); o.po.body = calloc( 1, o.po.body_size);
if ( opc_get_property( element->Properties, opc_mProperty_Description, &valp)) if ( opc_get_property( element->Properties, opc_mProperty_Description, &valp)) {
strncpy( ((pwr_sClass_Opc_Hier *)o.po.body)->Description, valp, strncpy( ((pwr_sClass_Opc_Hier *)o.po.body)->Description,
((xsd__string *)valp)->__item.c_str(),
sizeof(((pwr_sClass_Opc_Hier *)o.po.body)->Description)); sizeof(((pwr_sClass_Opc_Hier *)o.po.body)->Description));
} }
} }
}
if ( first) if ( first)
m_list[fth].po.fchoix = o.po.oix; m_list[fth].po.fchoix = o.po.oix;
else { else {
...@@ -253,14 +263,14 @@ void opc_provider::insert_object( pwr_tOix fth, pwr_tOix bws, ns1__BrowseElement ...@@ -253,14 +263,14 @@ void opc_provider::insert_object( pwr_tOix fth, pwr_tOix bws, ns1__BrowseElement
m_list.push_back( o); m_list.push_back( o);
if ( opc_get_property( element->Properties, opc_mProperty_EuType, &valp)) { if ( opc_get_property( element->Properties, opc_mProperty_EuType, &valp)) {
if ( strcmp( valp, "analog") == 0) if ( ((xsd__string *)valp)->__item == "analog")
m_list[o.po.oix].po.flags |= procom_obj_mFlags_Analog; m_list[o.po.oix].po.flags |= procom_obj_mFlags_Analog;
} }
if ( m_list[o.po.oix].po.flags & procom_obj_mFlags_Analog) { if ( m_list[o.po.oix].po.flags & procom_obj_mFlags_Analog) {
// Get analog properties // Get analog properties
_ns1__GetProperties get_properties; _s0__GetProperties get_properties;
_ns1__GetPropertiesResponse properties_response; _s0__GetPropertiesResponse properties_response;
ns1__ItemIdentifier id; s0__ItemIdentifier id;
pwr_tFloat32 high_eu = 0; pwr_tFloat32 high_eu = 0;
pwr_tFloat32 low_eu = 0; pwr_tFloat32 low_eu = 0;
pwr_tString16 engineering_units = ""; pwr_tString16 engineering_units = "";
...@@ -273,22 +283,23 @@ void opc_provider::insert_object( pwr_tOix fth, pwr_tOix bws, ns1__BrowseElement ...@@ -273,22 +283,23 @@ void opc_provider::insert_object( pwr_tOix fth, pwr_tOix bws, ns1__BrowseElement
opc_mProperty_HighEU | opc_mProperty_LowEU | opc_mProperty_HighEU | opc_mProperty_LowEU |
opc_mProperty_EngineeringUnits); opc_mProperty_EngineeringUnits);
if ( soap_call___ns1__GetProperties( &soap, opc_endpoint, NULL, &get_properties, if ( soap_call___s0__GetProperties( &soap, opc_endpoint, NULL, &get_properties,
&properties_response) == SOAP_OK) { &properties_response) == SOAP_OK) {
if ( properties_response.PropertyLists.size() > 0 && if ( properties_response.PropertyLists.size() > 0 &&
properties_response.PropertyLists[0]->Properties.size() > 0) { properties_response.PropertyLists[0]->Properties.size() > 0) {
if ( opc_get_property( properties_response.PropertyLists[0]->Properties, if ( opc_get_property( properties_response.PropertyLists[0]->Properties,
opc_mProperty_HighEU, &valp)) { opc_mProperty_HighEU, &valp)) {
sscanf( valp, "%f", &high_eu); high_eu = ((xsd__double *)valp)->__item;
} }
if ( opc_get_property( properties_response.PropertyLists[0]->Properties, if ( opc_get_property( properties_response.PropertyLists[0]->Properties,
opc_mProperty_LowEU, &valp)) { opc_mProperty_LowEU, &valp)) {
sscanf( valp, "%f", &low_eu); low_eu = ((xsd__double *)valp)->__item;
} }
if ( opc_get_property( properties_response.PropertyLists[0]->Properties, if ( opc_get_property( properties_response.PropertyLists[0]->Properties,
opc_mProperty_EngineeringUnits, &valp)) { opc_mProperty_EngineeringUnits, &valp)) {
strncpy( engineering_units, valp, sizeof(engineering_units)); strncpy( engineering_units, ((xsd__string *)valp)->__item.c_str(),
sizeof(engineering_units));
} }
void *body = m_list[o.po.oix].po.body; void *body = m_list[o.po.oix].po.body;
...@@ -311,15 +322,15 @@ void opc_provider::insert_object( pwr_tOix fth, pwr_tOix bws, ns1__BrowseElement ...@@ -311,15 +322,15 @@ void opc_provider::insert_object( pwr_tOix fth, pwr_tOix bws, ns1__BrowseElement
if ( load_children) { if ( load_children) {
_ns1__Browse browse; _s0__Browse browse;
_ns1__BrowseResponse browse_response; _s0__BrowseResponse browse_response;
browse.ItemName = new std::string( o.item_name); browse.ItemName = new std::string( o.item_name);
opc_mask_to_propertynames( browse.PropertyNames, opc_mask_to_propertynames( browse.PropertyNames,
opc_mProperty_DataType | opc_mProperty_Description | opc_mProperty_DataType | opc_mProperty_Description |
opc_mProperty_EuType); opc_mProperty_EuType);
if ( soap_call___ns1__Browse( &soap, opc_endpoint, NULL, &browse, &browse_response) == if ( soap_call___s0__Browse( &soap, opc_endpoint, NULL, &browse, &browse_response) ==
SOAP_OK) { SOAP_OK) {
pwr_tOix next_bws; pwr_tOix next_bws;
pwr_tOix bws = 0; pwr_tOix bws = 0;
...@@ -365,13 +376,13 @@ void opc_provider::objectOid( co_procom *pcom, pwr_tOix oix) ...@@ -365,13 +376,13 @@ void opc_provider::objectOid( co_procom *pcom, pwr_tOix oix)
m_list.push_back( so); m_list.push_back( so);
// Load Rootlist // Load Rootlist
_ns1__Browse browse; _s0__Browse browse;
_ns1__BrowseResponse browse_response; _s0__BrowseResponse browse_response;
opc_mask_to_propertynames( browse.PropertyNames, opc_mask_to_propertynames( browse.PropertyNames,
opc_mProperty_DataType | opc_mProperty_Description | opc_mProperty_DataType | opc_mProperty_Description |
opc_mProperty_EuType); opc_mProperty_EuType);
if ( soap_call___ns1__Browse( &soap, opc_endpoint, NULL, &browse, &browse_response) == if ( soap_call___s0__Browse( &soap, opc_endpoint, NULL, &browse, &browse_response) ==
SOAP_OK) { SOAP_OK) {
pwr_tOix bws = so.po.oix; pwr_tOix bws = so.po.oix;
pwr_tOix next_bws; pwr_tOix next_bws;
...@@ -387,15 +398,15 @@ void opc_provider::objectOid( co_procom *pcom, pwr_tOix oix) ...@@ -387,15 +398,15 @@ void opc_provider::objectOid( co_procom *pcom, pwr_tOix oix)
} }
else if ( oix < m_list.size()) { else if ( oix < m_list.size()) {
if ( !(m_list[oix].po.flags & procom_obj_mFlags_Loaded)) { if ( !(m_list[oix].po.flags & procom_obj_mFlags_Loaded)) {
_ns1__Browse browse; _s0__Browse browse;
_ns1__BrowseResponse browse_response; _s0__BrowseResponse browse_response;
browse.ItemName = new std::string( m_list[oix].item_name); browse.ItemName = new std::string( m_list[oix].item_name);
opc_mask_to_propertynames( browse.PropertyNames, opc_mask_to_propertynames( browse.PropertyNames,
opc_mProperty_DataType | opc_mProperty_Description | opc_mProperty_DataType | opc_mProperty_Description |
opc_mProperty_EuType); opc_mProperty_EuType);
if ( soap_call___ns1__Browse( &soap, opc_endpoint, NULL, &browse, &browse_response) == if ( soap_call___s0__Browse( &soap, opc_endpoint, NULL, &browse, &browse_response) ==
SOAP_OK) { SOAP_OK) {
pwr_tOix next_bws; pwr_tOix next_bws;
pwr_tOix bws = 0; pwr_tOix bws = 0;
...@@ -531,18 +542,18 @@ void opc_provider::readAttribute( co_procom *pcom, pwr_tOix oix, unsigned int of ...@@ -531,18 +542,18 @@ void opc_provider::readAttribute( co_procom *pcom, pwr_tOix oix, unsigned int of
case pwr_cClass_Opc_Float: case pwr_cClass_Opc_Float:
if ( offset == (unsigned int) ((char *) &((pwr_sClass_Opc_Float *)m_list[oix].po.body)->Value - if ( offset == (unsigned int) ((char *) &((pwr_sClass_Opc_Float *)m_list[oix].po.body)->Value -
(char *)m_list[oix].po.body)) { (char *)m_list[oix].po.body)) {
_ns1__Read read; _s0__Read read;
_ns1__ReadResponse read_response; _s0__ReadResponse read_response;
ns1__ReadRequestItem *item = new ns1__ReadRequestItem(); s0__ReadRequestItem *item = new s0__ReadRequestItem();
item->ItemName = new std::string( m_list[oix].item_name); item->ItemName = new std::string( m_list[oix].item_name);
read.ItemList = new ns1__ReadRequestItemList; read.ItemList = new s0__ReadRequestItemList;
read.ItemList->Items.push_back( item); read.ItemList->Items.push_back( item);
if ( soap_call___ns1__Read( &soap, opc_endpoint, NULL, &read, &read_response) == if ( soap_call___s0__Read( &soap, opc_endpoint, NULL, &read, &read_response) ==
SOAP_OK) { SOAP_OK) {
if ( read_response.RItemList && read_response.RItemList->Items.size() > 0) { if ( read_response.RItemList && read_response.RItemList->Items.size() > 0) {
printf( "Read Value: \"%s\"\n", read_response.RItemList->Items[0]->Value); // printf( "Read Value: \"%s\"\n", read_response.RItemList->Items[0]->Value);
} }
} }
} }
...@@ -550,21 +561,23 @@ void opc_provider::readAttribute( co_procom *pcom, pwr_tOix oix, unsigned int of ...@@ -550,21 +561,23 @@ void opc_provider::readAttribute( co_procom *pcom, pwr_tOix oix, unsigned int of
case pwr_cClass_Opc_String: case pwr_cClass_Opc_String:
if ( offset == (unsigned int) ((char *) ((pwr_sClass_Opc_String *)m_list[oix].po.body)->Value - if ( offset == (unsigned int) ((char *) ((pwr_sClass_Opc_String *)m_list[oix].po.body)->Value -
(char *)m_list[oix].po.body)) { (char *)m_list[oix].po.body)) {
_ns1__Read read; _s0__Read read;
_ns1__ReadResponse read_response; _s0__ReadResponse read_response;
ns1__ReadRequestItem *item = new ns1__ReadRequestItem(); s0__ReadRequestItem *item = new s0__ReadRequestItem();
item->ItemName = new std::string( m_list[oix].item_name); item->ItemName = new std::string( m_list[oix].item_name);
read.ItemList = new ns1__ReadRequestItemList; read.ItemList = new s0__ReadRequestItemList;
read.ItemList->Items.push_back( item); read.ItemList->Items.push_back( item);
if ( soap_call___ns1__Read( &soap, opc_endpoint, NULL, &read, &read_response) == if ( soap_call___s0__Read( &soap, opc_endpoint, NULL, &read, &read_response) ==
SOAP_OK) { SOAP_OK) {
if ( read_response.RItemList && read_response.RItemList->Items.size() > 0) { if ( read_response.RItemList && read_response.RItemList->Items.size() > 0) {
#if 0
strncpy( ((pwr_sClass_Opc_String *)m_list[oix].po.body)->Value, strncpy( ((pwr_sClass_Opc_String *)m_list[oix].po.body)->Value,
read_response.RItemList->Items[0]->Value, read_response.RItemList->Items[0]->Value,
sizeof(((pwr_sClass_Opc_String *)m_list[oix].po.body)->Value)); sizeof(((pwr_sClass_Opc_String *)m_list[oix].po.body)->Value));
printf( "Read Value: \"%s\"\n", read_response.RItemList->Items[0]->Value); printf( "Read Value: \"%s\"\n", read_response.RItemList->Items[0]->Value);
#endif
} }
} }
} }
...@@ -607,16 +620,16 @@ void opc_provider::subAssociateBuffer( co_procom *pcom, void **buff, int oix, in ...@@ -607,16 +620,16 @@ void opc_provider::subAssociateBuffer( co_procom *pcom, void **buff, int oix, in
case pwr_cClass_Opc_QName: case pwr_cClass_Opc_QName:
if ( *buff == ((pwr_sClass_Opc_String *)m_list[oix].po.body)->Value) { if ( *buff == ((pwr_sClass_Opc_String *)m_list[oix].po.body)->Value) {
// Add opc subscription // Add opc subscription
_ns1__Subscribe subscribe; _s0__Subscribe subscribe;
_ns1__SubscribeResponse subscribe_response; _s0__SubscribeResponse subscribe_response;
char handle[20]; char handle[20];
subscribe.Options = new ns1__RequestOptions(); subscribe.Options = new s0__RequestOptions();
subscribe.Options->ReturnItemTime = (bool *) malloc( sizeof(bool)); subscribe.Options->ReturnItemTime = (bool *) malloc( sizeof(bool));
*subscribe.Options->ReturnItemTime = true; *subscribe.Options->ReturnItemTime = true;
subscribe.ItemList = new ns1__SubscribeRequestItemList(); subscribe.ItemList = new s0__SubscribeRequestItemList();
ns1__SubscribeRequestItem *ritem = new ns1__SubscribeRequestItem(); s0__SubscribeRequestItem *ritem = new s0__SubscribeRequestItem();
ritem->ItemName = new std::string( m_list[oix].item_name); ritem->ItemName = new std::string( m_list[oix].item_name);
sprintf( handle, "%d", oix); sprintf( handle, "%d", oix);
ritem->ClientItemHandle = new std::string( handle); ritem->ClientItemHandle = new std::string( handle);
...@@ -625,7 +638,7 @@ void opc_provider::subAssociateBuffer( co_procom *pcom, void **buff, int oix, in ...@@ -625,7 +638,7 @@ void opc_provider::subAssociateBuffer( co_procom *pcom, void **buff, int oix, in
subscribe.ItemList->Items.push_back( ritem); subscribe.ItemList->Items.push_back( ritem);
if ( soap_call___ns1__Subscribe( &soap, opc_endpoint, NULL, &subscribe, &subscribe_response) == if ( soap_call___s0__Subscribe( &soap, opc_endpoint, NULL, &subscribe, &subscribe_response) ==
SOAP_OK) { SOAP_OK) {
opcprv_sub sub; opcprv_sub sub;
...@@ -651,12 +664,12 @@ void opc_provider::subDisassociateBuffer( co_procom *pcom, pwr_tSubid sid) ...@@ -651,12 +664,12 @@ void opc_provider::subDisassociateBuffer( co_procom *pcom, pwr_tSubid sid)
sublist_iterator it = m_sublist.find( sid.rix); sublist_iterator it = m_sublist.find( sid.rix);
if ( it != m_sublist.end()) { if ( it != m_sublist.end()) {
// Cancel subscription // Cancel subscription
_ns1__SubscriptionCancel subcancel; _s0__SubscriptionCancel subcancel;
_ns1__SubscriptionCancelResponse subcancel_response; _s0__SubscriptionCancelResponse subcancel_response;
subcancel.ServerSubHandle = new std::string(it->second.handle); subcancel.ServerSubHandle = new std::string(it->second.handle);
if ( soap_call___ns1__SubscriptionCancel( &soap, opc_endpoint, NULL, &subcancel, &subcancel_response) == if ( soap_call___s0__SubscriptionCancel( &soap, opc_endpoint, NULL, &subcancel, &subcancel_response) ==
SOAP_OK) { SOAP_OK) {
// Where are the fault codes ??? // Where are the fault codes ???
} }
...@@ -669,8 +682,8 @@ void opc_provider::subDisassociateBuffer( co_procom *pcom, pwr_tSubid sid) ...@@ -669,8 +682,8 @@ void opc_provider::subDisassociateBuffer( co_procom *pcom, pwr_tSubid sid)
void opc_provider::cyclic( co_procom *pcom) void opc_provider::cyclic( co_procom *pcom)
{ {
int size = 0; int size = 0;
_ns1__SubscriptionPolledRefresh subpoll; _s0__SubscriptionPolledRefresh subpoll;
_ns1__SubscriptionPolledRefreshResponse subpoll_response; _s0__SubscriptionPolledRefreshResponse subpoll_response;
for ( sublist_iterator it = m_sublist.begin(); it != m_sublist.end(); it++) { for ( sublist_iterator it = m_sublist.begin(); it != m_sublist.end(); it++) {
...@@ -679,7 +692,7 @@ void opc_provider::cyclic( co_procom *pcom) ...@@ -679,7 +692,7 @@ void opc_provider::cyclic( co_procom *pcom)
} }
if ( size) { if ( size) {
if ( soap_call___ns1__SubscriptionPolledRefresh( &soap, opc_endpoint, NULL, &subpoll, &subpoll_response) == if ( soap_call___s0__SubscriptionPolledRefresh( &soap, opc_endpoint, NULL, &subpoll, &subpoll_response) ==
SOAP_OK) { SOAP_OK) {
if ( (int) subpoll_response.RItemList.size() != size) { if ( (int) subpoll_response.RItemList.size() != size) {
return; return;
...@@ -691,7 +704,7 @@ void opc_provider::cyclic( co_procom *pcom) ...@@ -691,7 +704,7 @@ void opc_provider::cyclic( co_procom *pcom)
switch ( m_list[it->second.oix].po.cid) { switch ( m_list[it->second.oix].po.cid) {
case pwr_cClass_Opc_String: case pwr_cClass_Opc_String:
strcpy( ((pwr_sClass_Opc_String *)m_list[it->second.oix].po.body)->Value, strcpy( ((pwr_sClass_Opc_String *)m_list[it->second.oix].po.body)->Value,
subpoll_response.RItemList[idx]->Items[0]->Value); ((xsd__string *)subpoll_response.RItemList[idx]->Items[0]->Value)->__item.c_str());
break; break;
default: ; default: ;
} }
...@@ -763,21 +776,21 @@ bool opc_provider::find( pwr_tOix fthoix, char *name, pwr_tOix *oix) ...@@ -763,21 +776,21 @@ bool opc_provider::find( pwr_tOix fthoix, char *name, pwr_tOix *oix)
void opc_provider::get_server_state() void opc_provider::get_server_state()
{ {
_ns1__GetStatus get_status; _s0__GetStatus get_status;
_ns1__GetStatusResponse get_status_response; _s0__GetStatusResponse get_status_response;
get_status.ClientRequestHandle = new std::string("Opc Client"); get_status.ClientRequestHandle = new std::string("Opc Client");
if ( soap_call___ns1__GetStatus( &soap, opc_endpoint, NULL, &get_status, &get_status_response) == if ( soap_call___s0__GetStatus( &soap, opc_endpoint, NULL, &get_status, &get_status_response) ==
SOAP_OK) { SOAP_OK) {
if ( get_status_response.Status->VendorInfo) if ( get_status_response.Status->VendorInfo)
strcpy( server_state.VendorInfo, get_status_response.Status->VendorInfo->c_str()); strcpy( server_state.VendorInfo, get_status_response.Status->VendorInfo->c_str());
if ( get_status_response.Status->ProductVersion) if ( get_status_response.Status->ProductVersion)
strcpy( server_state.ProductVersion, get_status_response.Status->ProductVersion->c_str()); strcpy( server_state.ProductVersion, get_status_response.Status->ProductVersion->c_str());
server_state.StartTime.tv_sec = get_status_response.Status->StartTime; // TODO server_state.StartTime.tv_sec = get_status_response.Status->StartTime;
server_state.ServerState = get_status_response.GetStatusResult->ServerState; server_state.ServerState = get_status_response.GetStatusResult->ServerState;
} }
else { else {
server_state.ServerState = ns1__serverState__commFault; server_state.ServerState = s0__serverState__commFault;
soap_print_fault( &soap, stderr); soap_print_fault( &soap, stderr);
} }
} }
...@@ -804,7 +817,7 @@ char *opc_provider::name_to_objectname( char *name) ...@@ -804,7 +817,7 @@ char *opc_provider::name_to_objectname( char *name)
return n; return n;
} }
void opc_provider::errlog( std::string* item, std::vector<ns1__OPCError *>& errvect) void opc_provider::errlog( std::string* item, std::vector<s0__OPCError *>& errvect)
{ {
for ( int i = 0; i < (int) errvect.size(); i++) for ( int i = 0; i < (int) errvect.size(); i++)
printf( "OPC Error: %s %s\n", item->c_str(), errvect[i]->ID.c_str()); printf( "OPC Error: %s %s\n", item->c_str(), errvect[i]->ID.c_str());
......
/* /*
* Proview $Id: opc_provider.h,v 1.6 2007-03-15 08:07:50 claes Exp $ * Proview $Id: opc_provider.h,v 1.7 2007-03-15 15:25:36 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -87,12 +87,12 @@ public: ...@@ -87,12 +87,12 @@ public:
virtual bool find( pwr_tOix fthoix, char *name, pwr_tOix *oix); virtual bool find( pwr_tOix fthoix, char *name, pwr_tOix *oix);
void insert_object( pwr_tOix fth, pwr_tOix bws, ns1__BrowseElement *element, void insert_object( pwr_tOix fth, pwr_tOix bws, s0__BrowseElement *element,
int first, int last, int load_children, std::string *path); int first, int last, int load_children, std::string *path);
void get_server_state(); void get_server_state();
char *opc_provider::name_to_objectname( char *name); char *opc_provider::name_to_objectname( char *name);
void errlog( std::string* item, std::vector<ns1__OPCError *>& errvect); void errlog( std::string* item, std::vector<s0__OPCError *>& errvect);
vector<opcprv_obj> m_list; vector<opcprv_obj> m_list;
map<pwr_tUInt32, opcprv_sub> m_sublist; map<pwr_tUInt32, opcprv_sub> m_sublist;
......
/* /*
* Proview $Id: opc_server.cpp,v 1.8 2007-03-15 12:33:03 claes Exp $ * Proview $Id: opc_server.cpp,v 1.9 2007-03-15 15:25:36 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -99,9 +99,10 @@ int main() ...@@ -99,9 +99,10 @@ int main()
exit(sts); exit(sts);
} }
#if 0
opcsrv = new opc_server(); opcsrv = new opc_server();
#if 0
pwr_tOid config_oid; pwr_tOid config_oid;
// Get OpcServerConfig object // Get OpcServerConfig object
...@@ -171,36 +172,36 @@ int main() ...@@ -171,36 +172,36 @@ int main()
SOAP_FMAC5 int SOAP_FMAC6 __ns1__GetStatus(struct soap*, SOAP_FMAC5 int SOAP_FMAC6 __s0__GetStatus(struct soap*,
_ns1__GetStatus *ns1__GetStatus, _s0__GetStatus *s0__GetStatus,
_ns1__GetStatusResponse *ns1__GetStatusResponse) _s0__GetStatusResponse *s0__GetStatusResponse)
{ {
pwr_tTime current_time; pwr_tTime current_time;
clock_gettime( CLOCK_REALTIME, &current_time); clock_gettime( CLOCK_REALTIME, &current_time);
ns1__GetStatusResponse->GetStatusResult = new ns1__ReplyBase(); s0__GetStatusResponse->GetStatusResult = new s0__ReplyBase();
ns1__GetStatusResponse->GetStatusResult->RcvTime = current_time.tv_sec; s0__GetStatusResponse->GetStatusResult->RcvTime.__item = opc_datetime(0);
ns1__GetStatusResponse->GetStatusResult->ReplyTime = current_time.tv_sec; s0__GetStatusResponse->GetStatusResult->ReplyTime.__item = opc_datetime(0);
ns1__GetStatusResponse->GetStatusResult->RevisedLocaleID = new std::string( "en"); s0__GetStatusResponse->GetStatusResult->RevisedLocaleID = new std::string( "en");
ns1__GetStatusResponse->GetStatusResult->ServerState = ns1__serverState__running; s0__GetStatusResponse->GetStatusResult->ServerState = s0__serverState__running;
ns1__GetStatusResponse->GetStatusResult->ClientRequestHandle = ns1__GetStatus->ClientRequestHandle; s0__GetStatusResponse->GetStatusResult->ClientRequestHandle = s0__GetStatus->ClientRequestHandle;
ns1__GetStatusResponse->Status = new ns1__ServerStatus(); s0__GetStatusResponse->Status = new s0__ServerStatus();
ns1__GetStatusResponse->Status->VendorInfo = new std::string("Proview " pwrv_cPwrVersionStr); s0__GetStatusResponse->Status->VendorInfo = new std::string("Proview Open Source Process Control");
ns1__GetStatusResponse->Status->SupportedInterfaceVersions.push_back( ns1__interfaceVersion__XML_USCOREDA_USCOREVersion_USCORE1_USCORE0); s0__GetStatusResponse->Status->SupportedInterfaceVersions.push_back( s0__interfaceVersion__XML_USCOREDA_USCOREVersion_USCORE1_USCORE0);
ns1__GetStatusResponse->Status->StartTime = opc_start_time.tv_sec; s0__GetStatusResponse->Status->StartTime.__item = opc_datetime( &opc_start_time);
ns1__GetStatusResponse->Status->ProductVersion = new std::string( pwrv_cPwrVersionStr); s0__GetStatusResponse->Status->ProductVersion = new std::string( pwrv_cPwrVersionStr);
return 0; return 0;
} }
SOAP_FMAC5 int SOAP_FMAC6 __ns1__Read(struct soap*, SOAP_FMAC5 int SOAP_FMAC6 __s0__Read(struct soap*,
_ns1__Read *ns1__Read, _s0__Read *s0__Read,
_ns1__ReadResponse *ns1__ReadResponse) _s0__ReadResponse *s0__ReadResponse)
{ {
int ii; int ii;
class ns1__ReadRequestItem *item; class s0__ReadRequestItem *item;
pwr_sAttrRef ar; pwr_sAttrRef ar;
pwr_tStatus sts; pwr_tStatus sts;
pwr_tOName itemname; pwr_tOName itemname;
...@@ -212,34 +213,34 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Read(struct soap*, ...@@ -212,34 +213,34 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Read(struct soap*,
char buf[1024]; char buf[1024];
unsigned int options = 0; unsigned int options = 0;
ns1__ReadResponse->ReadResult = new ns1__ReplyBase(); s0__ReadResponse->ReadResult = new s0__ReplyBase();
// ns1__ReadResponse->ReadResult->RcvTime = current_time.tv_sec; // s0__ReadResponse->ReadResult->RcvTime = current_time.tv_sec;
// ns1__ReadResponse->ReadResult->ReplyTime = current_time.tv_sec; // s0__ReadResponse->ReadResult->ReplyTime = current_time.tv_sec;
if (ns1__Read->Options) if (s0__Read->Options)
ns1__ReadResponse->ReadResult->ClientRequestHandle = ns1__Read->Options->ClientRequestHandle; s0__ReadResponse->ReadResult->ClientRequestHandle = s0__Read->Options->ClientRequestHandle;
ns1__ReadResponse->ReadResult->ServerState = ns1__serverState__running; s0__ReadResponse->ReadResult->ServerState = s0__serverState__running;
if (!ns1__Read->ItemList) if (!s0__Read->ItemList)
return 0; return 0;
if (ns1__Read->ItemList->Items.empty()) if (s0__Read->ItemList->Items.empty())
return 0; return 0;
memset(path, 0, sizeof(path)); memset(path, 0, sizeof(path));
opc_requestoptions_to_mask(ns1__Read->Options, &options); opc_requestoptions_to_mask(s0__Read->Options, &options);
if (ns1__Read->ItemList->ItemPath && !ns1__Read->ItemList->ItemPath->empty()) if (s0__Read->ItemList->ItemPath && !s0__Read->ItemList->ItemPath->empty())
strncpy(path, ns1__Read->ItemList->ItemPath->c_str(), sizeof(path)); strncpy(path, s0__Read->ItemList->ItemPath->c_str(), sizeof(path));
for (ii = 0; ii < (int) ns1__Read->ItemList->Items.size(); ii++) { for (ii = 0; ii < (int) s0__Read->ItemList->Items.size(); ii++) {
ns1__ItemValue *iv = new ns1__ItemValue(); s0__ItemValue *iv = new s0__ItemValue();
if (!ns1__ReadResponse->RItemList) if (!s0__ReadResponse->RItemList)
ns1__ReadResponse->RItemList = new ns1__ReplyItemList(); s0__ReadResponse->RItemList = new s0__ReplyItemList();
item = ns1__Read->ItemList->Items[ii]; item = s0__Read->ItemList->Items[ii];
if (item->ItemPath && !item->ItemPath->empty()) if (item->ItemPath && !item->ItemPath->empty())
strncpy(itempath, item->ItemPath->c_str(), sizeof(itemname)); strncpy(itempath, item->ItemPath->c_str(), sizeof(itemname));
...@@ -261,15 +262,15 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Read(struct soap*, ...@@ -261,15 +262,15 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Read(struct soap*,
sts = gdh_NameToAttrref(pwr_cNObjid, itemname, &ar); sts = gdh_NameToAttrref(pwr_cNObjid, itemname, &ar);
if (EVEN(sts)) { if (EVEN(sts)) {
opcsrv_returnerror(ns1__ReadResponse->Errors, &iv->ResultID, opc_eResultCode_E_INVALIDITEMNAME, options); opcsrv_returnerror(s0__ReadResponse->Errors, &iv->ResultID, opc_eResultCode_E_INVALIDITEMNAME, options);
continue; continue;
} }
if (!item->ReqType || item->ReqType->empty()) { if (!item->ReqType || item->ReqType->empty()) {
if (!ns1__Read->ItemList->ReqType || ns1__Read->ItemList->ReqType->empty()) { if (!s0__Read->ItemList->ReqType || s0__Read->ItemList->ReqType->empty()) {
reqType = -1; reqType = -1;
} else { } else {
opc_string_to_opctype(ns1__Read->ItemList->ReqType->c_str(), &reqType); opc_string_to_opctype(s0__Read->ItemList->ReqType->c_str(), &reqType);
} }
} else { } else {
opc_string_to_opctype(item->ReqType->c_str(), &reqType); opc_string_to_opctype(item->ReqType->c_str(), &reqType);
...@@ -278,8 +279,8 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Read(struct soap*, ...@@ -278,8 +279,8 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Read(struct soap*,
gdh_GetAttributeCharAttrref(&ar, &tid, NULL, NULL, &elem); gdh_GetAttributeCharAttrref(&ar, &tid, NULL, NULL, &elem);
if (cdh_tidIsCid(tid) || elem > 1) { if (cdh_tidIsCid(tid) || elem > 1) {
opcsrv_returnerror(ns1__ReadResponse->Errors, &iv->ResultID, opc_eResultCode_E_BADTYPE, options); opcsrv_returnerror(s0__ReadResponse->Errors, &iv->ResultID, opc_eResultCode_E_BADTYPE, options);
ns1__ReadResponse->RItemList->Items.push_back(iv); s0__ReadResponse->RItemList->Items.push_back(iv);
continue; continue;
} }
...@@ -294,35 +295,37 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Read(struct soap*, ...@@ -294,35 +295,37 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Read(struct soap*,
opc_opctype_to_value(buf, sizeof(buf), reqType); opc_opctype_to_value(buf, sizeof(buf), reqType);
str = (char *) malloc(strlen(buf) + 1); str = (char *) malloc(strlen(buf) + 1);
strncpy(str, buf, sizeof(buf)); strncpy(str, buf, sizeof(buf));
#if 0 // TODO
iv->Value = str; iv->Value = str;
sprintf(iv->ValueType, "%s", opc_opctype_to_string(reqType)); sprintf(iv->ValueType, "%s", opc_opctype_to_string(reqType));
#endif
if (options & opc_mRequestOption_ReturnItemTime) { if (options & opc_mRequestOption_ReturnItemTime) {
// ToDo !!! // ToDo !!!
} }
ns1__ReadResponse->RItemList->Items.push_back(iv); s0__ReadResponse->RItemList->Items.push_back(iv);
} else { } else {
opcsrv_returnerror(ns1__ReadResponse->Errors, &iv->ResultID, opc_eResultCode_E_BADTYPE, options); opcsrv_returnerror(s0__ReadResponse->Errors, &iv->ResultID, opc_eResultCode_E_BADTYPE, options);
continue; continue;
} }
} else { } else {
opcsrv_returnerror(ns1__ReadResponse->Errors, &iv->ResultID, opc_eResultCode_E_BADTYPE, options); opcsrv_returnerror(s0__ReadResponse->Errors, &iv->ResultID, opc_eResultCode_E_BADTYPE, options);
continue; continue;
} }
} }
return 0; return 0;
} }
SOAP_FMAC5 int SOAP_FMAC6 __ns1__Write(struct soap*, SOAP_FMAC5 int SOAP_FMAC6 __s0__Write(struct soap*,
_ns1__Write *ns1__Write, _s0__Write *s0__Write,
_ns1__WriteResponse *ns1__WriteResponse) _s0__WriteResponse *s0__WriteResponse)
{ {
return 0; return 0;
} }
SOAP_FMAC5 int SOAP_FMAC6 __ns1__Subscribe(struct soap* soap, SOAP_FMAC5 int SOAP_FMAC6 __s0__Subscribe(struct soap* soap,
_ns1__Subscribe *ns1__Subscribe, _s0__Subscribe *s0__Subscribe,
_ns1__SubscribeResponse *ns1__SubscribeResponse) _s0__SubscribeResponse *s0__SubscribeResponse)
{ {
pwr_tStatus sts; pwr_tStatus sts;
pwr_tTypeId a_tid; pwr_tTypeId a_tid;
...@@ -335,12 +338,12 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Subscribe(struct soap* soap, ...@@ -335,12 +338,12 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Subscribe(struct soap* soap,
clock_gettime( CLOCK_REALTIME, &client->m_last_time); clock_gettime( CLOCK_REALTIME, &client->m_last_time);
if ( ns1__Subscribe->ItemList) { if ( s0__Subscribe->ItemList) {
for ( int i = 0; i < (int) ns1__Subscribe->ItemList->Items.size(); i++) { for ( int i = 0; i < (int) s0__Subscribe->ItemList->Items.size(); i++) {
opcsrv_sub sub; opcsrv_sub sub;
strcpy( aname, ns1__Subscribe->ItemList->Items[0]->ItemName->c_str()); strcpy( aname, s0__Subscribe->ItemList->Items[0]->ItemName->c_str());
sts = gdh_GetAttributeCharacteristics( aname, &a_tid, &a_size, &a_offs, &a_elem); sts = gdh_GetAttributeCharacteristics( aname, &a_tid, &a_size, &a_offs, &a_elem);
if ( EVEN(sts)) { if ( EVEN(sts)) {
// TODO Set the fault code somewhere... // TODO Set the fault code somewhere...
...@@ -360,20 +363,20 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Subscribe(struct soap* soap, ...@@ -360,20 +363,20 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Subscribe(struct soap* soap,
if ( i == 0) { if ( i == 0) {
vector<opcsrv_sub> subv; vector<opcsrv_sub> subv;
ns1__SubscribeResponse->ServerSubHandle = s0__SubscribeResponse->ServerSubHandle =
new std::string( cdh_SubidToString( 0, sub.subid, 0)); new std::string( cdh_SubidToString( 0, sub.subid, 0));
client->m_sublist[*ns1__SubscribeResponse->ServerSubHandle] = subv; client->m_sublist[*s0__SubscribeResponse->ServerSubHandle] = subv;
} }
client->m_sublist[*ns1__SubscribeResponse->ServerSubHandle].push_back( sub); client->m_sublist[*s0__SubscribeResponse->ServerSubHandle].push_back( sub);
} }
} }
return 0; return 0;
} }
SOAP_FMAC5 int SOAP_FMAC6 __ns1__SubscriptionPolledRefresh(struct soap* soap, SOAP_FMAC5 int SOAP_FMAC6 __s0__SubscriptionPolledRefresh(struct soap* soap,
_ns1__SubscriptionPolledRefresh *ns1__SubscriptionPolledRefresh, _s0__SubscriptionPolledRefresh *s0__SubscriptionPolledRefresh,
_ns1__SubscriptionPolledRefreshResponse *ns1__SubscriptionPolledRefreshResponse) _s0__SubscriptionPolledRefreshResponse *s0__SubscriptionPolledRefreshResponse)
{ {
pwr_tTime current_time; pwr_tTime current_time;
opcsrv_client *client = opcsrv->find_client( soap->ip); opcsrv_client *client = opcsrv->find_client( soap->ip);
...@@ -385,27 +388,26 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__SubscriptionPolledRefresh(struct soap* soap, ...@@ -385,27 +388,26 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__SubscriptionPolledRefresh(struct soap* soap,
clock_gettime( CLOCK_REALTIME, &current_time); clock_gettime( CLOCK_REALTIME, &current_time);
client->m_last_time = current_time; client->m_last_time = current_time;
for ( int i = 0; i < (int) ns1__SubscriptionPolledRefresh->ServerSubHandles.size(); i++) { for ( int i = 0; i < (int) s0__SubscriptionPolledRefresh->ServerSubHandles.size(); i++) {
sublist_iterator it = sublist_iterator it =
client->m_sublist.find( ns1__SubscriptionPolledRefresh->ServerSubHandles[i]); client->m_sublist.find( s0__SubscriptionPolledRefresh->ServerSubHandles[i]);
if ( it != client->m_sublist.end()) { if ( it != client->m_sublist.end()) {
ns1__SubscribePolledRefreshReplyItemList *rlist = new ns1__SubscribePolledRefreshReplyItemList(); s0__SubscribePolledRefreshReplyItemList *rlist = new s0__SubscribePolledRefreshReplyItemList();
rlist->SubscriptionHandle = new std::string(ns1__SubscriptionPolledRefresh->ServerSubHandles[i]); rlist->SubscriptionHandle = new std::string(s0__SubscriptionPolledRefresh->ServerSubHandles[i]);
for ( int j = 0; j < (int)it->second.size(); j++) { for ( int j = 0; j < (int)it->second.size(); j++) {
ns1__ItemValue *ritem = new ns1__ItemValue(); s0__ItemValue *ritem = new s0__ItemValue();
// TODO // TODO
ritem->Value = (char *) malloc( 80); ritem->Value = new xsd__string();
strcpy( ritem->Value, "1"); ((xsd__string *)ritem->Value)->__item = std::string("100");
strcpy( ritem->ValueType, "xsd:string"); ritem->Timestamp = new xsd__dateTime();
ritem->Timestamp = (time_t *) malloc( sizeof(time_t)); ritem->Timestamp->__item = opc_datetime(0);
*ritem->Timestamp = current_time.tv_sec;
rlist->Items.push_back( ritem); rlist->Items.push_back( ritem);
} }
ns1__SubscriptionPolledRefreshResponse->RItemList.push_back( rlist); s0__SubscriptionPolledRefreshResponse->RItemList.push_back( rlist);
} }
else { else {
} }
...@@ -414,9 +416,9 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__SubscriptionPolledRefresh(struct soap* soap, ...@@ -414,9 +416,9 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__SubscriptionPolledRefresh(struct soap* soap,
return 0; return 0;
} }
SOAP_FMAC5 int SOAP_FMAC6 __ns1__SubscriptionCancel(struct soap* soap, SOAP_FMAC5 int SOAP_FMAC6 __s0__SubscriptionCancel(struct soap* soap,
_ns1__SubscriptionCancel *ns1__SubscriptionCancel, _s0__SubscriptionCancel *s0__SubscriptionCancel,
_ns1__SubscriptionCancelResponse *ns1__SubscriptionCancelResponse) _s0__SubscriptionCancelResponse *s0__SubscriptionCancelResponse)
{ {
opcsrv_client *client = opcsrv->find_client( soap->ip); opcsrv_client *client = opcsrv->find_client( soap->ip);
if ( !client) { if ( !client) {
...@@ -427,7 +429,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__SubscriptionCancel(struct soap* soap, ...@@ -427,7 +429,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__SubscriptionCancel(struct soap* soap,
clock_gettime( CLOCK_REALTIME, &client->m_last_time); clock_gettime( CLOCK_REALTIME, &client->m_last_time);
sublist_iterator it = sublist_iterator it =
client->m_sublist.find( *ns1__SubscriptionCancel->ServerSubHandle); client->m_sublist.find( *s0__SubscriptionCancel->ServerSubHandle);
if ( it != client->m_sublist.end()) { if ( it != client->m_sublist.end()) {
client->m_sublist.erase( it); client->m_sublist.erase( it);
...@@ -435,14 +437,14 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__SubscriptionCancel(struct soap* soap, ...@@ -435,14 +437,14 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__SubscriptionCancel(struct soap* soap,
else { else {
// TODO Set the fault code somewhere... // TODO Set the fault code somewhere...
} }
ns1__SubscriptionCancelResponse->ClientRequestHandle = s0__SubscriptionCancelResponse->ClientRequestHandle =
ns1__SubscriptionCancel->ClientRequestHandle; s0__SubscriptionCancel->ClientRequestHandle;
return 0; return 0;
} }
bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp, bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp,
pwr_tAttrRef *arp, unsigned int propmask, gdh_sAttrDef *bd, pwr_tAttrRef *arp, unsigned int propmask, gdh_sAttrDef *bd,
std::vector<ns1__ItemProperty *>& properties) std::vector<s0__ItemProperty *>& properties)
{ {
pwr_tStatus sts; pwr_tStatus sts;
...@@ -455,19 +457,17 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp, ...@@ -455,19 +457,17 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp,
if ( ODD(sts)) { if ( ODD(sts)) {
sts = gdh_GetObjectInfoAttrref( &aaref, desc, sizeof(desc)); sts = gdh_GetObjectInfoAttrref( &aaref, desc, sizeof(desc));
if ( ODD(sts)) { if ( ODD(sts)) {
ns1__ItemProperty *ip = new ns1__ItemProperty(); s0__ItemProperty *ip = new s0__ItemProperty();
ip->Name = std::string("description"); ip->Name = std::string("description");
ip->Value = (char *) malloc( sizeof(pwr_tString80)); ip->Value = new xsd__string();
strncpy( ip->Value, desc, sizeof(pwr_tString80)); ((xsd__string *)ip->Value)->__item = std::string(desc);
strcpy( ip->ValueType, "xsd:string");
properties.push_back( ip); properties.push_back( ip);
} }
} }
if ( EVEN(sts)) { if ( EVEN(sts)) {
ns1__ItemProperty *ip = new ns1__ItemProperty(); s0__ItemProperty *ip = new s0__ItemProperty();
ip->Name = std::string("description"); ip->Name = std::string("description");
ip->Value = (char *) calloc(1, 1); ip->Value = new xsd__string();
strcpy( ip->ValueType, "xsd:string");
properties.push_back( ip); properties.push_back( ip);
} }
} }
...@@ -501,19 +501,17 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp, ...@@ -501,19 +501,17 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp,
sts = gdh_GetObjectInfoAttrref( &aaref, desc, sizeof(desc)); sts = gdh_GetObjectInfoAttrref( &aaref, desc, sizeof(desc));
if ( EVEN(sts)) break; if ( EVEN(sts)) break;
ns1__ItemProperty *ip = new ns1__ItemProperty(); s0__ItemProperty *ip = new s0__ItemProperty();
ip->Name = std::string("description"); ip->Name = std::string("description");
ip->Value = (char *) calloc( 1, sizeof(desc)); ip->Value = new xsd__string();
strncpy( ip->Value, desc, sizeof(desc)); ((xsd__string *)ip->Value)->__item = std::string( desc);
strcpy( ip->ValueType, "xsd:string");
properties.push_back( ip); properties.push_back( ip);
break; break;
} }
default: { default: {
ns1__ItemProperty *ip = new ns1__ItemProperty(); s0__ItemProperty *ip = new s0__ItemProperty();
ip->Name = std::string("description"); ip->Name = std::string("description");
ip->Value = (char *) calloc(1,1); ip->Value = new xsd__string();
strcpy( ip->ValueType, "xsd:string");
properties.push_back( ip); properties.push_back( ip);
} }
} }
...@@ -523,12 +521,12 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp, ...@@ -523,12 +521,12 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp,
// DataType // DataType
if ( propmask & opc_mProperty_DataType) { if ( propmask & opc_mProperty_DataType) {
char *type_p; char *type_p;
ns1__ItemProperty *ip = new ns1__ItemProperty(); s0__ItemProperty *ip = new s0__ItemProperty();
if ( opc_pwrtype_to_string( bd->attr->Param.Info.Type, &type_p)) { if ( opc_pwrtype_to_string( bd->attr->Param.Info.Type, &type_p)) {
ip->Name = std::string("dataType"); ip->Name = std::string("dataType");
ip->Value = type_p; ip->Value = new xsd__QName_();
strcpy( ip->ValueType, "xsd:QName"); ((xsd__QName_ *)ip->Value)->__item = std::string(type_p);
properties.push_back( ip); properties.push_back( ip);
} }
else { else {
...@@ -539,12 +537,12 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp, ...@@ -539,12 +537,12 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp,
// Quality // Quality
if ( propmask & opc_mProperty_Quality) { if ( propmask & opc_mProperty_Quality) {
char *qual_p; char *qual_p;
ns1__ItemProperty *ip = new ns1__ItemProperty(); s0__ItemProperty *ip = new s0__ItemProperty();
if ( opc_quality_to_string( ns1__qualityBits__good, &qual_p)) { if ( opc_quality_to_string( s0__qualityBits__good, &qual_p)) {
ip->Name = std::string("quality"); ip->Name = std::string("quality");
ip->Value = qual_p; ip->Value = new xsd__string();
strcpy( ip->ValueType, "xsd:string"); ((xsd__string *)ip->Value)->__item = std::string(qual_p);
properties.push_back( ip); properties.push_back( ip);
} }
} }
...@@ -556,25 +554,24 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp, ...@@ -556,25 +554,24 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp,
// Access Rights // Access Rights
if ( propmask & opc_mProperty_AccessRights) { if ( propmask & opc_mProperty_AccessRights) {
ns1__ItemProperty *ip = new ns1__ItemProperty(); s0__ItemProperty *ip = new s0__ItemProperty();
ip->Name = std::string("accessRights"); ip->Name = std::string("accessRights");
ip->Value = (char *) malloc( 20); ip->Value = new xsd__string();
strcpy( ip->ValueType, "xsd:string");
switch ( opc_current_access) { switch ( opc_current_access) {
case pwr_eOpc_AccessEnum_ReadOnly: case pwr_eOpc_AccessEnum_ReadOnly:
strcpy( ip->Value, "readable"); ((xsd__string *)ip->Value)->__item = std::string("readable");
break; break;
case pwr_eOpc_AccessEnum_ReadWrite: case pwr_eOpc_AccessEnum_ReadWrite:
if ( bd->attr->Param.Info.Flags & PWR_MASK_RTVIRTUAL || if ( bd->attr->Param.Info.Flags & PWR_MASK_RTVIRTUAL ||
bd->attr->Param.Info.Flags & PWR_MASK_PRIVATE) bd->attr->Param.Info.Flags & PWR_MASK_PRIVATE)
strcpy( ip->Value, "readable"); ((xsd__string *)ip->Value)->__item = std::string("readable");
else else
strcpy( ip->Value, "readWriteable"); ((xsd__string *)ip->Value)->__item = std::string("readWriteable");
break; break;
default: default:
strcpy( ip->Value, "unknown"); ((xsd__string *)ip->Value)->__item = std::string("unknown");
break; break;
} }
properties.push_back( ip); properties.push_back( ip);
...@@ -601,11 +598,10 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp, ...@@ -601,11 +598,10 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp,
sts = gdh_GetObjectInfoAttrref( &aaref, &unit, sizeof(unit)); sts = gdh_GetObjectInfoAttrref( &aaref, &unit, sizeof(unit));
if ( EVEN(sts)) break; if ( EVEN(sts)) break;
ns1__ItemProperty *ip = new ns1__ItemProperty(); s0__ItemProperty *ip = new s0__ItemProperty();
ip->Name = std::string("engineeringUnits"); ip->Name = std::string("engineeringUnits");
ip->Value = (char *) malloc( 20); ip->Value = new xsd__string();
strcpy( ip->Value, unit); ((xsd__string *)ip->Value)->__item = std::string(unit);
strcpy( ip->ValueType, "xsd:string");
properties.push_back( ip); properties.push_back( ip);
break; break;
} }
...@@ -618,20 +614,18 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp, ...@@ -618,20 +614,18 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp,
if ( propmask & opc_mProperty_EuType) { if ( propmask & opc_mProperty_EuType) {
switch( bd->attr->Param.Info.Type) { switch( bd->attr->Param.Info.Type) {
case pwr_eType_Float32: { case pwr_eType_Float32: {
ns1__ItemProperty *ip = new ns1__ItemProperty(); s0__ItemProperty *ip = new s0__ItemProperty();
ip->Name = std::string("euType"); ip->Name = std::string("euType");
ip->Value = (char *) malloc( 20); ip->Value = new xsd__string();
strcpy( ip->Value, "analog"); ((xsd__string *)ip->Value)->__item = std::string("analog");
strcpy( ip->ValueType, "xsd:string");
properties.push_back( ip); properties.push_back( ip);
break; break;
} }
default: { default: {
ns1__ItemProperty *ip = new ns1__ItemProperty(); s0__ItemProperty *ip = new s0__ItemProperty();
ip->Name = std::string("euType"); ip->Name = std::string("euType");
ip->Value = (char *) malloc( 20); ip->Value = new xsd__string();
strcpy( ip->Value, "noEnum"); ((xsd__string *)ip->Value)->__item = std::string("noEnum");
strcpy( ip->ValueType, "xsd:string");
properties.push_back( ip); properties.push_back( ip);
break; break;
} }
...@@ -653,11 +647,10 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp, ...@@ -653,11 +647,10 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp,
if ( ODD(sts)) { if ( ODD(sts)) {
sts = gdh_GetObjectInfoAttrref( &aaref, &fval, sizeof(fval)); sts = gdh_GetObjectInfoAttrref( &aaref, &fval, sizeof(fval));
if ( ODD(sts)) { if ( ODD(sts)) {
ns1__ItemProperty *ip = new ns1__ItemProperty(); s0__ItemProperty *ip = new s0__ItemProperty();
ip->Name = std::string("highEU"); ip->Name = std::string("highEU");
ip->Value = (char *) malloc( 20); ip->Value = new xsd__double();
sprintf( ip->Value, "%5.2f", fval); ((xsd__double *)ip->Value)->__item = fval;
strcpy( ip->ValueType, "xsd:double");
properties.push_back( ip); properties.push_back( ip);
} }
} }
...@@ -681,11 +674,10 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp, ...@@ -681,11 +674,10 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp,
if ( ODD(sts)) { if ( ODD(sts)) {
sts = gdh_GetObjectInfoAttrref( &aaref, &fval, sizeof(fval)); sts = gdh_GetObjectInfoAttrref( &aaref, &fval, sizeof(fval));
if ( ODD(sts)) { if ( ODD(sts)) {
ns1__ItemProperty *ip = new ns1__ItemProperty(); s0__ItemProperty *ip = new s0__ItemProperty();
ip->Name = std::string("lowEU"); ip->Name = std::string("lowEU");
ip->Value = (char *) malloc( 20); ip->Value = new xsd__double();
sprintf( ip->Value, "%5.2f", fval); ((xsd__double *)ip->Value)->__item = fval;
strcpy( ip->ValueType, "xsd:double");
properties.push_back( ip); properties.push_back( ip);
} }
} }
...@@ -727,11 +719,10 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp, ...@@ -727,11 +719,10 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp,
sts = gdh_GetObjectInfoAttrref( &aaref, &fval, sizeof(fval)); sts = gdh_GetObjectInfoAttrref( &aaref, &fval, sizeof(fval));
if ( EVEN(sts)) break; if ( EVEN(sts)) break;
ns1__ItemProperty *ip = new ns1__ItemProperty(); s0__ItemProperty *ip = new s0__ItemProperty();
ip->Name = std::string("highIR"); ip->Name = std::string("highIR");
ip->Value = (char *) malloc( 20); ip->Value = new xsd__double();
sprintf( ip->Value, "%5.2f", fval); ((xsd__double *)ip->Value)->__item = fval;
strcpy( ip->ValueType, "xsd:double");
properties.push_back( ip); properties.push_back( ip);
break; break;
} }
...@@ -772,11 +763,10 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp, ...@@ -772,11 +763,10 @@ bool opcsrv_get_properties( bool is_item, pwr_tCid pcid, pwr_tAttrRef *parp,
sts = gdh_GetObjectInfoAttrref( &aaref, &fval, sizeof(fval)); sts = gdh_GetObjectInfoAttrref( &aaref, &fval, sizeof(fval));
if ( EVEN(sts)) break; if ( EVEN(sts)) break;
ns1__ItemProperty *ip = new ns1__ItemProperty(); s0__ItemProperty *ip = new s0__ItemProperty();
ip->Name = std::string("lowIR"); ip->Name = std::string("lowIR");
ip->Value = (char *) malloc( 20); ip->Value = new xsd__double();
sprintf( ip->Value, "%5.2f", fval); ((xsd__double *)ip->Value)->__item = fval;
strcpy( ip->ValueType, "xsd:double");
properties.push_back( ip); properties.push_back( ip);
break; break;
} }
...@@ -802,8 +792,8 @@ int opcsrv_get_access( struct soap *so) ...@@ -802,8 +792,8 @@ int opcsrv_get_access( struct soap *so)
return access; return access;
} }
SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Browse, SOAP_FMAC5 int SOAP_FMAC6 __s0__Browse(struct soap *so, _s0__Browse *s0__Browse,
_ns1__BrowseResponse *ns1__BrowseResponse) _s0__BrowseResponse *s0__BrowseResponse)
{ {
pwr_tStatus sts; pwr_tStatus sts;
pwr_tOid oid, child, ch; pwr_tOid oid, child, ch;
...@@ -816,29 +806,29 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow ...@@ -816,29 +806,29 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow
opc_current_access = opcsrv_get_access( so); opc_current_access = opcsrv_get_access( so);
clock_gettime( CLOCK_REALTIME, &current_time); clock_gettime( CLOCK_REALTIME, &current_time);
ns1__BrowseResponse->BrowseResult = new ns1__ReplyBase(); s0__BrowseResponse->BrowseResult = new s0__ReplyBase();
ns1__BrowseResponse->BrowseResult->RcvTime = current_time.tv_sec; s0__BrowseResponse->BrowseResult->RcvTime.__item = opc_datetime(0);
ns1__BrowseResponse->BrowseResult->ReplyTime = current_time.tv_sec; s0__BrowseResponse->BrowseResult->ReplyTime.__item = opc_datetime(0);
ns1__BrowseResponse->BrowseResult->ClientRequestHandle = ns1__Browse->ClientRequestHandle; s0__BrowseResponse->BrowseResult->ClientRequestHandle = s0__Browse->ClientRequestHandle;
ns1__BrowseResponse->BrowseResult->ServerState = ns1__serverState__running; s0__BrowseResponse->BrowseResult->ServerState = s0__serverState__running;
if ( (!ns1__Browse->ItemName || ns1__Browse->ItemName->empty()) && if ( (!s0__Browse->ItemName || s0__Browse->ItemName->empty()) &&
(!ns1__Browse->ItemPath || ns1__Browse->ItemPath->empty())) { (!s0__Browse->ItemPath || s0__Browse->ItemPath->empty())) {
// Return rootlist // Return rootlist
for ( sts = gdh_GetRootList( &oid); ODD(sts); sts = gdh_GetNextSibling( oid, &oid)) { for ( sts = gdh_GetRootList( &oid); ODD(sts); sts = gdh_GetNextSibling( oid, &oid)) {
sts = gdh_ObjidToName( oid, name, sizeof(name), cdh_mName_object); sts = gdh_ObjidToName( oid, name, sizeof(name), cdh_mName_object);
if ( EVEN(sts)) { if ( EVEN(sts)) {
opcsrv_returnerror( ns1__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt); opcsrv_returnerror( s0__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt);
return 0; return 0;
} }
sts = gdh_GetObjectClass( oid, &cid); sts = gdh_GetObjectClass( oid, &cid);
if ( EVEN(sts)) { if ( EVEN(sts)) {
opcsrv_returnerror( ns1__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt); opcsrv_returnerror( s0__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt);
return 0; return 0;
} }
ns1__BrowseElement *element = new ns1__BrowseElement(); s0__BrowseElement *element = new s0__BrowseElement();
element->Name = new std::string( name); element->Name = new std::string( name);
element->ItemName = element->Name; element->ItemName = element->Name;
element->IsItem = false; element->IsItem = false;
...@@ -847,17 +837,17 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow ...@@ -847,17 +837,17 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow
else else
element->HasChildren = true; element->HasChildren = true;
if ( ns1__Browse->ReturnAllProperties) if ( s0__Browse->ReturnAllProperties)
property_mask = ~0; property_mask = ~0;
else else
opc_propertynames_to_mask( ns1__Browse->PropertyNames, &property_mask); opc_propertynames_to_mask( s0__Browse->PropertyNames, &property_mask);
pwr_tAttrRef aref = cdh_ObjidToAref( oid); pwr_tAttrRef aref = cdh_ObjidToAref( oid);
opcsrv_get_properties( false, cid, 0, &aref, opcsrv_get_properties( false, cid, 0, &aref,
property_mask, 0, property_mask, 0,
element->Properties); element->Properties);
ns1__BrowseResponse->Elements.push_back( element); s0__BrowseResponse->Elements.push_back( element);
} }
} }
else { else {
...@@ -870,24 +860,24 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow ...@@ -870,24 +860,24 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow
pwr_sAttrRef paref; pwr_sAttrRef paref;
pwr_sAttrRef aref; pwr_sAttrRef aref;
if ( ns1__Browse->ItemPath && !ns1__Browse->ItemPath->empty()) { if ( s0__Browse->ItemPath && !s0__Browse->ItemPath->empty()) {
strncpy( pname, ns1__Browse->ItemPath->c_str(), sizeof( pname)); strncpy( pname, s0__Browse->ItemPath->c_str(), sizeof( pname));
if ( ns1__Browse->ItemName && !ns1__Browse->ItemName->empty()) { if ( s0__Browse->ItemName && !s0__Browse->ItemName->empty()) {
strcat( pname, ns1__Browse->ItemName->c_str()); strcat( pname, s0__Browse->ItemName->c_str());
} }
} }
else else
strncpy( pname, ns1__Browse->ItemName->c_str(), sizeof(pname)); strncpy( pname, s0__Browse->ItemName->c_str(), sizeof(pname));
sts = gdh_NameToAttrref( pwr_cNOid, pname, &paref); sts = gdh_NameToAttrref( pwr_cNOid, pname, &paref);
if ( EVEN(sts)) { if ( EVEN(sts)) {
opcsrv_returnerror( ns1__BrowseResponse->Errors, 0, opc_eResultCode_E_UNKNOWNITEMNAME, erropt); opcsrv_returnerror( s0__BrowseResponse->Errors, 0, opc_eResultCode_E_UNKNOWNITEMNAME, erropt);
return 0; return 0;
} }
sts = gdh_GetAttrRefTid( &paref, &cid); sts = gdh_GetAttrRefTid( &paref, &cid);
if ( EVEN(sts)) { if ( EVEN(sts)) {
opcsrv_returnerror( ns1__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt); opcsrv_returnerror( s0__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt);
return 0; return 0;
} }
...@@ -902,18 +892,18 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow ...@@ -902,18 +892,18 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow
sts = gdh_AttrArefToObjectAref( &paref, &oaref); sts = gdh_AttrArefToObjectAref( &paref, &oaref);
if ( EVEN(sts)) { if ( EVEN(sts)) {
opcsrv_returnerror( ns1__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt); opcsrv_returnerror( s0__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt);
return 0; return 0;
} }
sts = gdh_GetAttrRefTid( &oaref, &cid); sts = gdh_GetAttrRefTid( &oaref, &cid);
if ( EVEN(sts)) { if ( EVEN(sts)) {
opcsrv_returnerror( ns1__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt); opcsrv_returnerror( s0__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt);
return 0; return 0;
} }
if ( !( attrname = strrchr( pname, '.'))) { if ( !( attrname = strrchr( pname, '.'))) {
opcsrv_returnerror( ns1__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt); opcsrv_returnerror( s0__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt);
return 0; return 0;
} }
attrname++; attrname++;
...@@ -921,7 +911,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow ...@@ -921,7 +911,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow
// Get body definition // Get body definition
sts = gdh_GetObjectBodyDef( cid, &bd, &rows, pwr_cNOid); sts = gdh_GetObjectBodyDef( cid, &bd, &rows, pwr_cNOid);
if ( EVEN(sts)) { if ( EVEN(sts)) {
opcsrv_returnerror( ns1__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt); opcsrv_returnerror( s0__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt);
return 0; return 0;
} }
int bd_idx = -1; int bd_idx = -1;
...@@ -933,26 +923,26 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow ...@@ -933,26 +923,26 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow
} }
if ( bd_idx == -1) { if ( bd_idx == -1) {
// E_INVALIDITEMNAME // E_INVALIDITEMNAME
opcsrv_returnerror( ns1__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt); opcsrv_returnerror( s0__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt);
free( (char *)bd); free( (char *)bd);
return 0; return 0;
} }
sts = gdh_GetAttributeCharAttrref( &paref, &a_type, &a_size, &a_offs, &a_dim); sts = gdh_GetAttributeCharAttrref( &paref, &a_type, &a_size, &a_offs, &a_dim);
if ( EVEN(sts)) { if ( EVEN(sts)) {
opcsrv_returnerror( ns1__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt); opcsrv_returnerror( s0__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt);
return 0; return 0;
} }
for ( int i = 0; i < (int)a_dim; i++) { for ( int i = 0; i < (int)a_dim; i++) {
ns1__BrowseElement *element = new ns1__BrowseElement(); s0__BrowseElement *element = new s0__BrowseElement();
sprintf( itemname, "%s[%d]", pname, i); sprintf( itemname, "%s[%d]", pname, i);
s = strrchr( itemname, '.'); s = strrchr( itemname, '.');
if ( s) if ( s)
strcpy( aname, s + 1); strcpy( aname, s + 1);
else { else {
opcsrv_returnerror( ns1__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt); opcsrv_returnerror( s0__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt);
return 0; return 0;
} }
element->Name = new std::string( aname); element->Name = new std::string( aname);
...@@ -960,15 +950,15 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow ...@@ -960,15 +950,15 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow
element->IsItem = true; element->IsItem = true;
element->HasChildren = false; element->HasChildren = false;
if ( ns1__Browse->ReturnAllProperties) if ( s0__Browse->ReturnAllProperties)
property_mask = ~0; property_mask = ~0;
else else
opc_propertynames_to_mask( ns1__Browse->PropertyNames, &property_mask); opc_propertynames_to_mask( s0__Browse->PropertyNames, &property_mask);
if ( property_mask) { if ( property_mask) {
sts = gdh_NameToAttrref( pwr_cNOid, itemname, &aref); sts = gdh_NameToAttrref( pwr_cNOid, itemname, &aref);
if ( EVEN(sts)) { if ( EVEN(sts)) {
opcsrv_returnerror( ns1__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt); opcsrv_returnerror( s0__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt);
return 0; return 0;
} }
...@@ -977,7 +967,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow ...@@ -977,7 +967,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow
element->Properties); element->Properties);
} }
ns1__BrowseResponse->Elements.push_back( element); s0__BrowseResponse->Elements.push_back( element);
} }
free( (char *)bd); free( (char *)bd);
...@@ -985,7 +975,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow ...@@ -985,7 +975,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow
} }
if ( !cdh_tidIsCid( cid)) { if ( !cdh_tidIsCid( cid)) {
opcsrv_returnerror( ns1__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt); opcsrv_returnerror( s0__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt);
return 0; return 0;
} }
...@@ -1006,7 +996,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow ...@@ -1006,7 +996,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow
sts = gdh_ArefANameToAref( &paref, bd[i].attrName, &aref); sts = gdh_ArefANameToAref( &paref, bd[i].attrName, &aref);
if ( EVEN(sts)) { if ( EVEN(sts)) {
opcsrv_returnerror( ns1__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt); opcsrv_returnerror( s0__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt);
return 0; return 0;
} }
if ( bd[i].attr->Param.Info.Flags & PWR_MASK_DISABLEATTR) { if ( bd[i].attr->Param.Info.Flags & PWR_MASK_DISABLEATTR) {
...@@ -1014,7 +1004,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow ...@@ -1014,7 +1004,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow
sts = gdh_ArefDisabled( &aref, &disabled); sts = gdh_ArefDisabled( &aref, &disabled);
if ( EVEN(sts)) { if ( EVEN(sts)) {
opcsrv_returnerror( ns1__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt); opcsrv_returnerror( s0__BrowseResponse->Errors, 0, opc_eResultCode_E_FAIL, erropt);
return 0; return 0;
} }
...@@ -1024,7 +1014,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow ...@@ -1024,7 +1014,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow
if ( bd[i].attr->Param.Info.Flags & PWR_MASK_ARRAY || if ( bd[i].attr->Param.Info.Flags & PWR_MASK_ARRAY ||
bd[i].attr->Param.Info.Flags & PWR_MASK_CLASS ) { bd[i].attr->Param.Info.Flags & PWR_MASK_CLASS ) {
ns1__BrowseElement *element = new ns1__BrowseElement(); s0__BrowseElement *element = new s0__BrowseElement();
cdh_SuppressSuper( aname, bd[i].attrName); cdh_SuppressSuper( aname, bd[i].attrName);
element->Name = new std::string( aname); element->Name = new std::string( aname);
...@@ -1035,20 +1025,20 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow ...@@ -1035,20 +1025,20 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow
element->IsItem = false; element->IsItem = false;
element->HasChildren = true; element->HasChildren = true;
if ( ns1__Browse->ReturnAllProperties) if ( s0__Browse->ReturnAllProperties)
property_mask = ~0; property_mask = ~0;
else else
opc_propertynames_to_mask( ns1__Browse->PropertyNames, &property_mask); opc_propertynames_to_mask( s0__Browse->PropertyNames, &property_mask);
if ( property_mask) if ( property_mask)
opcsrv_get_properties( element->IsItem, cid, &paref, &aref, opcsrv_get_properties( element->IsItem, cid, &paref, &aref,
property_mask, &bd[i], property_mask, &bd[i],
element->Properties); element->Properties);
ns1__BrowseResponse->Elements.push_back( element); s0__BrowseResponse->Elements.push_back( element);
} }
else { else {
ns1__BrowseElement *element = new ns1__BrowseElement(); s0__BrowseElement *element = new s0__BrowseElement();
cdh_SuppressSuper( aname, bd[i].attrName); cdh_SuppressSuper( aname, bd[i].attrName);
element->Name = new std::string( aname); element->Name = new std::string( aname);
...@@ -1059,17 +1049,17 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow ...@@ -1059,17 +1049,17 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow
element->IsItem = true; element->IsItem = true;
element->HasChildren = false; element->HasChildren = false;
if ( ns1__Browse->ReturnAllProperties) if ( s0__Browse->ReturnAllProperties)
property_mask = ~0; property_mask = ~0;
else else
opc_propertynames_to_mask( ns1__Browse->PropertyNames, &property_mask); opc_propertynames_to_mask( s0__Browse->PropertyNames, &property_mask);
if ( property_mask) if ( property_mask)
opcsrv_get_properties( element->IsItem, cid, &paref, &aref, opcsrv_get_properties( element->IsItem, cid, &paref, &aref,
property_mask, &bd[i], property_mask, &bd[i],
element->Properties); element->Properties);
ns1__BrowseResponse->Elements.push_back( element); s0__BrowseResponse->Elements.push_back( element);
} }
} }
free( (char *)bd); free( (char *)bd);
...@@ -1085,7 +1075,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow ...@@ -1085,7 +1075,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow
sts = gdh_GetObjectClass( child, &cid); sts = gdh_GetObjectClass( child, &cid);
if ( EVEN(sts)) continue; if ( EVEN(sts)) continue;
ns1__BrowseElement *element = new ns1__BrowseElement(); s0__BrowseElement *element = new s0__BrowseElement();
element->Name = new std::string( name); element->Name = new std::string( name);
strcpy( itemname, pname); strcpy( itemname, pname);
...@@ -1098,10 +1088,10 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow ...@@ -1098,10 +1088,10 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow
else else
element->HasChildren = true; element->HasChildren = true;
if ( ns1__Browse->ReturnAllProperties) if ( s0__Browse->ReturnAllProperties)
property_mask = ~0; property_mask = ~0;
else else
opc_propertynames_to_mask( ns1__Browse->PropertyNames, &property_mask); opc_propertynames_to_mask( s0__Browse->PropertyNames, &property_mask);
if ( property_mask) { if ( property_mask) {
aref = cdh_ObjidToAref( child); aref = cdh_ObjidToAref( child);
...@@ -1109,16 +1099,16 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow ...@@ -1109,16 +1099,16 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap *so, _ns1__Browse *ns1__Brow
property_mask, 0, property_mask, 0,
element->Properties); element->Properties);
} }
ns1__BrowseResponse->Elements.push_back( element); s0__BrowseResponse->Elements.push_back( element);
} }
} }
} }
return 0; return 0;
} }
SOAP_FMAC5 int SOAP_FMAC6 __ns1__GetProperties(struct soap*, SOAP_FMAC5 int SOAP_FMAC6 __s0__GetProperties(struct soap*,
_ns1__GetProperties *ns1__GetProperties, _s0__GetProperties *s0__GetProperties,
_ns1__GetPropertiesResponse *ns1__GetPropertiesResponse) _s0__GetPropertiesResponse *s0__GetPropertiesResponse)
{ {
unsigned int property_mask; unsigned int property_mask;
pwr_tCid cid; pwr_tCid cid;
...@@ -1130,22 +1120,22 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__GetProperties(struct soap*, ...@@ -1130,22 +1120,22 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__GetProperties(struct soap*,
gdh_sAttrDef *bd; gdh_sAttrDef *bd;
int rows; int rows;
if ( ns1__GetProperties->ReturnAllProperties) if ( s0__GetProperties->ReturnAllProperties)
property_mask = ~0; property_mask = ~0;
else else
opc_propertynames_to_mask( ns1__GetProperties->PropertyNames, &property_mask); opc_propertynames_to_mask( s0__GetProperties->PropertyNames, &property_mask);
for ( int i = 0; i < (int)ns1__GetProperties->ItemIDs.size(); i++) { for ( int i = 0; i < (int)s0__GetProperties->ItemIDs.size(); i++) {
ns1__PropertyReplyList *plist = new ns1__PropertyReplyList(); s0__PropertyReplyList *plist = new s0__PropertyReplyList();
std::string *path; std::string *path;
if ( ns1__GetProperties->ItemIDs[i]->ItemPath) if ( s0__GetProperties->ItemIDs[i]->ItemPath)
path = ns1__GetProperties->ItemIDs[i]->ItemPath; path = s0__GetProperties->ItemIDs[i]->ItemPath;
else else
path = ns1__GetProperties->ItemPath; path = s0__GetProperties->ItemPath;
plist->ItemPath = path; plist->ItemPath = path;
plist->ItemName = new std::string(*ns1__GetProperties->ItemIDs[i]->ItemName); plist->ItemName = new std::string(*s0__GetProperties->ItemIDs[i]->ItemName);
if ( path) { if ( path) {
strcpy( iname, path->c_str()); strcpy( iname, path->c_str());
...@@ -1220,7 +1210,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__GetProperties(struct soap*, ...@@ -1220,7 +1210,7 @@ SOAP_FMAC5 int SOAP_FMAC6 __ns1__GetProperties(struct soap*,
free( (char *)bd); free( (char *)bd);
} }
ns1__GetPropertiesResponse->PropertyLists.push_back( plist); s0__GetPropertiesResponse->PropertyLists.push_back( plist);
} }
return 0; return 0;
......
...@@ -6,6 +6,6 @@ SOAP_NMAC struct Namespace namespaces[] = ...@@ -6,6 +6,6 @@ SOAP_NMAC struct Namespace namespaces[] =
{"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.org/*/soap-encoding", 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}, {"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}, {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL},
{"ns1", "http://opcfoundation.org/webservices/XMLDA/1.0/", NULL, NULL}, {"s0", "http://opcfoundation.org/webservices/XMLDA/1.0/", NULL, NULL},
{NULL, NULL, NULL, NULL} {NULL, NULL, NULL, NULL}
}; };
/* opc_msg.h /* opc_msg.h
Generated by wsdl2h 1.2.9d from ./opc.wsdl and typemap.dat Generated by wsdl2h 1.2.9d from opc.wsdl and typemap.dat
2007-02-26 09:40:26 GMT 2007-03-15 12:11:02 GMT
Copyright (C) 2001-2006 Robert van Engelen, Genivia Inc. All Rights Reserved. Copyright (C) 2001-2006 Robert van Engelen, Genivia Inc. All Rights Reserved.
This part of the software is released under one of the following licenses: This part of the software is released under one of the following licenses:
GPL or Genivia's license for commercial use. GPL or Genivia's license for commercial use.
...@@ -55,13 +55,13 @@ It is strongly recommended to customize the names of the namespace prefixes ...@@ -55,13 +55,13 @@ It is strongly recommended to customize the names of the namespace prefixes
generated by wsdl2h. To do so, modify the prefix bindings below and add the generated by wsdl2h. To do so, modify the prefix bindings below and add the
modified lines to typemap.dat to rerun wsdl2h: modified lines to typemap.dat to rerun wsdl2h:
ns1 = "http://opcfoundation.org/webservices/XMLDA/1.0/" s0 = "http://opcfoundation.org/webservices/XMLDA/1.0/"
*/ */
//gsoap ns1 schema namespace: http://opcfoundation.org/webservices/XMLDA/1.0/ //gsoap s0 schema namespace: http://opcfoundation.org/webservices/XMLDA/1.0/
//gsoap ns1 schema elementForm: qualified //gsoap s0 schema elementForm: qualified
//gsoap ns1 schema attributeForm: unqualified //gsoap s0 schema attributeForm: unqualified
/******************************************************************************\ /******************************************************************************\
* * * *
...@@ -69,240 +69,362 @@ ns1 = "http://opcfoundation.org/webservices/XMLDA/1.0/" ...@@ -69,240 +69,362 @@ ns1 = "http://opcfoundation.org/webservices/XMLDA/1.0/"
* * * *
\******************************************************************************/ \******************************************************************************/
class xsd__anyType { _XML __item; struct soap *soap; };
/// Primitive built-in type "xs:QName" /// Primitive built-in type "xs:QName"
typedef std::string xsd__QName; typedef std::string xsd__QName;
/// Class wrapper for built-in type "xs:QName" derived from xsd__anyType
class xsd__QName_ : public xsd__anyType
{ public:
xsd__QName __item;
};
/// Class wrapper for built-in type "xs:boolean" derived from xsd__anyType
class xsd__boolean : public xsd__anyType
{ public:
bool __item;
};
/// Class wrapper for built-in type "xs:byte" derived from xsd__anyType
class xsd__byte : public xsd__anyType
{ public:
char __item;
};
/// Class wrapper for built-in type "xs:dateTime" derived from xsd__anyType
class xsd__dateTime : public xsd__anyType
{ public:
std::string __item;
};
/// Primitive built-in type "xs:decimal" /// Primitive built-in type "xs:decimal"
typedef std::string xsd__decimal; typedef std::string xsd__decimal;
/// Class wrapper for built-in type "xs:decimal" derived from xsd__anyType
class xsd__decimal_ : public xsd__anyType
{ public:
xsd__decimal __item;
};
// Forward declaration of class ns1__ReplyBase. /// Class wrapper for built-in type "xs:double" derived from xsd__anyType
class ns1__ReplyBase; class xsd__double : public xsd__anyType
{ public:
double __item;
};
// Forward declaration of class ns1__ServerStatus. /// Class wrapper for built-in type "xs:float" derived from xsd__anyType
class ns1__ServerStatus; class xsd__float : public xsd__anyType
{ public:
float __item;
};
// Forward declaration of class ns1__RequestOptions. /// Class wrapper for built-in type "xs:int" derived from xsd__anyType
class ns1__RequestOptions; class xsd__int : public xsd__anyType
{ public:
int __item;
};
// Forward declaration of class ns1__ReadRequestItemList. /// Class wrapper for built-in type "xs:long" derived from xsd__anyType
class ns1__ReadRequestItemList; class xsd__long : public xsd__anyType
{ public:
LONG64 __item;
};
// Forward declaration of class ns1__ReadRequestItem. /// Class wrapper for built-in type "xs:short" derived from xsd__anyType
class ns1__ReadRequestItem; class xsd__short : public xsd__anyType
{ public:
short __item;
};
// Forward declaration of class ns1__ReplyItemList. /// Class wrapper for built-in type "xs:string" derived from xsd__anyType
class ns1__ReplyItemList; class xsd__string : public xsd__anyType
{ public:
std::string __item;
};
// Forward declaration of class ns1__ItemValue. /// Class wrapper for built-in type "xs:unsignedByte" derived from xsd__anyType
class ns1__ItemValue; class xsd__unsignedByte : public xsd__anyType
{ public:
unsigned char __item;
};
// Forward declaration of class ns1__OPCQuality. /// Class wrapper for built-in type "xs:unsignedInt" derived from xsd__anyType
class ns1__OPCQuality; class xsd__unsignedInt : public xsd__anyType
{ public:
unsigned int __item;
};
// Forward declaration of class ns1__OPCError. /// Class wrapper for built-in type "xs:unsignedLong" derived from xsd__anyType
class ns1__OPCError; class xsd__unsignedLong : public xsd__anyType
{ public:
ULONG64 __item;
};
// Forward declaration of class ns1__ArrayOfFloat. /// Class wrapper for built-in type "xs:unsignedShort" derived from xsd__anyType
class ns1__ArrayOfFloat; class xsd__unsignedShort : public xsd__anyType
{ public:
unsigned short __item;
};
// Forward declaration of class s0__ReplyBase.
class s0__ReplyBase;
// Forward declaration of class s0__ServerStatus.
class s0__ServerStatus;
// Forward declaration of class s0__RequestOptions.
class s0__RequestOptions;
// Forward declaration of class s0__ReadRequestItemList.
class s0__ReadRequestItemList;
// Forward declaration of class s0__ReadRequestItem.
class s0__ReadRequestItem;
// Forward declaration of class s0__ReplyItemList.
class s0__ReplyItemList;
// Forward declaration of class ns1__ArrayOfInt. // Forward declaration of class s0__ItemValue.
class ns1__ArrayOfInt; class s0__ItemValue;
// Forward declaration of class ns1__ArrayOfUnsignedInt. // Forward declaration of class s0__Value.
class ns1__ArrayOfUnsignedInt; class s0__Value;
// Forward declaration of class ns1__ArrayOfLong. // Forward declaration of class s0__OPCQuality.
class ns1__ArrayOfLong; class s0__OPCQuality;
// Forward declaration of class ns1__ArrayOfUnsignedLong. // Forward declaration of class s0__OPCError.
class ns1__ArrayOfUnsignedLong; class s0__OPCError;
// Forward declaration of class ns1__ArrayOfDouble. // Forward declaration of class s0__ArrayOfFloat.
class ns1__ArrayOfDouble; class s0__ArrayOfFloat;
// Forward declaration of class ns1__ArrayOfUnsignedShort. // Forward declaration of class s0__ArrayOfInt.
class ns1__ArrayOfUnsignedShort; class s0__ArrayOfInt;
// Forward declaration of class ns1__ArrayOfBoolean. // Forward declaration of class s0__ArrayOfUnsignedInt.
class ns1__ArrayOfBoolean; class s0__ArrayOfUnsignedInt;
// Forward declaration of class ns1__ArrayOfString. // Forward declaration of class s0__ArrayOfLong.
class ns1__ArrayOfString; class s0__ArrayOfLong;
// Forward declaration of class ns1__ArrayOfDateTime. // Forward declaration of class s0__ArrayOfUnsignedLong.
class ns1__ArrayOfDateTime; class s0__ArrayOfUnsignedLong;
// Forward declaration of class ns1__ArrayOfAnyType. // Forward declaration of class s0__ArrayOfDouble.
class ns1__ArrayOfAnyType; class s0__ArrayOfDouble;
// Forward declaration of class ns1__ArrayOfDecimal. // Forward declaration of class s0__ArrayOfUnsignedShort.
class ns1__ArrayOfDecimal; class s0__ArrayOfUnsignedShort;
// Forward declaration of class ns1__ArrayOfByte. // Forward declaration of class s0__ArrayOfBoolean.
class ns1__ArrayOfByte; class s0__ArrayOfBoolean;
// Forward declaration of class ns1__ArrayOfShort. // Forward declaration of class s0__ArrayOfString.
class ns1__ArrayOfShort; class s0__ArrayOfString;
// Forward declaration of class ns1__WriteRequestItemList. // Forward declaration of class s0__ArrayOfDateTime.
class ns1__WriteRequestItemList; class s0__ArrayOfDateTime;
// Forward declaration of class ns1__SubscribeRequestItemList. // Forward declaration of class s0__ArrayOfAnyType.
class ns1__SubscribeRequestItemList; class s0__ArrayOfAnyType;
// Forward declaration of class ns1__SubscribeRequestItem. // Forward declaration of class s0__ArrayOfDecimal.
class ns1__SubscribeRequestItem; class s0__ArrayOfDecimal;
// Forward declaration of class ns1__SubscribeReplyItemList. // Forward declaration of class s0__ArrayOfByte.
class ns1__SubscribeReplyItemList; class s0__ArrayOfByte;
// Forward declaration of class ns1__SubscribeItemValue. // Forward declaration of class s0__ArrayOfShort.
class ns1__SubscribeItemValue; class s0__ArrayOfShort;
// Forward declaration of class ns1__SubscribePolledRefreshReplyItemList. // Forward declaration of class s0__WriteRequestItemList.
class ns1__SubscribePolledRefreshReplyItemList; class s0__WriteRequestItemList;
// Forward declaration of class ns1__BrowseElement. // Forward declaration of class s0__SubscribeRequestItemList.
class ns1__BrowseElement; class s0__SubscribeRequestItemList;
// Forward declaration of class ns1__ItemProperty. // Forward declaration of class s0__SubscribeRequestItem.
class ns1__ItemProperty; class s0__SubscribeRequestItem;
// Forward declaration of class ns1__ItemIdentifier. // Forward declaration of class s0__SubscribeReplyItemList.
class ns1__ItemIdentifier; class s0__SubscribeReplyItemList;
// Forward declaration of class ns1__PropertyReplyList. // Forward declaration of class s0__SubscribeItemValue.
class ns1__PropertyReplyList; class s0__SubscribeItemValue;
// Forward declaration of class _ns1__GetStatus. // Forward declaration of class s0__SubscribePolledRefreshReplyItemList.
class _ns1__GetStatus; class s0__SubscribePolledRefreshReplyItemList;
// Forward declaration of class _ns1__GetStatusResponse. // Forward declaration of class s0__BrowseElement.
class _ns1__GetStatusResponse; class s0__BrowseElement;
// Forward declaration of class _ns1__Read. // Forward declaration of class s0__ItemProperty.
class _ns1__Read; class s0__ItemProperty;
// Forward declaration of class _ns1__ReadResponse. // Forward declaration of class s0__ItemIdentifier.
class _ns1__ReadResponse; class s0__ItemIdentifier;
// Forward declaration of class _ns1__Write. // Forward declaration of class s0__PropertyReplyList.
class _ns1__Write; class s0__PropertyReplyList;
// Forward declaration of class _ns1__WriteResponse. // Forward declaration of class _s0__GetStatus.
class _ns1__WriteResponse; class _s0__GetStatus;
// Forward declaration of class _ns1__Subscribe. // Forward declaration of class _s0__GetStatusResponse.
class _ns1__Subscribe; class _s0__GetStatusResponse;
// Forward declaration of class _ns1__SubscribeResponse. // Forward declaration of class _s0__Read.
class _ns1__SubscribeResponse; class _s0__Read;
// Forward declaration of class _ns1__SubscriptionPolledRefresh. // Forward declaration of class _s0__ReadResponse.
class _ns1__SubscriptionPolledRefresh; class _s0__ReadResponse;
// Forward declaration of class _ns1__SubscriptionPolledRefreshResponse. // Forward declaration of class _s0__Write.
class _ns1__SubscriptionPolledRefreshResponse; class _s0__Write;
// Forward declaration of class _ns1__SubscriptionCancel. // Forward declaration of class _s0__WriteResponse.
class _ns1__SubscriptionCancel; class _s0__WriteResponse;
// Forward declaration of class _ns1__SubscriptionCancelResponse. // Forward declaration of class _s0__Subscribe.
class _ns1__SubscriptionCancelResponse; class _s0__Subscribe;
// Forward declaration of class _ns1__Browse. // Forward declaration of class _s0__SubscribeResponse.
class _ns1__Browse; class _s0__SubscribeResponse;
// Forward declaration of class _ns1__BrowseResponse. // Forward declaration of class _s0__SubscriptionPolledRefresh.
class _ns1__BrowseResponse; class _s0__SubscriptionPolledRefresh;
// Forward declaration of class _ns1__GetProperties. // Forward declaration of class _s0__SubscriptionPolledRefreshResponse.
class _ns1__GetProperties; class _s0__SubscriptionPolledRefreshResponse;
// Forward declaration of class _ns1__GetPropertiesResponse. // Forward declaration of class _s0__SubscriptionCancel.
class _ns1__GetPropertiesResponse; class _s0__SubscriptionCancel;
// Forward declaration of class _s0__SubscriptionCancelResponse.
class _s0__SubscriptionCancelResponse;
// Forward declaration of class _s0__Browse.
class _s0__Browse;
// Forward declaration of class _s0__BrowseResponse.
class _s0__BrowseResponse;
// Forward declaration of class _s0__GetProperties.
class _s0__GetProperties;
// Forward declaration of class _s0__GetPropertiesResponse.
class _s0__GetPropertiesResponse;
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":serverState is a simpleType restriction of xs:string. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":serverState is a simpleType restriction of xs:string.
/// Note: enum values are prefixed with 'ns1__serverState' to avoid name clashes, please use wsdl2h option -e to omit this prefix /// Note: enum values are prefixed with 's0__serverState' to avoid name clashes, please use wsdl2h option -e to omit this prefix
enum ns1__serverState enum s0__serverState
{ {
ns1__serverState__running, ///< xs:string value="running" s0__serverState__running, ///< xs:string value="running"
ns1__serverState__failed, ///< xs:string value="failed" s0__serverState__failed, ///< xs:string value="failed"
ns1__serverState__noConfig, ///< xs:string value="noConfig" s0__serverState__noConfig, ///< xs:string value="noConfig"
ns1__serverState__suspended, ///< xs:string value="suspended" s0__serverState__suspended, ///< xs:string value="suspended"
ns1__serverState__test, ///< xs:string value="test" s0__serverState__test, ///< xs:string value="test"
ns1__serverState__commFault, ///< xs:string value="commFault" s0__serverState__commFault, ///< xs:string value="commFault"
};
/// Class wrapper
class s0__serverState_ : public xsd__anyType
{ public:
enum s0__serverState __item;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":interfaceVersion is a simpleType restriction of xs:string. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":interfaceVersion is a simpleType restriction of xs:string.
/// Note: enum values are prefixed with 'ns1__interfaceVersion' to avoid name clashes, please use wsdl2h option -e to omit this prefix /// Note: enum values are prefixed with 's0__interfaceVersion' to avoid name clashes, please use wsdl2h option -e to omit this prefix
enum ns1__interfaceVersion enum s0__interfaceVersion
{ {
ns1__interfaceVersion__XML_USCOREDA_USCOREVersion_USCORE1_USCORE0, ///< xs:string value="XML_DA_Version_1_0" s0__interfaceVersion__XML_USCOREDA_USCOREVersion_USCORE1_USCORE0, ///< xs:string value="XML_DA_Version_1_0"
};
/// Class wrapper
class s0__interfaceVersion_ : public xsd__anyType
{ public:
enum s0__interfaceVersion __item;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":qualityBits is a simpleType restriction of xs:string. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":qualityBits is a simpleType restriction of xs:string.
/// Note: enum values are prefixed with 'ns1__qualityBits' to avoid name clashes, please use wsdl2h option -e to omit this prefix /// Note: enum values are prefixed with 's0__qualityBits' to avoid name clashes, please use wsdl2h option -e to omit this prefix
enum ns1__qualityBits enum s0__qualityBits
{ {
ns1__qualityBits__bad, ///< xs:string value="bad" s0__qualityBits__bad, ///< xs:string value="bad"
ns1__qualityBits__badConfigurationError, ///< xs:string value="badConfigurationError" s0__qualityBits__badConfigurationError, ///< xs:string value="badConfigurationError"
ns1__qualityBits__badNotConnected, ///< xs:string value="badNotConnected" s0__qualityBits__badNotConnected, ///< xs:string value="badNotConnected"
ns1__qualityBits__badDeviceFailure, ///< xs:string value="badDeviceFailure" s0__qualityBits__badDeviceFailure, ///< xs:string value="badDeviceFailure"
ns1__qualityBits__badSensorFailure, ///< xs:string value="badSensorFailure" s0__qualityBits__badSensorFailure, ///< xs:string value="badSensorFailure"
ns1__qualityBits__badLastKnownValue, ///< xs:string value="badLastKnownValue" s0__qualityBits__badLastKnownValue, ///< xs:string value="badLastKnownValue"
ns1__qualityBits__badCommFailure, ///< xs:string value="badCommFailure" s0__qualityBits__badCommFailure, ///< xs:string value="badCommFailure"
ns1__qualityBits__badOutOfService, ///< xs:string value="badOutOfService" s0__qualityBits__badOutOfService, ///< xs:string value="badOutOfService"
ns1__qualityBits__badWaitingForInitialData, ///< xs:string value="badWaitingForInitialData" s0__qualityBits__badWaitingForInitialData, ///< xs:string value="badWaitingForInitialData"
ns1__qualityBits__uncertain, ///< xs:string value="uncertain" s0__qualityBits__uncertain, ///< xs:string value="uncertain"
ns1__qualityBits__uncertainLastUsableValue, ///< xs:string value="uncertainLastUsableValue" s0__qualityBits__uncertainLastUsableValue, ///< xs:string value="uncertainLastUsableValue"
ns1__qualityBits__uncertainSensorNotAccurate, ///< xs:string value="uncertainSensorNotAccurate" s0__qualityBits__uncertainSensorNotAccurate, ///< xs:string value="uncertainSensorNotAccurate"
ns1__qualityBits__uncertainEUExceeded, ///< xs:string value="uncertainEUExceeded" s0__qualityBits__uncertainEUExceeded, ///< xs:string value="uncertainEUExceeded"
ns1__qualityBits__uncertainSubNormal, ///< xs:string value="uncertainSubNormal" s0__qualityBits__uncertainSubNormal, ///< xs:string value="uncertainSubNormal"
ns1__qualityBits__good, ///< xs:string value="good" s0__qualityBits__good, ///< xs:string value="good"
ns1__qualityBits__goodLocalOverride, ///< xs:string value="goodLocalOverride" s0__qualityBits__goodLocalOverride, ///< xs:string value="goodLocalOverride"
};
/// Class wrapper
class s0__qualityBits_ : public xsd__anyType
{ public:
enum s0__qualityBits __item;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":limitBits is a simpleType restriction of xs:string. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":limitBits is a simpleType restriction of xs:string.
/// Note: enum values are prefixed with 'ns1__limitBits' to avoid name clashes, please use wsdl2h option -e to omit this prefix /// Note: enum values are prefixed with 's0__limitBits' to avoid name clashes, please use wsdl2h option -e to omit this prefix
enum ns1__limitBits enum s0__limitBits
{ {
ns1__limitBits__none, ///< xs:string value="none" s0__limitBits__none, ///< xs:string value="none"
ns1__limitBits__low, ///< xs:string value="low" s0__limitBits__low, ///< xs:string value="low"
ns1__limitBits__high, ///< xs:string value="high" s0__limitBits__high, ///< xs:string value="high"
ns1__limitBits__constant, ///< xs:string value="constant" s0__limitBits__constant, ///< xs:string value="constant"
};
/// Class wrapper
class s0__limitBits_ : public xsd__anyType
{ public:
enum s0__limitBits __item;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":browseFilter is a simpleType restriction of xs:string. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":browseFilter is a simpleType restriction of xs:string.
/// Note: enum values are prefixed with 'ns1__browseFilter' to avoid name clashes, please use wsdl2h option -e to omit this prefix /// Note: enum values are prefixed with 's0__browseFilter' to avoid name clashes, please use wsdl2h option -e to omit this prefix
enum ns1__browseFilter enum s0__browseFilter
{ {
ns1__browseFilter__all, ///< xs:string value="all" s0__browseFilter__all, ///< xs:string value="all"
ns1__browseFilter__branch, ///< xs:string value="branch" s0__browseFilter__branch, ///< xs:string value="branch"
ns1__browseFilter__item, ///< xs:string value="item" s0__browseFilter__item, ///< xs:string value="item"
};
/// Class wrapper
class s0__browseFilter_ : public xsd__anyType
{ public:
enum s0__browseFilter __item;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyBase is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyBase is a complexType.
class ns1__ReplyBase class s0__ReplyBase : public xsd__anyType
{ public: { public:
/// Attribute RcvTime of type xs:dateTime. /// Attribute RcvTime of type xs:dateTime.
@time_t RcvTime 1; ///< Required attribute. @xsd__dateTime RcvTime 1; ///< Required attribute.
/// Attribute ReplyTime of type xs:dateTime. /// Attribute ReplyTime of type xs:dateTime.
@time_t ReplyTime 1; ///< Required attribute. @xsd__dateTime ReplyTime 1; ///< Required attribute.
/// Attribute ClientRequestHandle of type xs:string. /// Attribute ClientRequestHandle of type xs:string.
@std::string* ClientRequestHandle 0; ///< Optional attribute. @std::string* ClientRequestHandle 0; ///< Optional attribute.
/// Attribute RevisedLocaleID of type xs:string. /// Attribute RevisedLocaleID of type xs:string.
@std::string* RevisedLocaleID 0; ///< Optional attribute. @std::string* RevisedLocaleID 0; ///< Optional attribute.
/// Attribute ServerState of type "http://opcfoundation.org/webservices/XMLDA/1.0/":serverState. /// Attribute ServerState of type "http://opcfoundation.org/webservices/XMLDA/1.0/":serverState.
@enum ns1__serverState ServerState 1; ///< Required attribute. @enum s0__serverState ServerState 1; ///< Required attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ServerStatus is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ServerStatus is a complexType.
class ns1__ServerStatus class s0__ServerStatus : public xsd__anyType
{ public: { public:
/// Element StatusInfo of type xs:string. /// Element StatusInfo of type xs:string.
std::string* StatusInfo 0; ///< Optional element. std::string* StatusInfo 0; ///< Optional element.
...@@ -310,18 +432,16 @@ class ns1__ServerStatus ...@@ -310,18 +432,16 @@ class ns1__ServerStatus
std::string* VendorInfo 0; ///< Optional element. std::string* VendorInfo 0; ///< Optional element.
/// Vector of std::string with length 0..unbounded /// Vector of std::string with length 0..unbounded
std::vector<std::string > SupportedLocaleIDs 0; std::vector<std::string > SupportedLocaleIDs 0;
/// Vector of enum ns1__interfaceVersion with length 0..unbounded /// Vector of enum s0__interfaceVersion with length 0..unbounded
std::vector<enum ns1__interfaceVersion> SupportedInterfaceVersions 0; std::vector<enum s0__interfaceVersion> SupportedInterfaceVersions 0;
/// Attribute StartTime of type xs:dateTime. /// Attribute StartTime of type xs:dateTime.
@time_t StartTime 1; ///< Required attribute. @xsd__dateTime StartTime 1; ///< Required attribute.
/// Attribute ProductVersion of type xs:string. /// Attribute ProductVersion of type xs:string.
@std::string* ProductVersion 0; ///< Optional attribute. @std::string* ProductVersion 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":RequestOptions is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":RequestOptions is a complexType.
class ns1__RequestOptions class s0__RequestOptions : public xsd__anyType
{ public: { public:
/// Attribute ReturnErrorText of type xs:boolean. /// Attribute ReturnErrorText of type xs:boolean.
@bool* ReturnErrorText 0; ///< Optional attribute. @bool* ReturnErrorText 0; ///< Optional attribute.
...@@ -334,32 +454,28 @@ class ns1__RequestOptions ...@@ -334,32 +454,28 @@ class ns1__RequestOptions
/// Attribute ReturnItemName of type xs:boolean. /// Attribute ReturnItemName of type xs:boolean.
@bool* ReturnItemName 0; ///< Optional attribute. @bool* ReturnItemName 0; ///< Optional attribute.
/// Attribute RequestDeadline of type xs:dateTime. /// Attribute RequestDeadline of type xs:dateTime.
@time_t* RequestDeadline 0; ///< Optional attribute. @xsd__dateTime* RequestDeadline 0; ///< Optional attribute.
/// Attribute ClientRequestHandle of type xs:string. /// Attribute ClientRequestHandle of type xs:string.
@std::string* ClientRequestHandle 0; ///< Optional attribute. @std::string* ClientRequestHandle 0; ///< Optional attribute.
/// Attribute LocaleID of type xs:string. /// Attribute LocaleID of type xs:string.
@std::string* LocaleID 0; ///< Optional attribute. @std::string* LocaleID 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ReadRequestItemList is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ReadRequestItemList is a complexType.
class ns1__ReadRequestItemList class s0__ReadRequestItemList : public xsd__anyType
{ public: { public:
/// Vector of ns1__ReadRequestItem* with length 0..unbounded /// Vector of s0__ReadRequestItem* with length 0..unbounded
std::vector<ns1__ReadRequestItem* > Items 0; std::vector<s0__ReadRequestItem* > Items 0;
/// Attribute ItemPath of type xs:string. /// Attribute ItemPath of type xs:string.
@std::string* ItemPath 0; ///< Optional attribute. @std::string* ItemPath 0; ///< Optional attribute.
/// Attribute ReqType of type xs:QName. /// Attribute ReqType of type xs:QName.
@xsd__QName* ReqType 0; ///< Optional attribute. @xsd__QName* ReqType 0; ///< Optional attribute.
/// Attribute MaxAge of type xs:int. /// Attribute MaxAge of type xs:int.
@int* MaxAge 0; ///< Optional attribute. @int* MaxAge 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ReadRequestItem is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ReadRequestItem is a complexType.
class ns1__ReadRequestItem class s0__ReadRequestItem : public xsd__anyType
{ public: { public:
/// Attribute ItemPath of type xs:string. /// Attribute ItemPath of type xs:string.
@std::string* ItemPath 0; ///< Optional attribute. @std::string* ItemPath 0; ///< Optional attribute.
...@@ -371,30 +487,26 @@ class ns1__ReadRequestItem ...@@ -371,30 +487,26 @@ class ns1__ReadRequestItem
@std::string* ClientItemHandle 0; ///< Optional attribute. @std::string* ClientItemHandle 0; ///< Optional attribute.
/// Attribute MaxAge of type xs:int. /// Attribute MaxAge of type xs:int.
@int* MaxAge 0; ///< Optional attribute. @int* MaxAge 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyItemList is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyItemList is a complexType.
class ns1__ReplyItemList class s0__ReplyItemList : public xsd__anyType
{ public: { public:
/// Vector of ns1__ItemValue* with length 0..unbounded /// Vector of s0__ItemValue* with length 0..unbounded
std::vector<ns1__ItemValue* > Items 0; std::vector<s0__ItemValue* > Items 0;
/// Attribute Reserved of type xs:string. /// Attribute Reserved of type xs:string.
@std::string* Reserved 0; ///< Optional attribute. @std::string* Reserved 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ItemValue is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ItemValue is a complexType.
class ns1__ItemValue class s0__ItemValue : public xsd__anyType
{ public: { public:
/// Element DiagnosticInfo of type xs:string. /// Element DiagnosticInfo of type xs:string.
std::string* DiagnosticInfo 0; ///< Optional element. std::string* DiagnosticInfo 0; ///< Optional element.
/// Element 'Value' has no type or ref: assuming XML content. /// Element 'Value' has no type or ref: assuming XML content.
_XML Value 0; ///< Optional element. @xsd__anyType* Value 0; ///< Optional element.
/// Element Quality of type "http://opcfoundation.org/webservices/XMLDA/1.0/":OPCQuality. /// Element Quality of type "http://opcfoundation.org/webservices/XMLDA/1.0/":OPCQuality.
ns1__OPCQuality* Quality 0; ///< Optional element. s0__OPCQuality* Quality 0; ///< Optional element.
/// Attribute ValueTypeQualifier of type xs:QName. /// Attribute ValueTypeQualifier of type xs:QName.
@xsd__QName* ValueTypeQualifier 0; ///< Optional attribute. @xsd__QName* ValueTypeQualifier 0; ///< Optional attribute.
/// Attribute ItemPath of type xs:string. /// Attribute ItemPath of type xs:string.
...@@ -404,180 +516,151 @@ class ns1__ItemValue ...@@ -404,180 +516,151 @@ class ns1__ItemValue
/// Attribute ClientItemHandle of type xs:string. /// Attribute ClientItemHandle of type xs:string.
@std::string* ClientItemHandle 0; ///< Optional attribute. @std::string* ClientItemHandle 0; ///< Optional attribute.
/// Attribute Timestamp of type xs:dateTime. /// Attribute Timestamp of type xs:dateTime.
@time_t* Timestamp 0; ///< Optional attribute. @xsd__dateTime* Timestamp 0; ///< Optional attribute.
/// Attribute ResultID of type xs:QName. /// Attribute ResultID of type xs:QName.
@xsd__QName* ResultID 0; ///< Optional attribute. @xsd__QName* ResultID 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set) };
struct soap *soap ;
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":Value is a complexType.
class s0__Value : public xsd__anyType
{ public:
/// Attribute xsi:type of type xs:QName.
@xsd__QName* xsi__type 0; ///< Optional attribute.
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":OPCQuality is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":OPCQuality is a complexType.
class ns1__OPCQuality class s0__OPCQuality : public xsd__anyType
{ public: { public:
/// Attribute QualityField of type "http://opcfoundation.org/webservices/XMLDA/1.0/":qualityBits. /// Attribute QualityField of type "http://opcfoundation.org/webservices/XMLDA/1.0/":qualityBits.
@enum ns1__qualityBits* QualityField 0; ///< Optional attribute. @enum s0__qualityBits* QualityField 0; ///< Optional attribute.
/// Attribute LimitField of type "http://opcfoundation.org/webservices/XMLDA/1.0/":limitBits. /// Attribute LimitField of type "http://opcfoundation.org/webservices/XMLDA/1.0/":limitBits.
@enum ns1__limitBits* LimitField 0; ///< Optional attribute. @enum s0__limitBits* LimitField 0; ///< Optional attribute.
/// Attribute VendorField of type xs:unsignedByte. /// Attribute VendorField of type xs:unsignedByte.
@unsigned short* VendorField 0; ///< Optional attribute. @unsigned short* VendorField 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":OPCError is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":OPCError is a complexType.
class ns1__OPCError class s0__OPCError : public xsd__anyType
{ public: { public:
/// Element Text of type xs:string. /// Element Text of type xs:string.
std::string* Text 0; ///< Optional element. std::string* Text 0; ///< Optional element.
/// Attribute ID of type xs:QName. /// Attribute ID of type xs:QName.
@xsd__QName ID 1; ///< Required attribute. @xsd__QName ID 1; ///< Required attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfFloat is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfFloat is a complexType.
class ns1__ArrayOfFloat class s0__ArrayOfFloat : public xsd__anyType
{ public: { public:
/// Vector of float with length 0..unbounded /// Vector of float with length 0..unbounded
std::vector<float > float_ 0; std::vector<float > float_ 0;
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfInt is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfInt is a complexType.
class ns1__ArrayOfInt class s0__ArrayOfInt : public xsd__anyType
{ public: { public:
/// Vector of int with length 0..unbounded /// Vector of int with length 0..unbounded
std::vector<int > int_ 0; std::vector<int > int_ 0;
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfUnsignedInt is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfUnsignedInt is a complexType.
class ns1__ArrayOfUnsignedInt class s0__ArrayOfUnsignedInt : public xsd__anyType
{ public: { public:
/// Vector of unsigned int with length 0..unbounded /// Vector of unsigned int with length 0..unbounded
std::vector<unsigned int > unsignedInt 0; std::vector<unsigned int > unsignedInt 0;
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfLong is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfLong is a complexType.
class ns1__ArrayOfLong class s0__ArrayOfLong : public xsd__anyType
{ public: { public:
/// Vector of LONG64 with length 0..unbounded /// Vector of LONG64 with length 0..unbounded
std::vector<LONG64 > long_ 0; std::vector<LONG64 > long_ 0;
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfUnsignedLong is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfUnsignedLong is a complexType.
class ns1__ArrayOfUnsignedLong class s0__ArrayOfUnsignedLong : public xsd__anyType
{ public: { public:
/// Vector of ULONG64 with length 0..unbounded /// Vector of ULONG64 with length 0..unbounded
std::vector<ULONG64 > unsignedLong 0; std::vector<ULONG64 > unsignedLong 0;
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfDouble is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfDouble is a complexType.
class ns1__ArrayOfDouble class s0__ArrayOfDouble : public xsd__anyType
{ public: { public:
/// Vector of double with length 0..unbounded /// Vector of double with length 0..unbounded
std::vector<double > double_ 0; std::vector<double > double_ 0;
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfUnsignedShort is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfUnsignedShort is a complexType.
class ns1__ArrayOfUnsignedShort class s0__ArrayOfUnsignedShort : public xsd__anyType
{ public: { public:
/// Vector of unsigned short with length 0..unbounded /// Vector of unsigned short with length 0..unbounded
std::vector<unsigned short > unsignedShort 0; std::vector<unsigned short > unsignedShort 0;
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfBoolean is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfBoolean is a complexType.
class ns1__ArrayOfBoolean class s0__ArrayOfBoolean : public xsd__anyType
{ public: { public:
/// Vector of bool with length 0..unbounded /// Vector of bool with length 0..unbounded
std::vector<bool > boolean 0; std::vector<bool > boolean 0;
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfString is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfString is a complexType.
class ns1__ArrayOfString class s0__ArrayOfString : public xsd__anyType
{ public: { public:
/// Vector of std::string with length 0..unbounded /// Vector of std::string with length 0..unbounded
std::vector<std::string > string 0; ///< Nullable pointer. std::vector<std::string > string 0; ///< Nullable pointer.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfDateTime is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfDateTime is a complexType.
class ns1__ArrayOfDateTime class s0__ArrayOfDateTime : public xsd__anyType
{ public: { public:
/// Vector of time_t with length 0..unbounded /// Vector of time_t with length 0..unbounded
std::vector<time_t > dateTime 0; std::vector<std::string > dateTime 0;
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfAnyType is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfAnyType is a complexType.
class ns1__ArrayOfAnyType class s0__ArrayOfAnyType : public xsd__anyType
{ public: { public:
/// Element 'anyType' has no type or ref: assuming XML content. /// Element 'anyType' has no type or ref: assuming XML content.
/// Vector of XML with length 0..unbounded /// Vector of XML with length 0..unbounded
std::vector<_XML > anyType 0; ///< Nullable pointer. std::vector<_XML > anyType 0; ///< Nullable pointer.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfDecimal is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfDecimal is a complexType.
class ns1__ArrayOfDecimal class s0__ArrayOfDecimal : public xsd__anyType
{ public: { public:
/// Vector of xsd__decimal with length 0..unbounded /// Vector of xsd__decimal with length 0..unbounded
std::vector<xsd__decimal > decimal 0; std::vector<xsd__decimal > decimal 0;
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfByte is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfByte is a complexType.
class ns1__ArrayOfByte class s0__ArrayOfByte : public xsd__anyType
{ public: { public:
/// Vector of char with length 0..unbounded /// Vector of char with length 0..unbounded
std::vector<char > byte 0; std::vector<char > byte 0;
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfShort is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ArrayOfShort is a complexType.
class ns1__ArrayOfShort class s0__ArrayOfShort : public xsd__anyType
{ public: { public:
/// Vector of short with length 0..unbounded /// Vector of short with length 0..unbounded
std::vector<short > short_ 0; std::vector<short > short_ 0;
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":WriteRequestItemList is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":WriteRequestItemList is a complexType.
class ns1__WriteRequestItemList class s0__WriteRequestItemList : public xsd__anyType
{ public: { public:
/// Vector of ns1__ItemValue* with length 0..unbounded /// Vector of s0__ItemValue* with length 0..unbounded
std::vector<ns1__ItemValue* > Items 0; std::vector<s0__ItemValue* > Items 0;
/// Attribute ItemPath of type xs:string. /// Attribute ItemPath of type xs:string.
@std::string* ItemPath 0; ///< Optional attribute. @std::string* ItemPath 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribeRequestItemList is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribeRequestItemList is a complexType.
class ns1__SubscribeRequestItemList class s0__SubscribeRequestItemList : public xsd__anyType
{ public: { public:
/// Vector of ns1__SubscribeRequestItem* with length 0..unbounded /// Vector of s0__SubscribeRequestItem* with length 0..unbounded
std::vector<ns1__SubscribeRequestItem*> Items 0; std::vector<s0__SubscribeRequestItem*> Items 0;
/// Attribute ItemPath of type xs:string. /// Attribute ItemPath of type xs:string.
@std::string* ItemPath 0; ///< Optional attribute. @std::string* ItemPath 0; ///< Optional attribute.
/// Attribute ReqType of type xs:QName. /// Attribute ReqType of type xs:QName.
...@@ -588,12 +671,10 @@ class ns1__SubscribeRequestItemList ...@@ -588,12 +671,10 @@ class ns1__SubscribeRequestItemList
@int* RequestedSamplingRate 0; ///< Optional attribute. @int* RequestedSamplingRate 0; ///< Optional attribute.
/// Attribute EnableBuffering of type xs:boolean. /// Attribute EnableBuffering of type xs:boolean.
@bool* EnableBuffering 0; ///< Optional attribute. @bool* EnableBuffering 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribeRequestItem is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribeRequestItem is a complexType.
class ns1__SubscribeRequestItem class s0__SubscribeRequestItem : public xsd__anyType
{ public: { public:
/// Attribute ItemPath of type xs:string. /// Attribute ItemPath of type xs:string.
@std::string* ItemPath 0; ///< Optional attribute. @std::string* ItemPath 0; ///< Optional attribute.
...@@ -609,48 +690,40 @@ class ns1__SubscribeRequestItem ...@@ -609,48 +690,40 @@ class ns1__SubscribeRequestItem
@int* RequestedSamplingRate 0; ///< Optional attribute. @int* RequestedSamplingRate 0; ///< Optional attribute.
/// Attribute EnableBuffering of type xs:boolean. /// Attribute EnableBuffering of type xs:boolean.
@bool* EnableBuffering 0; ///< Optional attribute. @bool* EnableBuffering 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribeReplyItemList is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribeReplyItemList is a complexType.
class ns1__SubscribeReplyItemList class s0__SubscribeReplyItemList : public xsd__anyType
{ public: { public:
/// Vector of ns1__SubscribeItemValue* with length 0..unbounded /// Vector of s0__SubscribeItemValue* with length 0..unbounded
std::vector<ns1__SubscribeItemValue*> Items 0; std::vector<s0__SubscribeItemValue*> Items 0;
/// Attribute RevisedSamplingRate of type xs:int. /// Attribute RevisedSamplingRate of type xs:int.
@int* RevisedSamplingRate 0; ///< Optional attribute. @int* RevisedSamplingRate 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribeItemValue is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribeItemValue is a complexType.
class ns1__SubscribeItemValue class s0__SubscribeItemValue : public xsd__anyType
{ public: { public:
/// Element ItemValue of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ItemValue. /// Element ItemValue of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ItemValue.
ns1__ItemValue* ItemValue 0; ///< Optional element. s0__ItemValue* ItemValue 0; ///< Optional element.
/// Attribute RevisedSamplingRate of type xs:int. /// Attribute RevisedSamplingRate of type xs:int.
@int* RevisedSamplingRate 0; ///< Optional attribute. @int* RevisedSamplingRate 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribePolledRefreshReplyItemList is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribePolledRefreshReplyItemList is a complexType.
class ns1__SubscribePolledRefreshReplyItemList class s0__SubscribePolledRefreshReplyItemList : public xsd__anyType
{ public: { public:
/// Vector of ns1__ItemValue* with length 0..unbounded /// Vector of s0__ItemValue* with length 0..unbounded
std::vector<ns1__ItemValue* > Items 0; std::vector<s0__ItemValue* > Items 0;
/// Attribute SubscriptionHandle of type xs:string. /// Attribute SubscriptionHandle of type xs:string.
@std::string* SubscriptionHandle 0; ///< Optional attribute. @std::string* SubscriptionHandle 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":BrowseElement is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":BrowseElement is a complexType.
class ns1__BrowseElement class s0__BrowseElement : public xsd__anyType
{ public: { public:
/// Vector of ns1__ItemProperty* with length 0..unbounded /// Vector of s0__ItemProperty* with length 0..unbounded
std::vector<ns1__ItemProperty* > Properties 0; std::vector<s0__ItemProperty* > Properties 0;
/// Attribute Name of type xs:string. /// Attribute Name of type xs:string.
@std::string* Name 0; ///< Optional attribute. @std::string* Name 0; ///< Optional attribute.
/// Attribute ItemPath of type xs:string. /// Attribute ItemPath of type xs:string.
...@@ -661,15 +734,13 @@ class ns1__BrowseElement ...@@ -661,15 +734,13 @@ class ns1__BrowseElement
@bool IsItem 1; ///< Required attribute. @bool IsItem 1; ///< Required attribute.
/// Attribute HasChildren of type xs:boolean. /// Attribute HasChildren of type xs:boolean.
@bool HasChildren 1; ///< Required attribute. @bool HasChildren 1; ///< Required attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ItemProperty is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ItemProperty is a complexType.
class ns1__ItemProperty class s0__ItemProperty : public xsd__anyType
{ public: { public:
/// Element 'Value' has no type or ref: assuming XML content. /// Element 'Value' has no type or ref: assuming XML content.
_XML Value 0; ///< Optional element. @xsd__anyType* Value 0; ///< Optional element.
/// Attribute Name of type xs:QName. /// Attribute Name of type xs:QName.
@xsd__QName Name 1; ///< Required attribute. @xsd__QName Name 1; ///< Required attribute.
/// Attribute Description of type xs:string. /// Attribute Description of type xs:string.
...@@ -680,41 +751,35 @@ class ns1__ItemProperty ...@@ -680,41 +751,35 @@ class ns1__ItemProperty
@std::string* ItemName 0; ///< Optional attribute. @std::string* ItemName 0; ///< Optional attribute.
/// Attribute ResultID of type xs:QName. /// Attribute ResultID of type xs:QName.
@xsd__QName* ResultID 0; ///< Optional attribute. @xsd__QName* ResultID 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ItemIdentifier is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ItemIdentifier is a complexType.
class ns1__ItemIdentifier class s0__ItemIdentifier : public xsd__anyType
{ public: { public:
/// Attribute ItemPath of type xs:string. /// Attribute ItemPath of type xs:string.
@std::string* ItemPath 0; ///< Optional attribute. @std::string* ItemPath 0; ///< Optional attribute.
/// Attribute ItemName of type xs:string. /// Attribute ItemName of type xs:string.
@std::string* ItemName 0; ///< Optional attribute. @std::string* ItemName 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":PropertyReplyList is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":PropertyReplyList is a complexType.
class ns1__PropertyReplyList class s0__PropertyReplyList : public xsd__anyType
{ public: { public:
/// Vector of ns1__ItemProperty* with length 0..unbounded /// Vector of s0__ItemProperty* with length 0..unbounded
std::vector<ns1__ItemProperty* > Properties 0; std::vector<s0__ItemProperty* > Properties 0;
/// Attribute ItemPath of type xs:string. /// Attribute ItemPath of type xs:string.
@std::string* ItemPath 0; ///< Optional attribute. @std::string* ItemPath 0; ///< Optional attribute.
/// Attribute ItemName of type xs:string. /// Attribute ItemName of type xs:string.
@std::string* ItemName 0; ///< Optional attribute. @std::string* ItemName 0; ///< Optional attribute.
/// Attribute ResultID of type xs:QName. /// Attribute ResultID of type xs:QName.
@xsd__QName* ResultID 0; ///< Optional attribute. @xsd__QName* ResultID 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
}; };
/// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":GetStatus of complexType. /// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":GetStatus of complexType.
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":GetStatus is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":GetStatus is a complexType.
class _ns1__GetStatus class _s0__GetStatus
{ public: { public:
/// Attribute LocaleID of type xs:string. /// Attribute LocaleID of type xs:string.
@std::string* LocaleID 0; ///< Optional attribute. @std::string* LocaleID 0; ///< Optional attribute.
...@@ -728,12 +793,12 @@ class _ns1__GetStatus ...@@ -728,12 +793,12 @@ class _ns1__GetStatus
/// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":GetStatusResponse of complexType. /// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":GetStatusResponse of complexType.
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":GetStatusResponse is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":GetStatusResponse is a complexType.
class _ns1__GetStatusResponse class _s0__GetStatusResponse
{ public: { public:
/// Element GetStatusResult of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyBase. /// Element GetStatusResult of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyBase.
ns1__ReplyBase* GetStatusResult 0; ///< Optional element. s0__ReplyBase* GetStatusResult 0; ///< Optional element.
/// Element Status of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ServerStatus. /// Element Status of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ServerStatus.
ns1__ServerStatus* Status 0; ///< Optional element. s0__ServerStatus* Status 0; ///< Optional element.
/// A handle to the soap struct that manages this instance (automatically set) /// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ; struct soap *soap ;
}; };
...@@ -742,12 +807,12 @@ class _ns1__GetStatusResponse ...@@ -742,12 +807,12 @@ class _ns1__GetStatusResponse
/// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":Read of complexType. /// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":Read of complexType.
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":Read is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":Read is a complexType.
class _ns1__Read class _s0__Read
{ public: { public:
/// Element Options of type "http://opcfoundation.org/webservices/XMLDA/1.0/":RequestOptions. /// Element Options of type "http://opcfoundation.org/webservices/XMLDA/1.0/":RequestOptions.
ns1__RequestOptions* Options 0; ///< Optional element. s0__RequestOptions* Options 0; ///< Optional element.
/// Element ItemList of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReadRequestItemList. /// Element ItemList of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReadRequestItemList.
ns1__ReadRequestItemList* ItemList 0; ///< Optional element. s0__ReadRequestItemList* ItemList 0; ///< Optional element.
/// A handle to the soap struct that manages this instance (automatically set) /// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ; struct soap *soap ;
}; };
...@@ -756,14 +821,14 @@ class _ns1__Read ...@@ -756,14 +821,14 @@ class _ns1__Read
/// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":ReadResponse of complexType. /// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":ReadResponse of complexType.
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":ReadResponse is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":ReadResponse is a complexType.
class _ns1__ReadResponse class _s0__ReadResponse
{ public: { public:
/// Element ReadResult of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyBase. /// Element ReadResult of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyBase.
ns1__ReplyBase* ReadResult 0; ///< Optional element. s0__ReplyBase* ReadResult 0; ///< Optional element.
/// Element RItemList of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyItemList. /// Element RItemList of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyItemList.
ns1__ReplyItemList* RItemList 0; ///< Optional element. s0__ReplyItemList* RItemList 0; ///< Optional element.
/// Vector of ns1__OPCError* with length 0..unbounded /// Vector of s0__OPCError* with length 0..unbounded
std::vector<ns1__OPCError* > Errors 0; std::vector<s0__OPCError* > Errors 0;
/// A handle to the soap struct that manages this instance (automatically set) /// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ; struct soap *soap ;
}; };
...@@ -772,12 +837,12 @@ class _ns1__ReadResponse ...@@ -772,12 +837,12 @@ class _ns1__ReadResponse
/// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":Write of complexType. /// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":Write of complexType.
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":Write is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":Write is a complexType.
class _ns1__Write class _s0__Write
{ public: { public:
/// Element Options of type "http://opcfoundation.org/webservices/XMLDA/1.0/":RequestOptions. /// Element Options of type "http://opcfoundation.org/webservices/XMLDA/1.0/":RequestOptions.
ns1__RequestOptions* Options 0; ///< Optional element. s0__RequestOptions* Options 0; ///< Optional element.
/// Element ItemList of type "http://opcfoundation.org/webservices/XMLDA/1.0/":WriteRequestItemList. /// Element ItemList of type "http://opcfoundation.org/webservices/XMLDA/1.0/":WriteRequestItemList.
ns1__WriteRequestItemList* ItemList 0; ///< Optional element. s0__WriteRequestItemList* ItemList 0; ///< Optional element.
/// Attribute ReturnValuesOnReply of type xs:boolean. /// Attribute ReturnValuesOnReply of type xs:boolean.
@bool ReturnValuesOnReply 1; ///< Required attribute. @bool ReturnValuesOnReply 1; ///< Required attribute.
/// A handle to the soap struct that manages this instance (automatically set) /// A handle to the soap struct that manages this instance (automatically set)
...@@ -788,14 +853,14 @@ class _ns1__Write ...@@ -788,14 +853,14 @@ class _ns1__Write
/// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":WriteResponse of complexType. /// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":WriteResponse of complexType.
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":WriteResponse is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":WriteResponse is a complexType.
class _ns1__WriteResponse class _s0__WriteResponse
{ public: { public:
/// Element WriteResult of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyBase. /// Element WriteResult of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyBase.
ns1__ReplyBase* WriteResult 0; ///< Optional element. s0__ReplyBase* WriteResult 0; ///< Optional element.
/// Element RItemList of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyItemList. /// Element RItemList of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyItemList.
ns1__ReplyItemList* RItemList 0; ///< Optional element. s0__ReplyItemList* RItemList 0; ///< Optional element.
/// Vector of ns1__OPCError* with length 0..unbounded /// Vector of s0__OPCError* with length 0..unbounded
std::vector<ns1__OPCError* > Errors 0; std::vector<s0__OPCError* > Errors 0;
/// A handle to the soap struct that manages this instance (automatically set) /// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ; struct soap *soap ;
}; };
...@@ -804,12 +869,12 @@ class _ns1__WriteResponse ...@@ -804,12 +869,12 @@ class _ns1__WriteResponse
/// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":Subscribe of complexType. /// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":Subscribe of complexType.
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":Subscribe is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":Subscribe is a complexType.
class _ns1__Subscribe class _s0__Subscribe
{ public: { public:
/// Element Options of type "http://opcfoundation.org/webservices/XMLDA/1.0/":RequestOptions. /// Element Options of type "http://opcfoundation.org/webservices/XMLDA/1.0/":RequestOptions.
ns1__RequestOptions* Options 0; ///< Optional element. s0__RequestOptions* Options 0; ///< Optional element.
/// Element ItemList of type "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribeRequestItemList. /// Element ItemList of type "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribeRequestItemList.
ns1__SubscribeRequestItemList* ItemList 0; ///< Optional element. s0__SubscribeRequestItemList* ItemList 0; ///< Optional element.
/// Attribute ReturnValuesOnReply of type xs:boolean. /// Attribute ReturnValuesOnReply of type xs:boolean.
@bool ReturnValuesOnReply 1; ///< Required attribute. @bool ReturnValuesOnReply 1; ///< Required attribute.
/// Attribute SubscriptionPingRate of type xs:int. /// Attribute SubscriptionPingRate of type xs:int.
...@@ -822,14 +887,14 @@ class _ns1__Subscribe ...@@ -822,14 +887,14 @@ class _ns1__Subscribe
/// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribeResponse of complexType. /// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribeResponse of complexType.
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribeResponse is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribeResponse is a complexType.
class _ns1__SubscribeResponse class _s0__SubscribeResponse
{ public: { public:
/// Element SubscribeResult of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyBase. /// Element SubscribeResult of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyBase.
ns1__ReplyBase* SubscribeResult 0; ///< Optional element. s0__ReplyBase* SubscribeResult 0; ///< Optional element.
/// Element RItemList of type "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribeReplyItemList. /// Element RItemList of type "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscribeReplyItemList.
ns1__SubscribeReplyItemList* RItemList 0; ///< Optional element. s0__SubscribeReplyItemList* RItemList 0; ///< Optional element.
/// Vector of ns1__OPCError* with length 0..unbounded /// Vector of s0__OPCError* with length 0..unbounded
std::vector<ns1__OPCError* > Errors 0; std::vector<s0__OPCError* > Errors 0;
/// Attribute ServerSubHandle of type xs:string. /// Attribute ServerSubHandle of type xs:string.
@std::string* ServerSubHandle 0; ///< Optional attribute. @std::string* ServerSubHandle 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set) /// A handle to the soap struct that manages this instance (automatically set)
...@@ -840,14 +905,14 @@ class _ns1__SubscribeResponse ...@@ -840,14 +905,14 @@ class _ns1__SubscribeResponse
/// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscriptionPolledRefresh of complexType. /// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscriptionPolledRefresh of complexType.
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscriptionPolledRefresh is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscriptionPolledRefresh is a complexType.
class _ns1__SubscriptionPolledRefresh class _s0__SubscriptionPolledRefresh
{ public: { public:
/// Element Options of type "http://opcfoundation.org/webservices/XMLDA/1.0/":RequestOptions. /// Element Options of type "http://opcfoundation.org/webservices/XMLDA/1.0/":RequestOptions.
ns1__RequestOptions* Options 0; ///< Optional element. s0__RequestOptions* Options 0; ///< Optional element.
/// Vector of std::string with length 0..unbounded /// Vector of std::string with length 0..unbounded
std::vector<std::string > ServerSubHandles 0; std::vector<std::string > ServerSubHandles 0;
/// Attribute HoldTime of type xs:dateTime. /// Attribute HoldTime of type xs:dateTime.
@time_t* HoldTime 0; ///< Optional attribute. @xsd__dateTime* HoldTime 0; ///< Optional attribute.
/// Attribute WaitTime of type xs:int. /// Attribute WaitTime of type xs:int.
@int* WaitTime 0; ///< Optional attribute. @int* WaitTime 0; ///< Optional attribute.
/// Attribute ReturnAllItems of type xs:boolean. /// Attribute ReturnAllItems of type xs:boolean.
...@@ -860,16 +925,16 @@ class _ns1__SubscriptionPolledRefresh ...@@ -860,16 +925,16 @@ class _ns1__SubscriptionPolledRefresh
/// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscriptionPolledRefreshResponse of complexType. /// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscriptionPolledRefreshResponse of complexType.
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscriptionPolledRefreshResponse is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscriptionPolledRefreshResponse is a complexType.
class _ns1__SubscriptionPolledRefreshResponse class _s0__SubscriptionPolledRefreshResponse
{ public: { public:
/// Element SubscriptionPolledRefreshResult of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyBase. /// Element SubscriptionPolledRefreshResult of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyBase.
ns1__ReplyBase* SubscriptionPolledRefreshResult 0; ///< Optional element. s0__ReplyBase* SubscriptionPolledRefreshResult 0; ///< Optional element.
/// Vector of std::string with length 0..unbounded /// Vector of std::string with length 0..unbounded
std::vector<std::string > InvalidServerSubHandles 0; std::vector<std::string > InvalidServerSubHandles 0;
/// Vector of ns1__SubscribePolledRefreshReplyItemList* with length 0..unbounded /// Vector of s0__SubscribePolledRefreshReplyItemList* with length 0..unbounded
std::vector<ns1__SubscribePolledRefreshReplyItemList*> RItemList 0; std::vector<s0__SubscribePolledRefreshReplyItemList*> RItemList 0;
/// Vector of ns1__OPCError* with length 0..unbounded /// Vector of s0__OPCError* with length 0..unbounded
std::vector<ns1__OPCError* > Errors 0; std::vector<s0__OPCError* > Errors 0;
/// Attribute DataBufferOverflow of type xs:boolean. /// Attribute DataBufferOverflow of type xs:boolean.
@bool* DataBufferOverflow 0; ///< Optional attribute. @bool* DataBufferOverflow 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set) /// A handle to the soap struct that manages this instance (automatically set)
...@@ -880,7 +945,7 @@ class _ns1__SubscriptionPolledRefreshResponse ...@@ -880,7 +945,7 @@ class _ns1__SubscriptionPolledRefreshResponse
/// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscriptionCancel of complexType. /// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscriptionCancel of complexType.
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscriptionCancel is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscriptionCancel is a complexType.
class _ns1__SubscriptionCancel class _s0__SubscriptionCancel
{ public: { public:
/// Attribute ServerSubHandle of type xs:string. /// Attribute ServerSubHandle of type xs:string.
@std::string* ServerSubHandle 0; ///< Optional attribute. @std::string* ServerSubHandle 0; ///< Optional attribute.
...@@ -894,7 +959,7 @@ class _ns1__SubscriptionCancel ...@@ -894,7 +959,7 @@ class _ns1__SubscriptionCancel
/// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscriptionCancelResponse of complexType. /// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscriptionCancelResponse of complexType.
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscriptionCancelResponse is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":SubscriptionCancelResponse is a complexType.
class _ns1__SubscriptionCancelResponse class _s0__SubscriptionCancelResponse
{ public: { public:
/// Attribute ClientRequestHandle of type xs:string. /// Attribute ClientRequestHandle of type xs:string.
@std::string* ClientRequestHandle 0; ///< Optional attribute. @std::string* ClientRequestHandle 0; ///< Optional attribute.
...@@ -906,7 +971,7 @@ class _ns1__SubscriptionCancelResponse ...@@ -906,7 +971,7 @@ class _ns1__SubscriptionCancelResponse
/// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":Browse of complexType. /// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":Browse of complexType.
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":Browse is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":Browse is a complexType.
class _ns1__Browse class _s0__Browse
{ public: { public:
/// Vector of xsd__QName with length 0..unbounded /// Vector of xsd__QName with length 0..unbounded
std::vector<xsd__QName > PropertyNames 0; std::vector<xsd__QName > PropertyNames 0;
...@@ -923,7 +988,7 @@ class _ns1__Browse ...@@ -923,7 +988,7 @@ class _ns1__Browse
/// Attribute MaxElementsReturned of type xs:int. /// Attribute MaxElementsReturned of type xs:int.
@int* MaxElementsReturned 0; ///< Optional attribute. @int* MaxElementsReturned 0; ///< Optional attribute.
/// Attribute BrowseFilter of type "http://opcfoundation.org/webservices/XMLDA/1.0/":browseFilter. /// Attribute BrowseFilter of type "http://opcfoundation.org/webservices/XMLDA/1.0/":browseFilter.
@enum ns1__browseFilter* BrowseFilter 0; ///< Optional attribute. @enum s0__browseFilter* BrowseFilter 0; ///< Optional attribute.
/// Attribute ElementNameFilter of type xs:string. /// Attribute ElementNameFilter of type xs:string.
@std::string* ElementNameFilter 0; ///< Optional attribute. @std::string* ElementNameFilter 0; ///< Optional attribute.
/// Attribute VendorFilter of type xs:string. /// Attribute VendorFilter of type xs:string.
...@@ -942,14 +1007,14 @@ class _ns1__Browse ...@@ -942,14 +1007,14 @@ class _ns1__Browse
/// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":BrowseResponse of complexType. /// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":BrowseResponse of complexType.
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":BrowseResponse is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":BrowseResponse is a complexType.
class _ns1__BrowseResponse class _s0__BrowseResponse
{ public: { public:
/// Element BrowseResult of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyBase. /// Element BrowseResult of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyBase.
ns1__ReplyBase* BrowseResult 0; ///< Optional element. s0__ReplyBase* BrowseResult 0; ///< Optional element.
/// Vector of ns1__BrowseElement* with length 0..unbounded /// Vector of s0__BrowseElement* with length 0..unbounded
std::vector<ns1__BrowseElement* > Elements 0; std::vector<s0__BrowseElement* > Elements 0;
/// Vector of ns1__OPCError* with length 0..unbounded /// Vector of s0__OPCError* with length 0..unbounded
std::vector<ns1__OPCError* > Errors 0; std::vector<s0__OPCError* > Errors 0;
/// Attribute ContinuationPoint of type xs:string. /// Attribute ContinuationPoint of type xs:string.
@std::string* ContinuationPoint 0; ///< Optional attribute. @std::string* ContinuationPoint 0; ///< Optional attribute.
/// Attribute MoreElements of type xs:boolean. /// Attribute MoreElements of type xs:boolean.
...@@ -962,10 +1027,10 @@ class _ns1__BrowseResponse ...@@ -962,10 +1027,10 @@ class _ns1__BrowseResponse
/// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":GetProperties of complexType. /// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":GetProperties of complexType.
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":GetProperties is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":GetProperties is a complexType.
class _ns1__GetProperties class _s0__GetProperties
{ public: { public:
/// Vector of ns1__ItemIdentifier* with length 0..unbounded /// Vector of s0__ItemIdentifier* with length 0..unbounded
std::vector<ns1__ItemIdentifier* > ItemIDs 0; std::vector<s0__ItemIdentifier* > ItemIDs 0;
/// Vector of xsd__QName with length 0..unbounded /// Vector of xsd__QName with length 0..unbounded
std::vector<xsd__QName > PropertyNames 0; std::vector<xsd__QName > PropertyNames 0;
/// Attribute LocaleID of type xs:string. /// Attribute LocaleID of type xs:string.
...@@ -988,14 +1053,14 @@ class _ns1__GetProperties ...@@ -988,14 +1053,14 @@ class _ns1__GetProperties
/// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":GetPropertiesResponse of complexType. /// Element "http://opcfoundation.org/webservices/XMLDA/1.0/":GetPropertiesResponse of complexType.
/// "http://opcfoundation.org/webservices/XMLDA/1.0/":GetPropertiesResponse is a complexType. /// "http://opcfoundation.org/webservices/XMLDA/1.0/":GetPropertiesResponse is a complexType.
class _ns1__GetPropertiesResponse class _s0__GetPropertiesResponse
{ public: { public:
/// Element GetPropertiesResult of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyBase. /// Element GetPropertiesResult of type "http://opcfoundation.org/webservices/XMLDA/1.0/":ReplyBase.
ns1__ReplyBase* GetPropertiesResult 0; ///< Optional element. s0__ReplyBase* GetPropertiesResult 0; ///< Optional element.
/// Vector of ns1__PropertyReplyList* with length 0..unbounded /// Vector of s0__PropertyReplyList* with length 0..unbounded
std::vector<ns1__PropertyReplyList*> PropertyLists 0; std::vector<s0__PropertyReplyList* > PropertyLists 0;
/// Vector of ns1__OPCError* with length 0..unbounded /// Vector of s0__OPCError* with length 0..unbounded
std::vector<ns1__OPCError* > Errors 0; std::vector<s0__OPCError* > Errors 0;
/// A handle to the soap struct that manages this instance (automatically set) /// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ; struct soap *soap ;
}; };
...@@ -1007,10 +1072,10 @@ class _ns1__GetPropertiesResponse ...@@ -1007,10 +1072,10 @@ class _ns1__GetPropertiesResponse
\******************************************************************************/ \******************************************************************************/
//gsoap ns1 service name: Service //gsoap s0 service name: Service
//gsoap ns1 service type: Service //gsoap s0 service type: Service
//gsoap ns1 service namespace: http://opcfoundation.org/webservices/XMLDA/1.0/ //gsoap s0 service namespace: http://opcfoundation.org/webservices/XMLDA/1.0/
//gsoap ns1 service transport: http://schemas.xmlsoap.org/soap/http //gsoap s0 service transport: http://schemas.xmlsoap.org/soap/http
/** @mainpage Service Definitions /** @mainpage Service Definitions
...@@ -1024,14 +1089,14 @@ class _ns1__GetPropertiesResponse ...@@ -1024,14 +1089,14 @@ class _ns1__GetPropertiesResponse
@page Service Binding "Service" @page Service Binding "Service"
@section Service_operations Operations of Binding "Service" @section Service_operations Operations of Binding "Service"
- @ref __ns1__GetStatus - @ref __s0__GetStatus
- @ref __ns1__Read - @ref __s0__Read
- @ref __ns1__Write - @ref __s0__Write
- @ref __ns1__Subscribe - @ref __s0__Subscribe
- @ref __ns1__SubscriptionPolledRefresh - @ref __s0__SubscriptionPolledRefresh
- @ref __ns1__SubscriptionCancel - @ref __s0__SubscriptionCancel
- @ref __ns1__Browse - @ref __s0__Browse
- @ref __ns1__GetProperties - @ref __s0__GetProperties
@section Service_ports Endpoints of Binding "Service" @section Service_ports Endpoints of Binding "Service"
...@@ -1046,12 +1111,12 @@ class _ns1__GetPropertiesResponse ...@@ -1046,12 +1111,12 @@ class _ns1__GetPropertiesResponse
/******************************************************************************\ /******************************************************************************\
* * * *
* __ns1__GetStatus * * __s0__GetStatus *
* * * *
\******************************************************************************/ \******************************************************************************/
/// Operation "__ns1__GetStatus" of service binding "Service" /// Operation "__s0__GetStatus" of service binding "Service"
/** /**
...@@ -1062,25 +1127,25 @@ Operation details: ...@@ -1062,25 +1127,25 @@ Operation details:
C stub function (defined in soapClient.c[pp] generated by soapcpp2): C stub function (defined in soapClient.c[pp] generated by soapcpp2):
@code @code
int soap_call___ns1__GetStatus( int soap_call___s0__GetStatus(
struct soap *soap, struct soap *soap,
NULL, // char *endpoint = NULL selects default endpoint for this operation NULL, // char *endpoint = NULL selects default endpoint for this operation
NULL, // char *action = NULL selects default action for this operation NULL, // char *action = NULL selects default action for this operation
// request parameters: // request parameters:
_ns1__GetStatus* ns1__GetStatus, _s0__GetStatus* s0__GetStatus,
// response parameters: // response parameters:
_ns1__GetStatusResponse* ns1__GetStatusResponse _s0__GetStatusResponse* s0__GetStatusResponse
); );
@endcode @endcode
C server function (called from the service dispatcher defined in soapServer.c[pp]): C server function (called from the service dispatcher defined in soapServer.c[pp]):
@code @code
int __ns1__GetStatus( int __s0__GetStatus(
struct soap *soap, struct soap *soap,
// request parameters: // request parameters:
_ns1__GetStatus* ns1__GetStatus, _s0__GetStatus* s0__GetStatus,
// response parameters: // response parameters:
_ns1__GetStatusResponse* ns1__GetStatusResponse _s0__GetStatusResponse* s0__GetStatusResponse
); );
@endcode @endcode
...@@ -1089,22 +1154,22 @@ C++ proxy class (defined in soapServiceProxy.h): ...@@ -1089,22 +1154,22 @@ C++ proxy class (defined in soapServiceProxy.h):
*/ */
//gsoap ns1 service method-style: GetStatus document //gsoap s0 service method-style: GetStatus document
//gsoap ns1 service method-encoding: GetStatus literal //gsoap s0 service method-encoding: GetStatus literal
//gsoap ns1 service method-action: GetStatus http://opcfoundation.org/webservices/XMLDA/1.0/GetStatus //gsoap s0 service method-action: GetStatus http://opcfoundation.org/webservices/XMLDA/1.0/GetStatus
int __ns1__GetStatus( int __s0__GetStatus(
_ns1__GetStatus* ns1__GetStatus, ///< Request parameter _s0__GetStatus* s0__GetStatus, ///< Request parameter
_ns1__GetStatusResponse* ns1__GetStatusResponse ///< Response parameter _s0__GetStatusResponse* s0__GetStatusResponse ///< Response parameter
); );
/******************************************************************************\ /******************************************************************************\
* * * *
* __ns1__Read * * __s0__Read *
* * * *
\******************************************************************************/ \******************************************************************************/
/// Operation "__ns1__Read" of service binding "Service" /// Operation "__s0__Read" of service binding "Service"
/** /**
...@@ -1115,25 +1180,25 @@ Operation details: ...@@ -1115,25 +1180,25 @@ Operation details:
C stub function (defined in soapClient.c[pp] generated by soapcpp2): C stub function (defined in soapClient.c[pp] generated by soapcpp2):
@code @code
int soap_call___ns1__Read( int soap_call___s0__Read(
struct soap *soap, struct soap *soap,
NULL, // char *endpoint = NULL selects default endpoint for this operation NULL, // char *endpoint = NULL selects default endpoint for this operation
NULL, // char *action = NULL selects default action for this operation NULL, // char *action = NULL selects default action for this operation
// request parameters: // request parameters:
_ns1__Read* ns1__Read, _s0__Read* s0__Read,
// response parameters: // response parameters:
_ns1__ReadResponse* ns1__ReadResponse _s0__ReadResponse* s0__ReadResponse
); );
@endcode @endcode
C server function (called from the service dispatcher defined in soapServer.c[pp]): C server function (called from the service dispatcher defined in soapServer.c[pp]):
@code @code
int __ns1__Read( int __s0__Read(
struct soap *soap, struct soap *soap,
// request parameters: // request parameters:
_ns1__Read* ns1__Read, _s0__Read* s0__Read,
// response parameters: // response parameters:
_ns1__ReadResponse* ns1__ReadResponse _s0__ReadResponse* s0__ReadResponse
); );
@endcode @endcode
...@@ -1142,22 +1207,22 @@ C++ proxy class (defined in soapServiceProxy.h): ...@@ -1142,22 +1207,22 @@ C++ proxy class (defined in soapServiceProxy.h):
*/ */
//gsoap ns1 service method-style: Read document //gsoap s0 service method-style: Read document
//gsoap ns1 service method-encoding: Read literal //gsoap s0 service method-encoding: Read literal
//gsoap ns1 service method-action: Read http://opcfoundation.org/webservices/XMLDA/1.0/Read //gsoap s0 service method-action: Read http://opcfoundation.org/webservices/XMLDA/1.0/Read
int __ns1__Read( int __s0__Read(
_ns1__Read* ns1__Read, ///< Request parameter _s0__Read* s0__Read, ///< Request parameter
_ns1__ReadResponse* ns1__ReadResponse ///< Response parameter _s0__ReadResponse* s0__ReadResponse ///< Response parameter
); );
/******************************************************************************\ /******************************************************************************\
* * * *
* __ns1__Write * * __s0__Write *
* * * *
\******************************************************************************/ \******************************************************************************/
/// Operation "__ns1__Write" of service binding "Service" /// Operation "__s0__Write" of service binding "Service"
/** /**
...@@ -1168,25 +1233,25 @@ Operation details: ...@@ -1168,25 +1233,25 @@ Operation details:
C stub function (defined in soapClient.c[pp] generated by soapcpp2): C stub function (defined in soapClient.c[pp] generated by soapcpp2):
@code @code
int soap_call___ns1__Write( int soap_call___s0__Write(
struct soap *soap, struct soap *soap,
NULL, // char *endpoint = NULL selects default endpoint for this operation NULL, // char *endpoint = NULL selects default endpoint for this operation
NULL, // char *action = NULL selects default action for this operation NULL, // char *action = NULL selects default action for this operation
// request parameters: // request parameters:
_ns1__Write* ns1__Write, _s0__Write* s0__Write,
// response parameters: // response parameters:
_ns1__WriteResponse* ns1__WriteResponse _s0__WriteResponse* s0__WriteResponse
); );
@endcode @endcode
C server function (called from the service dispatcher defined in soapServer.c[pp]): C server function (called from the service dispatcher defined in soapServer.c[pp]):
@code @code
int __ns1__Write( int __s0__Write(
struct soap *soap, struct soap *soap,
// request parameters: // request parameters:
_ns1__Write* ns1__Write, _s0__Write* s0__Write,
// response parameters: // response parameters:
_ns1__WriteResponse* ns1__WriteResponse _s0__WriteResponse* s0__WriteResponse
); );
@endcode @endcode
...@@ -1195,22 +1260,22 @@ C++ proxy class (defined in soapServiceProxy.h): ...@@ -1195,22 +1260,22 @@ C++ proxy class (defined in soapServiceProxy.h):
*/ */
//gsoap ns1 service method-style: Write document //gsoap s0 service method-style: Write document
//gsoap ns1 service method-encoding: Write literal //gsoap s0 service method-encoding: Write literal
//gsoap ns1 service method-action: Write http://opcfoundation.org/webservices/XMLDA/1.0/Write //gsoap s0 service method-action: Write http://opcfoundation.org/webservices/XMLDA/1.0/Write
int __ns1__Write( int __s0__Write(
_ns1__Write* ns1__Write, ///< Request parameter _s0__Write* s0__Write, ///< Request parameter
_ns1__WriteResponse* ns1__WriteResponse ///< Response parameter _s0__WriteResponse* s0__WriteResponse ///< Response parameter
); );
/******************************************************************************\ /******************************************************************************\
* * * *
* __ns1__Subscribe * * __s0__Subscribe *
* * * *
\******************************************************************************/ \******************************************************************************/
/// Operation "__ns1__Subscribe" of service binding "Service" /// Operation "__s0__Subscribe" of service binding "Service"
/** /**
...@@ -1221,25 +1286,25 @@ Operation details: ...@@ -1221,25 +1286,25 @@ Operation details:
C stub function (defined in soapClient.c[pp] generated by soapcpp2): C stub function (defined in soapClient.c[pp] generated by soapcpp2):
@code @code
int soap_call___ns1__Subscribe( int soap_call___s0__Subscribe(
struct soap *soap, struct soap *soap,
NULL, // char *endpoint = NULL selects default endpoint for this operation NULL, // char *endpoint = NULL selects default endpoint for this operation
NULL, // char *action = NULL selects default action for this operation NULL, // char *action = NULL selects default action for this operation
// request parameters: // request parameters:
_ns1__Subscribe* ns1__Subscribe, _s0__Subscribe* s0__Subscribe,
// response parameters: // response parameters:
_ns1__SubscribeResponse* ns1__SubscribeResponse _s0__SubscribeResponse* s0__SubscribeResponse
); );
@endcode @endcode
C server function (called from the service dispatcher defined in soapServer.c[pp]): C server function (called from the service dispatcher defined in soapServer.c[pp]):
@code @code
int __ns1__Subscribe( int __s0__Subscribe(
struct soap *soap, struct soap *soap,
// request parameters: // request parameters:
_ns1__Subscribe* ns1__Subscribe, _s0__Subscribe* s0__Subscribe,
// response parameters: // response parameters:
_ns1__SubscribeResponse* ns1__SubscribeResponse _s0__SubscribeResponse* s0__SubscribeResponse
); );
@endcode @endcode
...@@ -1248,22 +1313,22 @@ C++ proxy class (defined in soapServiceProxy.h): ...@@ -1248,22 +1313,22 @@ C++ proxy class (defined in soapServiceProxy.h):
*/ */
//gsoap ns1 service method-style: Subscribe document //gsoap s0 service method-style: Subscribe document
//gsoap ns1 service method-encoding: Subscribe literal //gsoap s0 service method-encoding: Subscribe literal
//gsoap ns1 service method-action: Subscribe http://opcfoundation.org/webservices/XMLDA/1.0/Subscribe //gsoap s0 service method-action: Subscribe http://opcfoundation.org/webservices/XMLDA/1.0/Subscribe
int __ns1__Subscribe( int __s0__Subscribe(
_ns1__Subscribe* ns1__Subscribe, ///< Request parameter _s0__Subscribe* s0__Subscribe, ///< Request parameter
_ns1__SubscribeResponse* ns1__SubscribeResponse ///< Response parameter _s0__SubscribeResponse* s0__SubscribeResponse ///< Response parameter
); );
/******************************************************************************\ /******************************************************************************\
* * * *
* __ns1__SubscriptionPolledRefresh * * __s0__SubscriptionPolledRefresh *
* * * *
\******************************************************************************/ \******************************************************************************/
/// Operation "__ns1__SubscriptionPolledRefresh" of service binding "Service" /// Operation "__s0__SubscriptionPolledRefresh" of service binding "Service"
/** /**
...@@ -1274,25 +1339,25 @@ Operation details: ...@@ -1274,25 +1339,25 @@ Operation details:
C stub function (defined in soapClient.c[pp] generated by soapcpp2): C stub function (defined in soapClient.c[pp] generated by soapcpp2):
@code @code
int soap_call___ns1__SubscriptionPolledRefresh( int soap_call___s0__SubscriptionPolledRefresh(
struct soap *soap, struct soap *soap,
NULL, // char *endpoint = NULL selects default endpoint for this operation NULL, // char *endpoint = NULL selects default endpoint for this operation
NULL, // char *action = NULL selects default action for this operation NULL, // char *action = NULL selects default action for this operation
// request parameters: // request parameters:
_ns1__SubscriptionPolledRefresh* ns1__SubscriptionPolledRefresh, _s0__SubscriptionPolledRefresh* s0__SubscriptionPolledRefresh,
// response parameters: // response parameters:
_ns1__SubscriptionPolledRefreshResponse* ns1__SubscriptionPolledRefreshResponse _s0__SubscriptionPolledRefreshResponse* s0__SubscriptionPolledRefreshResponse
); );
@endcode @endcode
C server function (called from the service dispatcher defined in soapServer.c[pp]): C server function (called from the service dispatcher defined in soapServer.c[pp]):
@code @code
int __ns1__SubscriptionPolledRefresh( int __s0__SubscriptionPolledRefresh(
struct soap *soap, struct soap *soap,
// request parameters: // request parameters:
_ns1__SubscriptionPolledRefresh* ns1__SubscriptionPolledRefresh, _s0__SubscriptionPolledRefresh* s0__SubscriptionPolledRefresh,
// response parameters: // response parameters:
_ns1__SubscriptionPolledRefreshResponse* ns1__SubscriptionPolledRefreshResponse _s0__SubscriptionPolledRefreshResponse* s0__SubscriptionPolledRefreshResponse
); );
@endcode @endcode
...@@ -1301,22 +1366,22 @@ C++ proxy class (defined in soapServiceProxy.h): ...@@ -1301,22 +1366,22 @@ C++ proxy class (defined in soapServiceProxy.h):
*/ */
//gsoap ns1 service method-style: SubscriptionPolledRefresh document //gsoap s0 service method-style: SubscriptionPolledRefresh document
//gsoap ns1 service method-encoding: SubscriptionPolledRefresh literal //gsoap s0 service method-encoding: SubscriptionPolledRefresh literal
//gsoap ns1 service method-action: SubscriptionPolledRefresh http://opcfoundation.org/webservices/XMLDA/1.0/SubscriptionPolledRefresh //gsoap s0 service method-action: SubscriptionPolledRefresh http://opcfoundation.org/webservices/XMLDA/1.0/SubscriptionPolledRefresh
int __ns1__SubscriptionPolledRefresh( int __s0__SubscriptionPolledRefresh(
_ns1__SubscriptionPolledRefresh* ns1__SubscriptionPolledRefresh, ///< Request parameter _s0__SubscriptionPolledRefresh* s0__SubscriptionPolledRefresh, ///< Request parameter
_ns1__SubscriptionPolledRefreshResponse* ns1__SubscriptionPolledRefreshResponse ///< Response parameter _s0__SubscriptionPolledRefreshResponse* s0__SubscriptionPolledRefreshResponse ///< Response parameter
); );
/******************************************************************************\ /******************************************************************************\
* * * *
* __ns1__SubscriptionCancel * * __s0__SubscriptionCancel *
* * * *
\******************************************************************************/ \******************************************************************************/
/// Operation "__ns1__SubscriptionCancel" of service binding "Service" /// Operation "__s0__SubscriptionCancel" of service binding "Service"
/** /**
...@@ -1327,25 +1392,25 @@ Operation details: ...@@ -1327,25 +1392,25 @@ Operation details:
C stub function (defined in soapClient.c[pp] generated by soapcpp2): C stub function (defined in soapClient.c[pp] generated by soapcpp2):
@code @code
int soap_call___ns1__SubscriptionCancel( int soap_call___s0__SubscriptionCancel(
struct soap *soap, struct soap *soap,
NULL, // char *endpoint = NULL selects default endpoint for this operation NULL, // char *endpoint = NULL selects default endpoint for this operation
NULL, // char *action = NULL selects default action for this operation NULL, // char *action = NULL selects default action for this operation
// request parameters: // request parameters:
_ns1__SubscriptionCancel* ns1__SubscriptionCancel, _s0__SubscriptionCancel* s0__SubscriptionCancel,
// response parameters: // response parameters:
_ns1__SubscriptionCancelResponse* ns1__SubscriptionCancelResponse _s0__SubscriptionCancelResponse* s0__SubscriptionCancelResponse
); );
@endcode @endcode
C server function (called from the service dispatcher defined in soapServer.c[pp]): C server function (called from the service dispatcher defined in soapServer.c[pp]):
@code @code
int __ns1__SubscriptionCancel( int __s0__SubscriptionCancel(
struct soap *soap, struct soap *soap,
// request parameters: // request parameters:
_ns1__SubscriptionCancel* ns1__SubscriptionCancel, _s0__SubscriptionCancel* s0__SubscriptionCancel,
// response parameters: // response parameters:
_ns1__SubscriptionCancelResponse* ns1__SubscriptionCancelResponse _s0__SubscriptionCancelResponse* s0__SubscriptionCancelResponse
); );
@endcode @endcode
...@@ -1354,22 +1419,22 @@ C++ proxy class (defined in soapServiceProxy.h): ...@@ -1354,22 +1419,22 @@ C++ proxy class (defined in soapServiceProxy.h):
*/ */
//gsoap ns1 service method-style: SubscriptionCancel document //gsoap s0 service method-style: SubscriptionCancel document
//gsoap ns1 service method-encoding: SubscriptionCancel literal //gsoap s0 service method-encoding: SubscriptionCancel literal
//gsoap ns1 service method-action: SubscriptionCancel http://opcfoundation.org/webservices/XMLDA/1.0/SubscriptionCancel //gsoap s0 service method-action: SubscriptionCancel http://opcfoundation.org/webservices/XMLDA/1.0/SubscriptionCancel
int __ns1__SubscriptionCancel( int __s0__SubscriptionCancel(
_ns1__SubscriptionCancel* ns1__SubscriptionCancel, ///< Request parameter _s0__SubscriptionCancel* s0__SubscriptionCancel, ///< Request parameter
_ns1__SubscriptionCancelResponse* ns1__SubscriptionCancelResponse ///< Response parameter _s0__SubscriptionCancelResponse* s0__SubscriptionCancelResponse ///< Response parameter
); );
/******************************************************************************\ /******************************************************************************\
* * * *
* __ns1__Browse * * __s0__Browse *
* * * *
\******************************************************************************/ \******************************************************************************/
/// Operation "__ns1__Browse" of service binding "Service" /// Operation "__s0__Browse" of service binding "Service"
/** /**
...@@ -1380,25 +1445,25 @@ Operation details: ...@@ -1380,25 +1445,25 @@ Operation details:
C stub function (defined in soapClient.c[pp] generated by soapcpp2): C stub function (defined in soapClient.c[pp] generated by soapcpp2):
@code @code
int soap_call___ns1__Browse( int soap_call___s0__Browse(
struct soap *soap, struct soap *soap,
NULL, // char *endpoint = NULL selects default endpoint for this operation NULL, // char *endpoint = NULL selects default endpoint for this operation
NULL, // char *action = NULL selects default action for this operation NULL, // char *action = NULL selects default action for this operation
// request parameters: // request parameters:
_ns1__Browse* ns1__Browse, _s0__Browse* s0__Browse,
// response parameters: // response parameters:
_ns1__BrowseResponse* ns1__BrowseResponse _s0__BrowseResponse* s0__BrowseResponse
); );
@endcode @endcode
C server function (called from the service dispatcher defined in soapServer.c[pp]): C server function (called from the service dispatcher defined in soapServer.c[pp]):
@code @code
int __ns1__Browse( int __s0__Browse(
struct soap *soap, struct soap *soap,
// request parameters: // request parameters:
_ns1__Browse* ns1__Browse, _s0__Browse* s0__Browse,
// response parameters: // response parameters:
_ns1__BrowseResponse* ns1__BrowseResponse _s0__BrowseResponse* s0__BrowseResponse
); );
@endcode @endcode
...@@ -1407,22 +1472,22 @@ C++ proxy class (defined in soapServiceProxy.h): ...@@ -1407,22 +1472,22 @@ C++ proxy class (defined in soapServiceProxy.h):
*/ */
//gsoap ns1 service method-style: Browse document //gsoap s0 service method-style: Browse document
//gsoap ns1 service method-encoding: Browse literal //gsoap s0 service method-encoding: Browse literal
//gsoap ns1 service method-action: Browse http://opcfoundation.org/webservices/XMLDA/1.0/Browse //gsoap s0 service method-action: Browse http://opcfoundation.org/webservices/XMLDA/1.0/Browse
int __ns1__Browse( int __s0__Browse(
_ns1__Browse* ns1__Browse, ///< Request parameter _s0__Browse* s0__Browse, ///< Request parameter
_ns1__BrowseResponse* ns1__BrowseResponse ///< Response parameter _s0__BrowseResponse* s0__BrowseResponse ///< Response parameter
); );
/******************************************************************************\ /******************************************************************************\
* * * *
* __ns1__GetProperties * * __s0__GetProperties *
* * * *
\******************************************************************************/ \******************************************************************************/
/// Operation "__ns1__GetProperties" of service binding "Service" /// Operation "__s0__GetProperties" of service binding "Service"
/** /**
...@@ -1433,25 +1498,25 @@ Operation details: ...@@ -1433,25 +1498,25 @@ Operation details:
C stub function (defined in soapClient.c[pp] generated by soapcpp2): C stub function (defined in soapClient.c[pp] generated by soapcpp2):
@code @code
int soap_call___ns1__GetProperties( int soap_call___s0__GetProperties(
struct soap *soap, struct soap *soap,
NULL, // char *endpoint = NULL selects default endpoint for this operation NULL, // char *endpoint = NULL selects default endpoint for this operation
NULL, // char *action = NULL selects default action for this operation NULL, // char *action = NULL selects default action for this operation
// request parameters: // request parameters:
_ns1__GetProperties* ns1__GetProperties, _s0__GetProperties* s0__GetProperties,
// response parameters: // response parameters:
_ns1__GetPropertiesResponse* ns1__GetPropertiesResponse _s0__GetPropertiesResponse* s0__GetPropertiesResponse
); );
@endcode @endcode
C server function (called from the service dispatcher defined in soapServer.c[pp]): C server function (called from the service dispatcher defined in soapServer.c[pp]):
@code @code
int __ns1__GetProperties( int __s0__GetProperties(
struct soap *soap, struct soap *soap,
// request parameters: // request parameters:
_ns1__GetProperties* ns1__GetProperties, _s0__GetProperties* s0__GetProperties,
// response parameters: // response parameters:
_ns1__GetPropertiesResponse* ns1__GetPropertiesResponse _s0__GetPropertiesResponse* s0__GetPropertiesResponse
); );
@endcode @endcode
...@@ -1460,12 +1525,12 @@ C++ proxy class (defined in soapServiceProxy.h): ...@@ -1460,12 +1525,12 @@ C++ proxy class (defined in soapServiceProxy.h):
*/ */
//gsoap ns1 service method-style: GetProperties document //gsoap s0 service method-style: GetProperties document
//gsoap ns1 service method-encoding: GetProperties literal //gsoap s0 service method-encoding: GetProperties literal
//gsoap ns1 service method-action: GetProperties http://opcfoundation.org/webservices/XMLDA/1.0/GetProperties //gsoap s0 service method-action: GetProperties http://opcfoundation.org/webservices/XMLDA/1.0/GetProperties
int __ns1__GetProperties( int __s0__GetProperties(
_ns1__GetProperties* ns1__GetProperties, ///< Request parameter _s0__GetProperties* s0__GetProperties, ///< Request parameter
_ns1__GetPropertiesResponse* ns1__GetPropertiesResponse ///< Response parameter _s0__GetPropertiesResponse* s0__GetPropertiesResponse ///< Response parameter
); );
/* End of opc_msg.h */ /* End of opc_msg.h */
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,25 +6,25 @@ ...@@ -6,25 +6,25 @@
*/ */
#include "opc_soap_H.h" #include "opc_soap_H.h"
SOAP_SOURCE_STAMP("@(#) opc_soap_Client.cpp ver 2.7.9d 2007-02-26 14:18:39 GMT") SOAP_SOURCE_STAMP("@(#) opc_soap_Client.cpp ver 2.7.9d 2007-03-15 12:24:24 GMT")
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__GetStatus(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__GetStatus *ns1__GetStatus, _ns1__GetStatusResponse *ns1__GetStatusResponse) SOAP_FMAC5 int SOAP_FMAC6 soap_call___s0__GetStatus(struct soap *soap, const char *soap_endpoint, const char *soap_action, _s0__GetStatus *s0__GetStatus, _s0__GetStatusResponse *s0__GetStatusResponse)
{ struct __ns1__GetStatus soap_tmp___ns1__GetStatus; { struct __s0__GetStatus soap_tmp___s0__GetStatus;
if (!soap_action) if (!soap_action)
soap_action = "http://opcfoundation.org/webservices/XMLDA/1.0/GetStatus"; soap_action = "http://opcfoundation.org/webservices/XMLDA/1.0/GetStatus";
soap->encodingStyle = NULL; soap->encodingStyle = NULL;
soap_tmp___ns1__GetStatus.ns1__GetStatus = ns1__GetStatus; soap_tmp___s0__GetStatus.s0__GetStatus = s0__GetStatus;
soap_begin(soap); soap_begin(soap);
soap_serializeheader(soap); soap_serializeheader(soap);
soap_serialize___ns1__GetStatus(soap, &soap_tmp___ns1__GetStatus); soap_serialize___s0__GetStatus(soap, &soap_tmp___s0__GetStatus);
if (soap_begin_count(soap)) if (soap_begin_count(soap))
return soap->error; return soap->error;
if (soap->mode & SOAP_IO_LENGTH) if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap) { if (soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| soap_put___ns1__GetStatus(soap, &soap_tmp___ns1__GetStatus, "-ns1:GetStatus", "") || soap_put___s0__GetStatus(soap, &soap_tmp___s0__GetStatus, "-s0:GetStatus", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap)) || soap_envelope_end_out(soap))
return soap->error; return soap->error;
...@@ -35,20 +35,20 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__GetStatus(struct soap *soap, const ch ...@@ -35,20 +35,20 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__GetStatus(struct soap *soap, const ch
|| soap_envelope_begin_out(soap) || soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| soap_put___ns1__GetStatus(soap, &soap_tmp___ns1__GetStatus, "-ns1:GetStatus", "") || soap_put___s0__GetStatus(soap, &soap_tmp___s0__GetStatus, "-s0:GetStatus", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap) || soap_envelope_end_out(soap)
|| soap_end_send(soap)) || soap_end_send(soap))
return soap_closesock(soap); return soap_closesock(soap);
if (!ns1__GetStatusResponse) if (!s0__GetStatusResponse)
return soap_closesock(soap); return soap_closesock(soap);
ns1__GetStatusResponse->soap_default(soap); s0__GetStatusResponse->soap_default(soap);
if (soap_begin_recv(soap) if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap) || soap_envelope_begin_in(soap)
|| soap_recv_header(soap) || soap_recv_header(soap)
|| soap_body_begin_in(soap)) || soap_body_begin_in(soap))
return soap_closesock(soap); return soap_closesock(soap);
ns1__GetStatusResponse->soap_get(soap, "ns1:GetStatusResponse", ""); s0__GetStatusResponse->soap_get(soap, "s0:GetStatusResponse", "");
if (soap->error) if (soap->error)
{ if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
return soap_recv_fault(soap); return soap_recv_fault(soap);
...@@ -61,22 +61,22 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__GetStatus(struct soap *soap, const ch ...@@ -61,22 +61,22 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__GetStatus(struct soap *soap, const ch
return soap_closesock(soap); return soap_closesock(soap);
} }
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Read(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__Read *ns1__Read, _ns1__ReadResponse *ns1__ReadResponse) SOAP_FMAC5 int SOAP_FMAC6 soap_call___s0__Read(struct soap *soap, const char *soap_endpoint, const char *soap_action, _s0__Read *s0__Read, _s0__ReadResponse *s0__ReadResponse)
{ struct __ns1__Read soap_tmp___ns1__Read; { struct __s0__Read soap_tmp___s0__Read;
if (!soap_action) if (!soap_action)
soap_action = "http://opcfoundation.org/webservices/XMLDA/1.0/Read"; soap_action = "http://opcfoundation.org/webservices/XMLDA/1.0/Read";
soap->encodingStyle = NULL; soap->encodingStyle = NULL;
soap_tmp___ns1__Read.ns1__Read = ns1__Read; soap_tmp___s0__Read.s0__Read = s0__Read;
soap_begin(soap); soap_begin(soap);
soap_serializeheader(soap); soap_serializeheader(soap);
soap_serialize___ns1__Read(soap, &soap_tmp___ns1__Read); soap_serialize___s0__Read(soap, &soap_tmp___s0__Read);
if (soap_begin_count(soap)) if (soap_begin_count(soap))
return soap->error; return soap->error;
if (soap->mode & SOAP_IO_LENGTH) if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap) { if (soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| soap_put___ns1__Read(soap, &soap_tmp___ns1__Read, "-ns1:Read", "") || soap_put___s0__Read(soap, &soap_tmp___s0__Read, "-s0:Read", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap)) || soap_envelope_end_out(soap))
return soap->error; return soap->error;
...@@ -87,20 +87,20 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Read(struct soap *soap, const char *s ...@@ -87,20 +87,20 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Read(struct soap *soap, const char *s
|| soap_envelope_begin_out(soap) || soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| soap_put___ns1__Read(soap, &soap_tmp___ns1__Read, "-ns1:Read", "") || soap_put___s0__Read(soap, &soap_tmp___s0__Read, "-s0:Read", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap) || soap_envelope_end_out(soap)
|| soap_end_send(soap)) || soap_end_send(soap))
return soap_closesock(soap); return soap_closesock(soap);
if (!ns1__ReadResponse) if (!s0__ReadResponse)
return soap_closesock(soap); return soap_closesock(soap);
ns1__ReadResponse->soap_default(soap); s0__ReadResponse->soap_default(soap);
if (soap_begin_recv(soap) if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap) || soap_envelope_begin_in(soap)
|| soap_recv_header(soap) || soap_recv_header(soap)
|| soap_body_begin_in(soap)) || soap_body_begin_in(soap))
return soap_closesock(soap); return soap_closesock(soap);
ns1__ReadResponse->soap_get(soap, "ns1:ReadResponse", ""); s0__ReadResponse->soap_get(soap, "s0:ReadResponse", "");
if (soap->error) if (soap->error)
{ if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
return soap_recv_fault(soap); return soap_recv_fault(soap);
...@@ -113,22 +113,22 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Read(struct soap *soap, const char *s ...@@ -113,22 +113,22 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Read(struct soap *soap, const char *s
return soap_closesock(soap); return soap_closesock(soap);
} }
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Write(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__Write *ns1__Write, _ns1__WriteResponse *ns1__WriteResponse) SOAP_FMAC5 int SOAP_FMAC6 soap_call___s0__Write(struct soap *soap, const char *soap_endpoint, const char *soap_action, _s0__Write *s0__Write, _s0__WriteResponse *s0__WriteResponse)
{ struct __ns1__Write soap_tmp___ns1__Write; { struct __s0__Write soap_tmp___s0__Write;
if (!soap_action) if (!soap_action)
soap_action = "http://opcfoundation.org/webservices/XMLDA/1.0/Write"; soap_action = "http://opcfoundation.org/webservices/XMLDA/1.0/Write";
soap->encodingStyle = NULL; soap->encodingStyle = NULL;
soap_tmp___ns1__Write.ns1__Write = ns1__Write; soap_tmp___s0__Write.s0__Write = s0__Write;
soap_begin(soap); soap_begin(soap);
soap_serializeheader(soap); soap_serializeheader(soap);
soap_serialize___ns1__Write(soap, &soap_tmp___ns1__Write); soap_serialize___s0__Write(soap, &soap_tmp___s0__Write);
if (soap_begin_count(soap)) if (soap_begin_count(soap))
return soap->error; return soap->error;
if (soap->mode & SOAP_IO_LENGTH) if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap) { if (soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| soap_put___ns1__Write(soap, &soap_tmp___ns1__Write, "-ns1:Write", "") || soap_put___s0__Write(soap, &soap_tmp___s0__Write, "-s0:Write", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap)) || soap_envelope_end_out(soap))
return soap->error; return soap->error;
...@@ -139,20 +139,20 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Write(struct soap *soap, const char * ...@@ -139,20 +139,20 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Write(struct soap *soap, const char *
|| soap_envelope_begin_out(soap) || soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| soap_put___ns1__Write(soap, &soap_tmp___ns1__Write, "-ns1:Write", "") || soap_put___s0__Write(soap, &soap_tmp___s0__Write, "-s0:Write", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap) || soap_envelope_end_out(soap)
|| soap_end_send(soap)) || soap_end_send(soap))
return soap_closesock(soap); return soap_closesock(soap);
if (!ns1__WriteResponse) if (!s0__WriteResponse)
return soap_closesock(soap); return soap_closesock(soap);
ns1__WriteResponse->soap_default(soap); s0__WriteResponse->soap_default(soap);
if (soap_begin_recv(soap) if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap) || soap_envelope_begin_in(soap)
|| soap_recv_header(soap) || soap_recv_header(soap)
|| soap_body_begin_in(soap)) || soap_body_begin_in(soap))
return soap_closesock(soap); return soap_closesock(soap);
ns1__WriteResponse->soap_get(soap, "ns1:WriteResponse", ""); s0__WriteResponse->soap_get(soap, "s0:WriteResponse", "");
if (soap->error) if (soap->error)
{ if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
return soap_recv_fault(soap); return soap_recv_fault(soap);
...@@ -165,22 +165,22 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Write(struct soap *soap, const char * ...@@ -165,22 +165,22 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Write(struct soap *soap, const char *
return soap_closesock(soap); return soap_closesock(soap);
} }
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Subscribe(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__Subscribe *ns1__Subscribe, _ns1__SubscribeResponse *ns1__SubscribeResponse) SOAP_FMAC5 int SOAP_FMAC6 soap_call___s0__Subscribe(struct soap *soap, const char *soap_endpoint, const char *soap_action, _s0__Subscribe *s0__Subscribe, _s0__SubscribeResponse *s0__SubscribeResponse)
{ struct __ns1__Subscribe soap_tmp___ns1__Subscribe; { struct __s0__Subscribe soap_tmp___s0__Subscribe;
if (!soap_action) if (!soap_action)
soap_action = "http://opcfoundation.org/webservices/XMLDA/1.0/Subscribe"; soap_action = "http://opcfoundation.org/webservices/XMLDA/1.0/Subscribe";
soap->encodingStyle = NULL; soap->encodingStyle = NULL;
soap_tmp___ns1__Subscribe.ns1__Subscribe = ns1__Subscribe; soap_tmp___s0__Subscribe.s0__Subscribe = s0__Subscribe;
soap_begin(soap); soap_begin(soap);
soap_serializeheader(soap); soap_serializeheader(soap);
soap_serialize___ns1__Subscribe(soap, &soap_tmp___ns1__Subscribe); soap_serialize___s0__Subscribe(soap, &soap_tmp___s0__Subscribe);
if (soap_begin_count(soap)) if (soap_begin_count(soap))
return soap->error; return soap->error;
if (soap->mode & SOAP_IO_LENGTH) if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap) { if (soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| soap_put___ns1__Subscribe(soap, &soap_tmp___ns1__Subscribe, "-ns1:Subscribe", "") || soap_put___s0__Subscribe(soap, &soap_tmp___s0__Subscribe, "-s0:Subscribe", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap)) || soap_envelope_end_out(soap))
return soap->error; return soap->error;
...@@ -191,20 +191,20 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Subscribe(struct soap *soap, const ch ...@@ -191,20 +191,20 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Subscribe(struct soap *soap, const ch
|| soap_envelope_begin_out(soap) || soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| soap_put___ns1__Subscribe(soap, &soap_tmp___ns1__Subscribe, "-ns1:Subscribe", "") || soap_put___s0__Subscribe(soap, &soap_tmp___s0__Subscribe, "-s0:Subscribe", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap) || soap_envelope_end_out(soap)
|| soap_end_send(soap)) || soap_end_send(soap))
return soap_closesock(soap); return soap_closesock(soap);
if (!ns1__SubscribeResponse) if (!s0__SubscribeResponse)
return soap_closesock(soap); return soap_closesock(soap);
ns1__SubscribeResponse->soap_default(soap); s0__SubscribeResponse->soap_default(soap);
if (soap_begin_recv(soap) if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap) || soap_envelope_begin_in(soap)
|| soap_recv_header(soap) || soap_recv_header(soap)
|| soap_body_begin_in(soap)) || soap_body_begin_in(soap))
return soap_closesock(soap); return soap_closesock(soap);
ns1__SubscribeResponse->soap_get(soap, "ns1:SubscribeResponse", ""); s0__SubscribeResponse->soap_get(soap, "s0:SubscribeResponse", "");
if (soap->error) if (soap->error)
{ if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
return soap_recv_fault(soap); return soap_recv_fault(soap);
...@@ -217,22 +217,22 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Subscribe(struct soap *soap, const ch ...@@ -217,22 +217,22 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Subscribe(struct soap *soap, const ch
return soap_closesock(soap); return soap_closesock(soap);
} }
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__SubscriptionPolledRefresh(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__SubscriptionPolledRefresh *ns1__SubscriptionPolledRefresh, _ns1__SubscriptionPolledRefreshResponse *ns1__SubscriptionPolledRefreshResponse) SOAP_FMAC5 int SOAP_FMAC6 soap_call___s0__SubscriptionPolledRefresh(struct soap *soap, const char *soap_endpoint, const char *soap_action, _s0__SubscriptionPolledRefresh *s0__SubscriptionPolledRefresh, _s0__SubscriptionPolledRefreshResponse *s0__SubscriptionPolledRefreshResponse)
{ struct __ns1__SubscriptionPolledRefresh soap_tmp___ns1__SubscriptionPolledRefresh; { struct __s0__SubscriptionPolledRefresh soap_tmp___s0__SubscriptionPolledRefresh;
if (!soap_action) if (!soap_action)
soap_action = "http://opcfoundation.org/webservices/XMLDA/1.0/SubscriptionPolledRefresh"; soap_action = "http://opcfoundation.org/webservices/XMLDA/1.0/SubscriptionPolledRefresh";
soap->encodingStyle = NULL; soap->encodingStyle = NULL;
soap_tmp___ns1__SubscriptionPolledRefresh.ns1__SubscriptionPolledRefresh = ns1__SubscriptionPolledRefresh; soap_tmp___s0__SubscriptionPolledRefresh.s0__SubscriptionPolledRefresh = s0__SubscriptionPolledRefresh;
soap_begin(soap); soap_begin(soap);
soap_serializeheader(soap); soap_serializeheader(soap);
soap_serialize___ns1__SubscriptionPolledRefresh(soap, &soap_tmp___ns1__SubscriptionPolledRefresh); soap_serialize___s0__SubscriptionPolledRefresh(soap, &soap_tmp___s0__SubscriptionPolledRefresh);
if (soap_begin_count(soap)) if (soap_begin_count(soap))
return soap->error; return soap->error;
if (soap->mode & SOAP_IO_LENGTH) if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap) { if (soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| soap_put___ns1__SubscriptionPolledRefresh(soap, &soap_tmp___ns1__SubscriptionPolledRefresh, "-ns1:SubscriptionPolledRefresh", "") || soap_put___s0__SubscriptionPolledRefresh(soap, &soap_tmp___s0__SubscriptionPolledRefresh, "-s0:SubscriptionPolledRefresh", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap)) || soap_envelope_end_out(soap))
return soap->error; return soap->error;
...@@ -243,20 +243,20 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__SubscriptionPolledRefresh(struct soap ...@@ -243,20 +243,20 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__SubscriptionPolledRefresh(struct soap
|| soap_envelope_begin_out(soap) || soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| soap_put___ns1__SubscriptionPolledRefresh(soap, &soap_tmp___ns1__SubscriptionPolledRefresh, "-ns1:SubscriptionPolledRefresh", "") || soap_put___s0__SubscriptionPolledRefresh(soap, &soap_tmp___s0__SubscriptionPolledRefresh, "-s0:SubscriptionPolledRefresh", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap) || soap_envelope_end_out(soap)
|| soap_end_send(soap)) || soap_end_send(soap))
return soap_closesock(soap); return soap_closesock(soap);
if (!ns1__SubscriptionPolledRefreshResponse) if (!s0__SubscriptionPolledRefreshResponse)
return soap_closesock(soap); return soap_closesock(soap);
ns1__SubscriptionPolledRefreshResponse->soap_default(soap); s0__SubscriptionPolledRefreshResponse->soap_default(soap);
if (soap_begin_recv(soap) if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap) || soap_envelope_begin_in(soap)
|| soap_recv_header(soap) || soap_recv_header(soap)
|| soap_body_begin_in(soap)) || soap_body_begin_in(soap))
return soap_closesock(soap); return soap_closesock(soap);
ns1__SubscriptionPolledRefreshResponse->soap_get(soap, "ns1:SubscriptionPolledRefreshResponse", ""); s0__SubscriptionPolledRefreshResponse->soap_get(soap, "s0:SubscriptionPolledRefreshResponse", "");
if (soap->error) if (soap->error)
{ if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
return soap_recv_fault(soap); return soap_recv_fault(soap);
...@@ -269,22 +269,22 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__SubscriptionPolledRefresh(struct soap ...@@ -269,22 +269,22 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__SubscriptionPolledRefresh(struct soap
return soap_closesock(soap); return soap_closesock(soap);
} }
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__SubscriptionCancel(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__SubscriptionCancel *ns1__SubscriptionCancel, _ns1__SubscriptionCancelResponse *ns1__SubscriptionCancelResponse) SOAP_FMAC5 int SOAP_FMAC6 soap_call___s0__SubscriptionCancel(struct soap *soap, const char *soap_endpoint, const char *soap_action, _s0__SubscriptionCancel *s0__SubscriptionCancel, _s0__SubscriptionCancelResponse *s0__SubscriptionCancelResponse)
{ struct __ns1__SubscriptionCancel soap_tmp___ns1__SubscriptionCancel; { struct __s0__SubscriptionCancel soap_tmp___s0__SubscriptionCancel;
if (!soap_action) if (!soap_action)
soap_action = "http://opcfoundation.org/webservices/XMLDA/1.0/SubscriptionCancel"; soap_action = "http://opcfoundation.org/webservices/XMLDA/1.0/SubscriptionCancel";
soap->encodingStyle = NULL; soap->encodingStyle = NULL;
soap_tmp___ns1__SubscriptionCancel.ns1__SubscriptionCancel = ns1__SubscriptionCancel; soap_tmp___s0__SubscriptionCancel.s0__SubscriptionCancel = s0__SubscriptionCancel;
soap_begin(soap); soap_begin(soap);
soap_serializeheader(soap); soap_serializeheader(soap);
soap_serialize___ns1__SubscriptionCancel(soap, &soap_tmp___ns1__SubscriptionCancel); soap_serialize___s0__SubscriptionCancel(soap, &soap_tmp___s0__SubscriptionCancel);
if (soap_begin_count(soap)) if (soap_begin_count(soap))
return soap->error; return soap->error;
if (soap->mode & SOAP_IO_LENGTH) if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap) { if (soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| soap_put___ns1__SubscriptionCancel(soap, &soap_tmp___ns1__SubscriptionCancel, "-ns1:SubscriptionCancel", "") || soap_put___s0__SubscriptionCancel(soap, &soap_tmp___s0__SubscriptionCancel, "-s0:SubscriptionCancel", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap)) || soap_envelope_end_out(soap))
return soap->error; return soap->error;
...@@ -295,20 +295,20 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__SubscriptionCancel(struct soap *soap, ...@@ -295,20 +295,20 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__SubscriptionCancel(struct soap *soap,
|| soap_envelope_begin_out(soap) || soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| soap_put___ns1__SubscriptionCancel(soap, &soap_tmp___ns1__SubscriptionCancel, "-ns1:SubscriptionCancel", "") || soap_put___s0__SubscriptionCancel(soap, &soap_tmp___s0__SubscriptionCancel, "-s0:SubscriptionCancel", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap) || soap_envelope_end_out(soap)
|| soap_end_send(soap)) || soap_end_send(soap))
return soap_closesock(soap); return soap_closesock(soap);
if (!ns1__SubscriptionCancelResponse) if (!s0__SubscriptionCancelResponse)
return soap_closesock(soap); return soap_closesock(soap);
ns1__SubscriptionCancelResponse->soap_default(soap); s0__SubscriptionCancelResponse->soap_default(soap);
if (soap_begin_recv(soap) if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap) || soap_envelope_begin_in(soap)
|| soap_recv_header(soap) || soap_recv_header(soap)
|| soap_body_begin_in(soap)) || soap_body_begin_in(soap))
return soap_closesock(soap); return soap_closesock(soap);
ns1__SubscriptionCancelResponse->soap_get(soap, "ns1:SubscriptionCancelResponse", ""); s0__SubscriptionCancelResponse->soap_get(soap, "s0:SubscriptionCancelResponse", "");
if (soap->error) if (soap->error)
{ if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
return soap_recv_fault(soap); return soap_recv_fault(soap);
...@@ -321,22 +321,22 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__SubscriptionCancel(struct soap *soap, ...@@ -321,22 +321,22 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__SubscriptionCancel(struct soap *soap,
return soap_closesock(soap); return soap_closesock(soap);
} }
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Browse(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__Browse *ns1__Browse, _ns1__BrowseResponse *ns1__BrowseResponse) SOAP_FMAC5 int SOAP_FMAC6 soap_call___s0__Browse(struct soap *soap, const char *soap_endpoint, const char *soap_action, _s0__Browse *s0__Browse, _s0__BrowseResponse *s0__BrowseResponse)
{ struct __ns1__Browse soap_tmp___ns1__Browse; { struct __s0__Browse soap_tmp___s0__Browse;
if (!soap_action) if (!soap_action)
soap_action = "http://opcfoundation.org/webservices/XMLDA/1.0/Browse"; soap_action = "http://opcfoundation.org/webservices/XMLDA/1.0/Browse";
soap->encodingStyle = NULL; soap->encodingStyle = NULL;
soap_tmp___ns1__Browse.ns1__Browse = ns1__Browse; soap_tmp___s0__Browse.s0__Browse = s0__Browse;
soap_begin(soap); soap_begin(soap);
soap_serializeheader(soap); soap_serializeheader(soap);
soap_serialize___ns1__Browse(soap, &soap_tmp___ns1__Browse); soap_serialize___s0__Browse(soap, &soap_tmp___s0__Browse);
if (soap_begin_count(soap)) if (soap_begin_count(soap))
return soap->error; return soap->error;
if (soap->mode & SOAP_IO_LENGTH) if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap) { if (soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| soap_put___ns1__Browse(soap, &soap_tmp___ns1__Browse, "-ns1:Browse", "") || soap_put___s0__Browse(soap, &soap_tmp___s0__Browse, "-s0:Browse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap)) || soap_envelope_end_out(soap))
return soap->error; return soap->error;
...@@ -347,20 +347,20 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Browse(struct soap *soap, const char ...@@ -347,20 +347,20 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Browse(struct soap *soap, const char
|| soap_envelope_begin_out(soap) || soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| soap_put___ns1__Browse(soap, &soap_tmp___ns1__Browse, "-ns1:Browse", "") || soap_put___s0__Browse(soap, &soap_tmp___s0__Browse, "-s0:Browse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap) || soap_envelope_end_out(soap)
|| soap_end_send(soap)) || soap_end_send(soap))
return soap_closesock(soap); return soap_closesock(soap);
if (!ns1__BrowseResponse) if (!s0__BrowseResponse)
return soap_closesock(soap); return soap_closesock(soap);
ns1__BrowseResponse->soap_default(soap); s0__BrowseResponse->soap_default(soap);
if (soap_begin_recv(soap) if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap) || soap_envelope_begin_in(soap)
|| soap_recv_header(soap) || soap_recv_header(soap)
|| soap_body_begin_in(soap)) || soap_body_begin_in(soap))
return soap_closesock(soap); return soap_closesock(soap);
ns1__BrowseResponse->soap_get(soap, "ns1:BrowseResponse", ""); s0__BrowseResponse->soap_get(soap, "s0:BrowseResponse", "");
if (soap->error) if (soap->error)
{ if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
return soap_recv_fault(soap); return soap_recv_fault(soap);
...@@ -373,22 +373,22 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Browse(struct soap *soap, const char ...@@ -373,22 +373,22 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__Browse(struct soap *soap, const char
return soap_closesock(soap); return soap_closesock(soap);
} }
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__GetProperties(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__GetProperties *ns1__GetProperties, _ns1__GetPropertiesResponse *ns1__GetPropertiesResponse) SOAP_FMAC5 int SOAP_FMAC6 soap_call___s0__GetProperties(struct soap *soap, const char *soap_endpoint, const char *soap_action, _s0__GetProperties *s0__GetProperties, _s0__GetPropertiesResponse *s0__GetPropertiesResponse)
{ struct __ns1__GetProperties soap_tmp___ns1__GetProperties; { struct __s0__GetProperties soap_tmp___s0__GetProperties;
if (!soap_action) if (!soap_action)
soap_action = "http://opcfoundation.org/webservices/XMLDA/1.0/GetProperties"; soap_action = "http://opcfoundation.org/webservices/XMLDA/1.0/GetProperties";
soap->encodingStyle = NULL; soap->encodingStyle = NULL;
soap_tmp___ns1__GetProperties.ns1__GetProperties = ns1__GetProperties; soap_tmp___s0__GetProperties.s0__GetProperties = s0__GetProperties;
soap_begin(soap); soap_begin(soap);
soap_serializeheader(soap); soap_serializeheader(soap);
soap_serialize___ns1__GetProperties(soap, &soap_tmp___ns1__GetProperties); soap_serialize___s0__GetProperties(soap, &soap_tmp___s0__GetProperties);
if (soap_begin_count(soap)) if (soap_begin_count(soap))
return soap->error; return soap->error;
if (soap->mode & SOAP_IO_LENGTH) if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap) { if (soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| soap_put___ns1__GetProperties(soap, &soap_tmp___ns1__GetProperties, "-ns1:GetProperties", "") || soap_put___s0__GetProperties(soap, &soap_tmp___s0__GetProperties, "-s0:GetProperties", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap)) || soap_envelope_end_out(soap))
return soap->error; return soap->error;
...@@ -399,20 +399,20 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__GetProperties(struct soap *soap, cons ...@@ -399,20 +399,20 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__GetProperties(struct soap *soap, cons
|| soap_envelope_begin_out(soap) || soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| soap_put___ns1__GetProperties(soap, &soap_tmp___ns1__GetProperties, "-ns1:GetProperties", "") || soap_put___s0__GetProperties(soap, &soap_tmp___s0__GetProperties, "-s0:GetProperties", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap) || soap_envelope_end_out(soap)
|| soap_end_send(soap)) || soap_end_send(soap))
return soap_closesock(soap); return soap_closesock(soap);
if (!ns1__GetPropertiesResponse) if (!s0__GetPropertiesResponse)
return soap_closesock(soap); return soap_closesock(soap);
ns1__GetPropertiesResponse->soap_default(soap); s0__GetPropertiesResponse->soap_default(soap);
if (soap_begin_recv(soap) if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap) || soap_envelope_begin_in(soap)
|| soap_recv_header(soap) || soap_recv_header(soap)
|| soap_body_begin_in(soap)) || soap_body_begin_in(soap))
return soap_closesock(soap); return soap_closesock(soap);
ns1__GetPropertiesResponse->soap_get(soap, "ns1:GetPropertiesResponse", ""); s0__GetPropertiesResponse->soap_get(soap, "s0:GetPropertiesResponse", "");
if (soap->error) if (soap->error)
{ if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
return soap_recv_fault(soap); return soap_recv_fault(soap);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
*/ */
#include "opc_soap_H.h" #include "opc_soap_H.h"
SOAP_SOURCE_STAMP("@(#) opc_soap_Server.cpp ver 2.7.9d 2007-02-26 14:18:39 GMT") SOAP_SOURCE_STAMP("@(#) opc_soap_Server.cpp ver 2.7.9d 2007-03-15 12:24:24 GMT")
SOAP_FMAC5 int SOAP_FMAC6 soap_serve(struct soap *soap) SOAP_FMAC5 int SOAP_FMAC6 soap_serve(struct soap *soap)
...@@ -71,50 +71,50 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve(struct soap *soap) ...@@ -71,50 +71,50 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve(struct soap *soap)
SOAP_FMAC5 int SOAP_FMAC6 soap_serve_request(struct soap *soap) SOAP_FMAC5 int SOAP_FMAC6 soap_serve_request(struct soap *soap)
{ {
soap_peek_element(soap); soap_peek_element(soap);
if (!soap_match_tag(soap, soap->tag, "ns1:GetStatus")) if (!soap_match_tag(soap, soap->tag, "s0:GetStatus"))
return soap_serve___ns1__GetStatus(soap); return soap_serve___s0__GetStatus(soap);
if (!soap_match_tag(soap, soap->tag, "ns1:Read")) if (!soap_match_tag(soap, soap->tag, "s0:Read"))
return soap_serve___ns1__Read(soap); return soap_serve___s0__Read(soap);
if (!soap_match_tag(soap, soap->tag, "ns1:Write")) if (!soap_match_tag(soap, soap->tag, "s0:Write"))
return soap_serve___ns1__Write(soap); return soap_serve___s0__Write(soap);
if (!soap_match_tag(soap, soap->tag, "ns1:Subscribe")) if (!soap_match_tag(soap, soap->tag, "s0:Subscribe"))
return soap_serve___ns1__Subscribe(soap); return soap_serve___s0__Subscribe(soap);
if (!soap_match_tag(soap, soap->tag, "ns1:SubscriptionPolledRefresh")) if (!soap_match_tag(soap, soap->tag, "s0:SubscriptionPolledRefresh"))
return soap_serve___ns1__SubscriptionPolledRefresh(soap); return soap_serve___s0__SubscriptionPolledRefresh(soap);
if (!soap_match_tag(soap, soap->tag, "ns1:SubscriptionCancel")) if (!soap_match_tag(soap, soap->tag, "s0:SubscriptionCancel"))
return soap_serve___ns1__SubscriptionCancel(soap); return soap_serve___s0__SubscriptionCancel(soap);
if (!soap_match_tag(soap, soap->tag, "ns1:Browse")) if (!soap_match_tag(soap, soap->tag, "s0:Browse"))
return soap_serve___ns1__Browse(soap); return soap_serve___s0__Browse(soap);
if (!soap_match_tag(soap, soap->tag, "ns1:GetProperties")) if (!soap_match_tag(soap, soap->tag, "s0:GetProperties"))
return soap_serve___ns1__GetProperties(soap); return soap_serve___s0__GetProperties(soap);
return soap->error = SOAP_NO_METHOD; return soap->error = SOAP_NO_METHOD;
} }
#endif #endif
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__GetStatus(struct soap *soap) SOAP_FMAC5 int SOAP_FMAC6 soap_serve___s0__GetStatus(struct soap *soap)
{ struct __ns1__GetStatus soap_tmp___ns1__GetStatus; { struct __s0__GetStatus soap_tmp___s0__GetStatus;
_ns1__GetStatusResponse ns1__GetStatusResponse; _s0__GetStatusResponse s0__GetStatusResponse;
ns1__GetStatusResponse.soap_default(soap); s0__GetStatusResponse.soap_default(soap);
soap_default___ns1__GetStatus(soap, &soap_tmp___ns1__GetStatus); soap_default___s0__GetStatus(soap, &soap_tmp___s0__GetStatus);
soap->encodingStyle = NULL; soap->encodingStyle = NULL;
if (!soap_get___ns1__GetStatus(soap, &soap_tmp___ns1__GetStatus, "-ns1:GetStatus", NULL)) if (!soap_get___s0__GetStatus(soap, &soap_tmp___s0__GetStatus, "-s0:GetStatus", NULL))
return soap->error; return soap->error;
if (soap_body_end_in(soap) if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap) || soap_envelope_end_in(soap)
|| soap_end_recv(soap)) || soap_end_recv(soap))
return soap->error; return soap->error;
soap->error = __ns1__GetStatus(soap, soap_tmp___ns1__GetStatus.ns1__GetStatus, &ns1__GetStatusResponse); soap->error = __s0__GetStatus(soap, soap_tmp___s0__GetStatus.s0__GetStatus, &s0__GetStatusResponse);
if (soap->error) if (soap->error)
return soap->error; return soap->error;
soap_serializeheader(soap); soap_serializeheader(soap);
ns1__GetStatusResponse.soap_serialize(soap); s0__GetStatusResponse.soap_serialize(soap);
if (soap_begin_count(soap)) if (soap_begin_count(soap))
return soap->error; return soap->error;
if (soap->mode & SOAP_IO_LENGTH) if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap) { if (soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| ns1__GetStatusResponse.soap_put(soap, "ns1:GetStatusResponse", "") || s0__GetStatusResponse.soap_put(soap, "s0:GetStatusResponse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap)) || soap_envelope_end_out(soap))
return soap->error; return soap->error;
...@@ -124,7 +124,7 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__GetStatus(struct soap *soap) ...@@ -124,7 +124,7 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__GetStatus(struct soap *soap)
|| soap_envelope_begin_out(soap) || soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| ns1__GetStatusResponse.soap_put(soap, "ns1:GetStatusResponse", "") || s0__GetStatusResponse.soap_put(soap, "s0:GetStatusResponse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap) || soap_envelope_end_out(soap)
|| soap_end_send(soap)) || soap_end_send(soap))
...@@ -132,30 +132,30 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__GetStatus(struct soap *soap) ...@@ -132,30 +132,30 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__GetStatus(struct soap *soap)
return soap_closesock(soap); return soap_closesock(soap);
} }
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Read(struct soap *soap) SOAP_FMAC5 int SOAP_FMAC6 soap_serve___s0__Read(struct soap *soap)
{ struct __ns1__Read soap_tmp___ns1__Read; { struct __s0__Read soap_tmp___s0__Read;
_ns1__ReadResponse ns1__ReadResponse; _s0__ReadResponse s0__ReadResponse;
ns1__ReadResponse.soap_default(soap); s0__ReadResponse.soap_default(soap);
soap_default___ns1__Read(soap, &soap_tmp___ns1__Read); soap_default___s0__Read(soap, &soap_tmp___s0__Read);
soap->encodingStyle = NULL; soap->encodingStyle = NULL;
if (!soap_get___ns1__Read(soap, &soap_tmp___ns1__Read, "-ns1:Read", NULL)) if (!soap_get___s0__Read(soap, &soap_tmp___s0__Read, "-s0:Read", NULL))
return soap->error; return soap->error;
if (soap_body_end_in(soap) if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap) || soap_envelope_end_in(soap)
|| soap_end_recv(soap)) || soap_end_recv(soap))
return soap->error; return soap->error;
soap->error = __ns1__Read(soap, soap_tmp___ns1__Read.ns1__Read, &ns1__ReadResponse); soap->error = __s0__Read(soap, soap_tmp___s0__Read.s0__Read, &s0__ReadResponse);
if (soap->error) if (soap->error)
return soap->error; return soap->error;
soap_serializeheader(soap); soap_serializeheader(soap);
ns1__ReadResponse.soap_serialize(soap); s0__ReadResponse.soap_serialize(soap);
if (soap_begin_count(soap)) if (soap_begin_count(soap))
return soap->error; return soap->error;
if (soap->mode & SOAP_IO_LENGTH) if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap) { if (soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| ns1__ReadResponse.soap_put(soap, "ns1:ReadResponse", "") || s0__ReadResponse.soap_put(soap, "s0:ReadResponse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap)) || soap_envelope_end_out(soap))
return soap->error; return soap->error;
...@@ -165,7 +165,7 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Read(struct soap *soap) ...@@ -165,7 +165,7 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Read(struct soap *soap)
|| soap_envelope_begin_out(soap) || soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| ns1__ReadResponse.soap_put(soap, "ns1:ReadResponse", "") || s0__ReadResponse.soap_put(soap, "s0:ReadResponse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap) || soap_envelope_end_out(soap)
|| soap_end_send(soap)) || soap_end_send(soap))
...@@ -173,30 +173,30 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Read(struct soap *soap) ...@@ -173,30 +173,30 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Read(struct soap *soap)
return soap_closesock(soap); return soap_closesock(soap);
} }
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Write(struct soap *soap) SOAP_FMAC5 int SOAP_FMAC6 soap_serve___s0__Write(struct soap *soap)
{ struct __ns1__Write soap_tmp___ns1__Write; { struct __s0__Write soap_tmp___s0__Write;
_ns1__WriteResponse ns1__WriteResponse; _s0__WriteResponse s0__WriteResponse;
ns1__WriteResponse.soap_default(soap); s0__WriteResponse.soap_default(soap);
soap_default___ns1__Write(soap, &soap_tmp___ns1__Write); soap_default___s0__Write(soap, &soap_tmp___s0__Write);
soap->encodingStyle = NULL; soap->encodingStyle = NULL;
if (!soap_get___ns1__Write(soap, &soap_tmp___ns1__Write, "-ns1:Write", NULL)) if (!soap_get___s0__Write(soap, &soap_tmp___s0__Write, "-s0:Write", NULL))
return soap->error; return soap->error;
if (soap_body_end_in(soap) if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap) || soap_envelope_end_in(soap)
|| soap_end_recv(soap)) || soap_end_recv(soap))
return soap->error; return soap->error;
soap->error = __ns1__Write(soap, soap_tmp___ns1__Write.ns1__Write, &ns1__WriteResponse); soap->error = __s0__Write(soap, soap_tmp___s0__Write.s0__Write, &s0__WriteResponse);
if (soap->error) if (soap->error)
return soap->error; return soap->error;
soap_serializeheader(soap); soap_serializeheader(soap);
ns1__WriteResponse.soap_serialize(soap); s0__WriteResponse.soap_serialize(soap);
if (soap_begin_count(soap)) if (soap_begin_count(soap))
return soap->error; return soap->error;
if (soap->mode & SOAP_IO_LENGTH) if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap) { if (soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| ns1__WriteResponse.soap_put(soap, "ns1:WriteResponse", "") || s0__WriteResponse.soap_put(soap, "s0:WriteResponse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap)) || soap_envelope_end_out(soap))
return soap->error; return soap->error;
...@@ -206,7 +206,7 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Write(struct soap *soap) ...@@ -206,7 +206,7 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Write(struct soap *soap)
|| soap_envelope_begin_out(soap) || soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| ns1__WriteResponse.soap_put(soap, "ns1:WriteResponse", "") || s0__WriteResponse.soap_put(soap, "s0:WriteResponse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap) || soap_envelope_end_out(soap)
|| soap_end_send(soap)) || soap_end_send(soap))
...@@ -214,30 +214,30 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Write(struct soap *soap) ...@@ -214,30 +214,30 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Write(struct soap *soap)
return soap_closesock(soap); return soap_closesock(soap);
} }
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Subscribe(struct soap *soap) SOAP_FMAC5 int SOAP_FMAC6 soap_serve___s0__Subscribe(struct soap *soap)
{ struct __ns1__Subscribe soap_tmp___ns1__Subscribe; { struct __s0__Subscribe soap_tmp___s0__Subscribe;
_ns1__SubscribeResponse ns1__SubscribeResponse; _s0__SubscribeResponse s0__SubscribeResponse;
ns1__SubscribeResponse.soap_default(soap); s0__SubscribeResponse.soap_default(soap);
soap_default___ns1__Subscribe(soap, &soap_tmp___ns1__Subscribe); soap_default___s0__Subscribe(soap, &soap_tmp___s0__Subscribe);
soap->encodingStyle = NULL; soap->encodingStyle = NULL;
if (!soap_get___ns1__Subscribe(soap, &soap_tmp___ns1__Subscribe, "-ns1:Subscribe", NULL)) if (!soap_get___s0__Subscribe(soap, &soap_tmp___s0__Subscribe, "-s0:Subscribe", NULL))
return soap->error; return soap->error;
if (soap_body_end_in(soap) if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap) || soap_envelope_end_in(soap)
|| soap_end_recv(soap)) || soap_end_recv(soap))
return soap->error; return soap->error;
soap->error = __ns1__Subscribe(soap, soap_tmp___ns1__Subscribe.ns1__Subscribe, &ns1__SubscribeResponse); soap->error = __s0__Subscribe(soap, soap_tmp___s0__Subscribe.s0__Subscribe, &s0__SubscribeResponse);
if (soap->error) if (soap->error)
return soap->error; return soap->error;
soap_serializeheader(soap); soap_serializeheader(soap);
ns1__SubscribeResponse.soap_serialize(soap); s0__SubscribeResponse.soap_serialize(soap);
if (soap_begin_count(soap)) if (soap_begin_count(soap))
return soap->error; return soap->error;
if (soap->mode & SOAP_IO_LENGTH) if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap) { if (soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| ns1__SubscribeResponse.soap_put(soap, "ns1:SubscribeResponse", "") || s0__SubscribeResponse.soap_put(soap, "s0:SubscribeResponse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap)) || soap_envelope_end_out(soap))
return soap->error; return soap->error;
...@@ -247,7 +247,7 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Subscribe(struct soap *soap) ...@@ -247,7 +247,7 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Subscribe(struct soap *soap)
|| soap_envelope_begin_out(soap) || soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| ns1__SubscribeResponse.soap_put(soap, "ns1:SubscribeResponse", "") || s0__SubscribeResponse.soap_put(soap, "s0:SubscribeResponse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap) || soap_envelope_end_out(soap)
|| soap_end_send(soap)) || soap_end_send(soap))
...@@ -255,30 +255,30 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Subscribe(struct soap *soap) ...@@ -255,30 +255,30 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Subscribe(struct soap *soap)
return soap_closesock(soap); return soap_closesock(soap);
} }
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__SubscriptionPolledRefresh(struct soap *soap) SOAP_FMAC5 int SOAP_FMAC6 soap_serve___s0__SubscriptionPolledRefresh(struct soap *soap)
{ struct __ns1__SubscriptionPolledRefresh soap_tmp___ns1__SubscriptionPolledRefresh; { struct __s0__SubscriptionPolledRefresh soap_tmp___s0__SubscriptionPolledRefresh;
_ns1__SubscriptionPolledRefreshResponse ns1__SubscriptionPolledRefreshResponse; _s0__SubscriptionPolledRefreshResponse s0__SubscriptionPolledRefreshResponse;
ns1__SubscriptionPolledRefreshResponse.soap_default(soap); s0__SubscriptionPolledRefreshResponse.soap_default(soap);
soap_default___ns1__SubscriptionPolledRefresh(soap, &soap_tmp___ns1__SubscriptionPolledRefresh); soap_default___s0__SubscriptionPolledRefresh(soap, &soap_tmp___s0__SubscriptionPolledRefresh);
soap->encodingStyle = NULL; soap->encodingStyle = NULL;
if (!soap_get___ns1__SubscriptionPolledRefresh(soap, &soap_tmp___ns1__SubscriptionPolledRefresh, "-ns1:SubscriptionPolledRefresh", NULL)) if (!soap_get___s0__SubscriptionPolledRefresh(soap, &soap_tmp___s0__SubscriptionPolledRefresh, "-s0:SubscriptionPolledRefresh", NULL))
return soap->error; return soap->error;
if (soap_body_end_in(soap) if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap) || soap_envelope_end_in(soap)
|| soap_end_recv(soap)) || soap_end_recv(soap))
return soap->error; return soap->error;
soap->error = __ns1__SubscriptionPolledRefresh(soap, soap_tmp___ns1__SubscriptionPolledRefresh.ns1__SubscriptionPolledRefresh, &ns1__SubscriptionPolledRefreshResponse); soap->error = __s0__SubscriptionPolledRefresh(soap, soap_tmp___s0__SubscriptionPolledRefresh.s0__SubscriptionPolledRefresh, &s0__SubscriptionPolledRefreshResponse);
if (soap->error) if (soap->error)
return soap->error; return soap->error;
soap_serializeheader(soap); soap_serializeheader(soap);
ns1__SubscriptionPolledRefreshResponse.soap_serialize(soap); s0__SubscriptionPolledRefreshResponse.soap_serialize(soap);
if (soap_begin_count(soap)) if (soap_begin_count(soap))
return soap->error; return soap->error;
if (soap->mode & SOAP_IO_LENGTH) if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap) { if (soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| ns1__SubscriptionPolledRefreshResponse.soap_put(soap, "ns1:SubscriptionPolledRefreshResponse", "") || s0__SubscriptionPolledRefreshResponse.soap_put(soap, "s0:SubscriptionPolledRefreshResponse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap)) || soap_envelope_end_out(soap))
return soap->error; return soap->error;
...@@ -288,7 +288,7 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__SubscriptionPolledRefresh(struct soa ...@@ -288,7 +288,7 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__SubscriptionPolledRefresh(struct soa
|| soap_envelope_begin_out(soap) || soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| ns1__SubscriptionPolledRefreshResponse.soap_put(soap, "ns1:SubscriptionPolledRefreshResponse", "") || s0__SubscriptionPolledRefreshResponse.soap_put(soap, "s0:SubscriptionPolledRefreshResponse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap) || soap_envelope_end_out(soap)
|| soap_end_send(soap)) || soap_end_send(soap))
...@@ -296,30 +296,30 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__SubscriptionPolledRefresh(struct soa ...@@ -296,30 +296,30 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__SubscriptionPolledRefresh(struct soa
return soap_closesock(soap); return soap_closesock(soap);
} }
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__SubscriptionCancel(struct soap *soap) SOAP_FMAC5 int SOAP_FMAC6 soap_serve___s0__SubscriptionCancel(struct soap *soap)
{ struct __ns1__SubscriptionCancel soap_tmp___ns1__SubscriptionCancel; { struct __s0__SubscriptionCancel soap_tmp___s0__SubscriptionCancel;
_ns1__SubscriptionCancelResponse ns1__SubscriptionCancelResponse; _s0__SubscriptionCancelResponse s0__SubscriptionCancelResponse;
ns1__SubscriptionCancelResponse.soap_default(soap); s0__SubscriptionCancelResponse.soap_default(soap);
soap_default___ns1__SubscriptionCancel(soap, &soap_tmp___ns1__SubscriptionCancel); soap_default___s0__SubscriptionCancel(soap, &soap_tmp___s0__SubscriptionCancel);
soap->encodingStyle = NULL; soap->encodingStyle = NULL;
if (!soap_get___ns1__SubscriptionCancel(soap, &soap_tmp___ns1__SubscriptionCancel, "-ns1:SubscriptionCancel", NULL)) if (!soap_get___s0__SubscriptionCancel(soap, &soap_tmp___s0__SubscriptionCancel, "-s0:SubscriptionCancel", NULL))
return soap->error; return soap->error;
if (soap_body_end_in(soap) if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap) || soap_envelope_end_in(soap)
|| soap_end_recv(soap)) || soap_end_recv(soap))
return soap->error; return soap->error;
soap->error = __ns1__SubscriptionCancel(soap, soap_tmp___ns1__SubscriptionCancel.ns1__SubscriptionCancel, &ns1__SubscriptionCancelResponse); soap->error = __s0__SubscriptionCancel(soap, soap_tmp___s0__SubscriptionCancel.s0__SubscriptionCancel, &s0__SubscriptionCancelResponse);
if (soap->error) if (soap->error)
return soap->error; return soap->error;
soap_serializeheader(soap); soap_serializeheader(soap);
ns1__SubscriptionCancelResponse.soap_serialize(soap); s0__SubscriptionCancelResponse.soap_serialize(soap);
if (soap_begin_count(soap)) if (soap_begin_count(soap))
return soap->error; return soap->error;
if (soap->mode & SOAP_IO_LENGTH) if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap) { if (soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| ns1__SubscriptionCancelResponse.soap_put(soap, "ns1:SubscriptionCancelResponse", "") || s0__SubscriptionCancelResponse.soap_put(soap, "s0:SubscriptionCancelResponse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap)) || soap_envelope_end_out(soap))
return soap->error; return soap->error;
...@@ -329,7 +329,7 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__SubscriptionCancel(struct soap *soap ...@@ -329,7 +329,7 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__SubscriptionCancel(struct soap *soap
|| soap_envelope_begin_out(soap) || soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| ns1__SubscriptionCancelResponse.soap_put(soap, "ns1:SubscriptionCancelResponse", "") || s0__SubscriptionCancelResponse.soap_put(soap, "s0:SubscriptionCancelResponse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap) || soap_envelope_end_out(soap)
|| soap_end_send(soap)) || soap_end_send(soap))
...@@ -337,30 +337,30 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__SubscriptionCancel(struct soap *soap ...@@ -337,30 +337,30 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__SubscriptionCancel(struct soap *soap
return soap_closesock(soap); return soap_closesock(soap);
} }
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Browse(struct soap *soap) SOAP_FMAC5 int SOAP_FMAC6 soap_serve___s0__Browse(struct soap *soap)
{ struct __ns1__Browse soap_tmp___ns1__Browse; { struct __s0__Browse soap_tmp___s0__Browse;
_ns1__BrowseResponse ns1__BrowseResponse; _s0__BrowseResponse s0__BrowseResponse;
ns1__BrowseResponse.soap_default(soap); s0__BrowseResponse.soap_default(soap);
soap_default___ns1__Browse(soap, &soap_tmp___ns1__Browse); soap_default___s0__Browse(soap, &soap_tmp___s0__Browse);
soap->encodingStyle = NULL; soap->encodingStyle = NULL;
if (!soap_get___ns1__Browse(soap, &soap_tmp___ns1__Browse, "-ns1:Browse", NULL)) if (!soap_get___s0__Browse(soap, &soap_tmp___s0__Browse, "-s0:Browse", NULL))
return soap->error; return soap->error;
if (soap_body_end_in(soap) if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap) || soap_envelope_end_in(soap)
|| soap_end_recv(soap)) || soap_end_recv(soap))
return soap->error; return soap->error;
soap->error = __ns1__Browse(soap, soap_tmp___ns1__Browse.ns1__Browse, &ns1__BrowseResponse); soap->error = __s0__Browse(soap, soap_tmp___s0__Browse.s0__Browse, &s0__BrowseResponse);
if (soap->error) if (soap->error)
return soap->error; return soap->error;
soap_serializeheader(soap); soap_serializeheader(soap);
ns1__BrowseResponse.soap_serialize(soap); s0__BrowseResponse.soap_serialize(soap);
if (soap_begin_count(soap)) if (soap_begin_count(soap))
return soap->error; return soap->error;
if (soap->mode & SOAP_IO_LENGTH) if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap) { if (soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| ns1__BrowseResponse.soap_put(soap, "ns1:BrowseResponse", "") || s0__BrowseResponse.soap_put(soap, "s0:BrowseResponse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap)) || soap_envelope_end_out(soap))
return soap->error; return soap->error;
...@@ -370,7 +370,7 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Browse(struct soap *soap) ...@@ -370,7 +370,7 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Browse(struct soap *soap)
|| soap_envelope_begin_out(soap) || soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| ns1__BrowseResponse.soap_put(soap, "ns1:BrowseResponse", "") || s0__BrowseResponse.soap_put(soap, "s0:BrowseResponse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap) || soap_envelope_end_out(soap)
|| soap_end_send(soap)) || soap_end_send(soap))
...@@ -378,30 +378,30 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Browse(struct soap *soap) ...@@ -378,30 +378,30 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__Browse(struct soap *soap)
return soap_closesock(soap); return soap_closesock(soap);
} }
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__GetProperties(struct soap *soap) SOAP_FMAC5 int SOAP_FMAC6 soap_serve___s0__GetProperties(struct soap *soap)
{ struct __ns1__GetProperties soap_tmp___ns1__GetProperties; { struct __s0__GetProperties soap_tmp___s0__GetProperties;
_ns1__GetPropertiesResponse ns1__GetPropertiesResponse; _s0__GetPropertiesResponse s0__GetPropertiesResponse;
ns1__GetPropertiesResponse.soap_default(soap); s0__GetPropertiesResponse.soap_default(soap);
soap_default___ns1__GetProperties(soap, &soap_tmp___ns1__GetProperties); soap_default___s0__GetProperties(soap, &soap_tmp___s0__GetProperties);
soap->encodingStyle = NULL; soap->encodingStyle = NULL;
if (!soap_get___ns1__GetProperties(soap, &soap_tmp___ns1__GetProperties, "-ns1:GetProperties", NULL)) if (!soap_get___s0__GetProperties(soap, &soap_tmp___s0__GetProperties, "-s0:GetProperties", NULL))
return soap->error; return soap->error;
if (soap_body_end_in(soap) if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap) || soap_envelope_end_in(soap)
|| soap_end_recv(soap)) || soap_end_recv(soap))
return soap->error; return soap->error;
soap->error = __ns1__GetProperties(soap, soap_tmp___ns1__GetProperties.ns1__GetProperties, &ns1__GetPropertiesResponse); soap->error = __s0__GetProperties(soap, soap_tmp___s0__GetProperties.s0__GetProperties, &s0__GetPropertiesResponse);
if (soap->error) if (soap->error)
return soap->error; return soap->error;
soap_serializeheader(soap); soap_serializeheader(soap);
ns1__GetPropertiesResponse.soap_serialize(soap); s0__GetPropertiesResponse.soap_serialize(soap);
if (soap_begin_count(soap)) if (soap_begin_count(soap))
return soap->error; return soap->error;
if (soap->mode & SOAP_IO_LENGTH) if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap) { if (soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| ns1__GetPropertiesResponse.soap_put(soap, "ns1:GetPropertiesResponse", "") || s0__GetPropertiesResponse.soap_put(soap, "s0:GetPropertiesResponse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap)) || soap_envelope_end_out(soap))
return soap->error; return soap->error;
...@@ -411,7 +411,7 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__GetProperties(struct soap *soap) ...@@ -411,7 +411,7 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__GetProperties(struct soap *soap)
|| soap_envelope_begin_out(soap) || soap_envelope_begin_out(soap)
|| soap_putheader(soap) || soap_putheader(soap)
|| soap_body_begin_out(soap) || soap_body_begin_out(soap)
|| ns1__GetPropertiesResponse.soap_put(soap, "ns1:GetPropertiesResponse", "") || s0__GetPropertiesResponse.soap_put(soap, "s0:GetPropertiesResponse", "")
|| soap_body_end_out(soap) || soap_body_end_out(soap)
|| soap_envelope_end_out(soap) || soap_envelope_end_out(soap)
|| soap_end_send(soap)) || soap_end_send(soap))
......
...@@ -24,7 +24,7 @@ class Service : public soap ...@@ -24,7 +24,7 @@ class Service : public soap
{"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.org/*/soap-encoding", 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}, {"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}, {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL},
{"ns1", "http://opcfoundation.org/webservices/XMLDA/1.0/", NULL, NULL}, {"s0", "http://opcfoundation.org/webservices/XMLDA/1.0/", NULL, NULL},
{NULL, NULL, NULL, NULL} {NULL, NULL, NULL, NULL}
}; };
soap_init(this); if (!this->namespaces) this->namespaces = namespaces; }; soap_init(this); if (!this->namespaces) this->namespaces = namespaces; };
...@@ -41,20 +41,20 @@ class Service : public soap ...@@ -41,20 +41,20 @@ class Service : public soap
\******************************************************************************/ \******************************************************************************/
SOAP_FMAC5 int SOAP_FMAC6 __ns1__GetStatus(struct soap*, _ns1__GetStatus *ns1__GetStatus, _ns1__GetStatusResponse *ns1__GetStatusResponse); SOAP_FMAC5 int SOAP_FMAC6 __s0__GetStatus(struct soap*, _s0__GetStatus *s0__GetStatus, _s0__GetStatusResponse *s0__GetStatusResponse);
SOAP_FMAC5 int SOAP_FMAC6 __ns1__Read(struct soap*, _ns1__Read *ns1__Read, _ns1__ReadResponse *ns1__ReadResponse); SOAP_FMAC5 int SOAP_FMAC6 __s0__Read(struct soap*, _s0__Read *s0__Read, _s0__ReadResponse *s0__ReadResponse);
SOAP_FMAC5 int SOAP_FMAC6 __ns1__Write(struct soap*, _ns1__Write *ns1__Write, _ns1__WriteResponse *ns1__WriteResponse); SOAP_FMAC5 int SOAP_FMAC6 __s0__Write(struct soap*, _s0__Write *s0__Write, _s0__WriteResponse *s0__WriteResponse);
SOAP_FMAC5 int SOAP_FMAC6 __ns1__Subscribe(struct soap*, _ns1__Subscribe *ns1__Subscribe, _ns1__SubscribeResponse *ns1__SubscribeResponse); SOAP_FMAC5 int SOAP_FMAC6 __s0__Subscribe(struct soap*, _s0__Subscribe *s0__Subscribe, _s0__SubscribeResponse *s0__SubscribeResponse);
SOAP_FMAC5 int SOAP_FMAC6 __ns1__SubscriptionPolledRefresh(struct soap*, _ns1__SubscriptionPolledRefresh *ns1__SubscriptionPolledRefresh, _ns1__SubscriptionPolledRefreshResponse *ns1__SubscriptionPolledRefreshResponse); SOAP_FMAC5 int SOAP_FMAC6 __s0__SubscriptionPolledRefresh(struct soap*, _s0__SubscriptionPolledRefresh *s0__SubscriptionPolledRefresh, _s0__SubscriptionPolledRefreshResponse *s0__SubscriptionPolledRefreshResponse);
SOAP_FMAC5 int SOAP_FMAC6 __ns1__SubscriptionCancel(struct soap*, _ns1__SubscriptionCancel *ns1__SubscriptionCancel, _ns1__SubscriptionCancelResponse *ns1__SubscriptionCancelResponse); SOAP_FMAC5 int SOAP_FMAC6 __s0__SubscriptionCancel(struct soap*, _s0__SubscriptionCancel *s0__SubscriptionCancel, _s0__SubscriptionCancelResponse *s0__SubscriptionCancelResponse);
SOAP_FMAC5 int SOAP_FMAC6 __ns1__Browse(struct soap*, _ns1__Browse *ns1__Browse, _ns1__BrowseResponse *ns1__BrowseResponse); SOAP_FMAC5 int SOAP_FMAC6 __s0__Browse(struct soap*, _s0__Browse *s0__Browse, _s0__BrowseResponse *s0__BrowseResponse);
SOAP_FMAC5 int SOAP_FMAC6 __ns1__GetProperties(struct soap*, _ns1__GetProperties *ns1__GetProperties, _ns1__GetPropertiesResponse *ns1__GetPropertiesResponse); SOAP_FMAC5 int SOAP_FMAC6 __s0__GetProperties(struct soap*, _s0__GetProperties *s0__GetProperties, _s0__GetPropertiesResponse *s0__GetPropertiesResponse);
#endif #endif
...@@ -19,18 +19,18 @@ class Service ...@@ -19,18 +19,18 @@ class Service
{"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.org/*/soap-encoding", 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}, {"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}, {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL},
{"ns1", "http://opcfoundation.org/webservices/XMLDA/1.0/", NULL, NULL}, {"s0", "http://opcfoundation.org/webservices/XMLDA/1.0/", NULL, NULL},
{NULL, NULL, NULL, NULL} {NULL, NULL, NULL, NULL}
}; };
soap->namespaces = namespaces; } }; soap->namespaces = namespaces; } };
virtual ~Service() { if (soap) { soap_destroy(soap); soap_end(soap); soap_free(soap); } }; virtual ~Service() { if (soap) { soap_destroy(soap); soap_end(soap); soap_free(soap); } };
virtual int __ns1__GetStatus(_ns1__GetStatus *ns1__GetStatus, _ns1__GetStatusResponse *ns1__GetStatusResponse) { return soap ? soap_call___ns1__GetStatus(soap, endpoint, NULL, ns1__GetStatus, ns1__GetStatusResponse) : SOAP_EOM; }; virtual int __s0__GetStatus(_s0__GetStatus *s0__GetStatus, _s0__GetStatusResponse *s0__GetStatusResponse) { return soap ? soap_call___s0__GetStatus(soap, endpoint, NULL, s0__GetStatus, s0__GetStatusResponse) : SOAP_EOM; };
virtual int __ns1__Read(_ns1__Read *ns1__Read, _ns1__ReadResponse *ns1__ReadResponse) { return soap ? soap_call___ns1__Read(soap, endpoint, NULL, ns1__Read, ns1__ReadResponse) : SOAP_EOM; }; virtual int __s0__Read(_s0__Read *s0__Read, _s0__ReadResponse *s0__ReadResponse) { return soap ? soap_call___s0__Read(soap, endpoint, NULL, s0__Read, s0__ReadResponse) : SOAP_EOM; };
virtual int __ns1__Write(_ns1__Write *ns1__Write, _ns1__WriteResponse *ns1__WriteResponse) { return soap ? soap_call___ns1__Write(soap, endpoint, NULL, ns1__Write, ns1__WriteResponse) : SOAP_EOM; }; virtual int __s0__Write(_s0__Write *s0__Write, _s0__WriteResponse *s0__WriteResponse) { return soap ? soap_call___s0__Write(soap, endpoint, NULL, s0__Write, s0__WriteResponse) : SOAP_EOM; };
virtual int __ns1__Subscribe(_ns1__Subscribe *ns1__Subscribe, _ns1__SubscribeResponse *ns1__SubscribeResponse) { return soap ? soap_call___ns1__Subscribe(soap, endpoint, NULL, ns1__Subscribe, ns1__SubscribeResponse) : SOAP_EOM; }; virtual int __s0__Subscribe(_s0__Subscribe *s0__Subscribe, _s0__SubscribeResponse *s0__SubscribeResponse) { return soap ? soap_call___s0__Subscribe(soap, endpoint, NULL, s0__Subscribe, s0__SubscribeResponse) : SOAP_EOM; };
virtual int __ns1__SubscriptionPolledRefresh(_ns1__SubscriptionPolledRefresh *ns1__SubscriptionPolledRefresh, _ns1__SubscriptionPolledRefreshResponse *ns1__SubscriptionPolledRefreshResponse) { return soap ? soap_call___ns1__SubscriptionPolledRefresh(soap, endpoint, NULL, ns1__SubscriptionPolledRefresh, ns1__SubscriptionPolledRefreshResponse) : SOAP_EOM; }; virtual int __s0__SubscriptionPolledRefresh(_s0__SubscriptionPolledRefresh *s0__SubscriptionPolledRefresh, _s0__SubscriptionPolledRefreshResponse *s0__SubscriptionPolledRefreshResponse) { return soap ? soap_call___s0__SubscriptionPolledRefresh(soap, endpoint, NULL, s0__SubscriptionPolledRefresh, s0__SubscriptionPolledRefreshResponse) : SOAP_EOM; };
virtual int __ns1__SubscriptionCancel(_ns1__SubscriptionCancel *ns1__SubscriptionCancel, _ns1__SubscriptionCancelResponse *ns1__SubscriptionCancelResponse) { return soap ? soap_call___ns1__SubscriptionCancel(soap, endpoint, NULL, ns1__SubscriptionCancel, ns1__SubscriptionCancelResponse) : SOAP_EOM; }; virtual int __s0__SubscriptionCancel(_s0__SubscriptionCancel *s0__SubscriptionCancel, _s0__SubscriptionCancelResponse *s0__SubscriptionCancelResponse) { return soap ? soap_call___s0__SubscriptionCancel(soap, endpoint, NULL, s0__SubscriptionCancel, s0__SubscriptionCancelResponse) : SOAP_EOM; };
virtual int __ns1__Browse(_ns1__Browse *ns1__Browse, _ns1__BrowseResponse *ns1__BrowseResponse) { return soap ? soap_call___ns1__Browse(soap, endpoint, NULL, ns1__Browse, ns1__BrowseResponse) : SOAP_EOM; }; virtual int __s0__Browse(_s0__Browse *s0__Browse, _s0__BrowseResponse *s0__BrowseResponse) { return soap ? soap_call___s0__Browse(soap, endpoint, NULL, s0__Browse, s0__BrowseResponse) : SOAP_EOM; };
virtual int __ns1__GetProperties(_ns1__GetProperties *ns1__GetProperties, _ns1__GetPropertiesResponse *ns1__GetPropertiesResponse) { return soap ? soap_call___ns1__GetProperties(soap, endpoint, NULL, ns1__GetProperties, ns1__GetPropertiesResponse) : SOAP_EOM; }; virtual int __s0__GetProperties(_s0__GetProperties *s0__GetProperties, _s0__GetPropertiesResponse *s0__GetPropertiesResponse) { return soap ? soap_call___s0__GetProperties(soap, endpoint, NULL, s0__GetProperties, s0__GetPropertiesResponse) : SOAP_EOM; };
}; };
#endif #endif
This source diff could not be displayed because it is too large. You can view the blob instead.
/* /*
* Proview $Id: opc_utl.cpp,v 1.9 2007-03-14 10:19:35 claes Exp $ * Proview $Id: opc_utl.cpp,v 1.10 2007-03-15 15:25:36 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -111,7 +111,7 @@ static char opc_ResultTexts[23][20] = {"edgar o was here", ...@@ -111,7 +111,7 @@ static char opc_ResultTexts[23][20] = {"edgar o was here",
"edgar o was here", "edgar o was here",
"edgar o was here"}; "edgar o was here"};
void opcsrv_returnerror(std::vector<ns1__OPCError *>& errors, std::string **rc, int err_code, unsigned int options) void opcsrv_returnerror(std::vector<s0__OPCError *>& errors, std::string **rc, int err_code, unsigned int options)
{ {
pwr_tString32 str; pwr_tString32 str;
int ii; int ii;
...@@ -130,7 +130,7 @@ void opcsrv_returnerror(std::vector<ns1__OPCError *>& errors, std::string **rc, ...@@ -130,7 +130,7 @@ void opcsrv_returnerror(std::vector<ns1__OPCError *>& errors, std::string **rc,
} }
if (!exists) { if (!exists) {
ns1__OPCError *oe = new ns1__OPCError(); s0__OPCError *oe = new s0__OPCError();
oe->ID = std::string(str); oe->ID = std::string(str);
if (options & opc_mRequestOption_ReturnErrorText) { if (options & opc_mRequestOption_ReturnErrorText) {
...@@ -143,7 +143,7 @@ void opcsrv_returnerror(std::vector<ns1__OPCError *>& errors, std::string **rc, ...@@ -143,7 +143,7 @@ void opcsrv_returnerror(std::vector<ns1__OPCError *>& errors, std::string **rc,
} }
bool opc_requestoptions_to_mask( ns1__RequestOptions *options, unsigned int *mask) bool opc_requestoptions_to_mask( s0__RequestOptions *options, unsigned int *mask)
{ {
if (!options) { if (!options) {
...@@ -205,12 +205,28 @@ bool opc_string_to_resultcode(char *str, int *type) ...@@ -205,12 +205,28 @@ bool opc_string_to_resultcode(char *str, int *type)
// Return the corresponding opc type string for a pwr_eType // Return the corresponding opc type string for a pwr_eType
// //
std::string& opc_datetime( pwr_tTime *tp)
{
static std::string timstr;
char str[40];
time_AtoOPCAscii( tp, str, sizeof(str));
timstr = std::string( str);
return timstr;
}
pwr_tStatus time_AtoOPCAscii (pwr_tTime *tp, char *buf, int bufsize) pwr_tStatus time_AtoOPCAscii (pwr_tTime *tp, char *buf, int bufsize)
{ {
struct tm *tmpTm; struct tm *tmpTm;
int buflen; int buflen;
char tmpStr[16]; char tmpStr[16];
pwr_tTime t;
if ( !tp) {
clock_gettime( CLOCK_REALTIME, &t);
tp = &t;
}
tmpTm = localtime(&tp->tv_sec); tmpTm = localtime(&tp->tv_sec);
strftime(buf, bufsize, "%Y-%m-%dT%H:%M:%S", tmpTm); strftime(buf, bufsize, "%Y-%m-%dT%H:%M:%S", tmpTm);
...@@ -752,55 +768,12 @@ bool opc_type_to_pwrtype(int type, int *pwrtype) ...@@ -752,55 +768,12 @@ bool opc_type_to_pwrtype(int type, int *pwrtype)
// //
bool opc_pwrtype_to_string( int type, char **str) bool opc_pwrtype_to_string( int type, char **str)
{ {
*str = (char *) malloc(20); int opctype;
switch ( type) {
case pwr_eType_String: if ( !opc_pwrtype_to_opctype( type, &opctype))
case pwr_eType_Objid:
case pwr_eType_AttrRef:
strcpy( *str, "string");
break;
case pwr_eType_Boolean:
strcpy( *str, "boolean");
break;
case pwr_eType_Float32:
strcpy( *str, "float");
break;
case pwr_eType_Float64:
strcpy( *str, "double");
break;
case pwr_eType_Enum:
case pwr_eType_Mask:
case pwr_eType_Status:
case pwr_eType_NetStatus:
case pwr_eType_Int32:
strcpy( *str, "int");
break;
case pwr_eType_Int16:
strcpy( *str, "short");
break;
case pwr_eType_Int8:
strcpy( *str, "byte");
break;
case pwr_eType_UInt32:
strcpy( *str, "unsignedInt");
break;
case pwr_eType_UInt16:
strcpy( *str, "unsignedShort");
break;
case pwr_eType_UInt8:
strcpy( *str, "unsignedByte");
break;
case pwr_eType_Time:
strcpy( *str, "dateTime");
break;
case pwr_eType_DeltaTime:
strcpy( *str, "duration");
break;
default:
free( *str);
*str = 0;
return false; return false;
}
*str = str_dt[opctype];
return true; return true;
} }
...@@ -816,8 +789,8 @@ void opc_mask_to_propertynames( std::vector<std::string>& pnames, unsigned int m ...@@ -816,8 +789,8 @@ void opc_mask_to_propertynames( std::vector<std::string>& pnames, unsigned int m
} }
} }
bool opc_get_property( std::vector<ns1__ItemProperty *> properties, unsigned int mask, bool opc_get_property( std::vector<s0__ItemProperty *> properties, unsigned int mask,
char **valp) xsd__anyType **valp)
{ {
char name[80]; char name[80];
char *s; char *s;
...@@ -954,52 +927,52 @@ bool opc_quality_to_string( int quality, char **str) ...@@ -954,52 +927,52 @@ bool opc_quality_to_string( int quality, char **str)
{ {
*str = (char *) malloc(30); *str = (char *) malloc(30);
switch ( quality) { switch ( quality) {
case ns1__qualityBits__bad: case s0__qualityBits__bad:
strcpy( *str, "bad"); strcpy( *str, "bad");
break; break;
case ns1__qualityBits__badConfigurationError: case s0__qualityBits__badConfigurationError:
strcpy( *str, "badConfigurationError"); strcpy( *str, "badConfigurationError");
break; break;
case ns1__qualityBits__badNotConnected: case s0__qualityBits__badNotConnected:
strcpy( *str, "badNotConnected"); strcpy( *str, "badNotConnected");
break; break;
case ns1__qualityBits__badDeviceFailure: case s0__qualityBits__badDeviceFailure:
strcpy( *str, "badDeviceFailure"); strcpy( *str, "badDeviceFailure");
break; break;
case ns1__qualityBits__badSensorFailure: case s0__qualityBits__badSensorFailure:
strcpy( *str, "badSensorFailure"); strcpy( *str, "badSensorFailure");
break; break;
case ns1__qualityBits__badLastKnownValue: case s0__qualityBits__badLastKnownValue:
strcpy( *str, "badLastKnownValue"); strcpy( *str, "badLastKnownValue");
break; break;
case ns1__qualityBits__badCommFailure: case s0__qualityBits__badCommFailure:
strcpy( *str, "badCommFailure"); strcpy( *str, "badCommFailure");
break; break;
case ns1__qualityBits__badOutOfService: case s0__qualityBits__badOutOfService:
strcpy( *str, "badOutOfService"); strcpy( *str, "badOutOfService");
break; break;
case ns1__qualityBits__badWaitingForInitialData: case s0__qualityBits__badWaitingForInitialData:
strcpy( *str, "badWaitingForInitialData"); strcpy( *str, "badWaitingForInitialData");
break; break;
case ns1__qualityBits__uncertain: case s0__qualityBits__uncertain:
strcpy( *str, "uncertain"); strcpy( *str, "uncertain");
break; break;
case ns1__qualityBits__uncertainLastUsableValue: case s0__qualityBits__uncertainLastUsableValue:
strcpy( *str, "uncertainLastUsableValue"); strcpy( *str, "uncertainLastUsableValue");
break; break;
case ns1__qualityBits__uncertainSensorNotAccurate: case s0__qualityBits__uncertainSensorNotAccurate:
strcpy( *str, "uncertainSensorNotAccurate"); strcpy( *str, "uncertainSensorNotAccurate");
break; break;
case ns1__qualityBits__uncertainEUExceeded: case s0__qualityBits__uncertainEUExceeded:
strcpy( *str, "uncertainEUExceede"); strcpy( *str, "uncertainEUExceede");
break; break;
case ns1__qualityBits__uncertainSubNormal: case s0__qualityBits__uncertainSubNormal:
strcpy( *str, "uncertainSubNormal"); strcpy( *str, "uncertainSubNormal");
break; break;
case ns1__qualityBits__good: case s0__qualityBits__good:
strcpy( *str, "good"); strcpy( *str, "good");
break; break;
case ns1__qualityBits__goodLocalOverride: case s0__qualityBits__goodLocalOverride:
strcpy( *str, "goodLocalOverride"); strcpy( *str, "goodLocalOverride");
break; break;
default: default:
......
/* /*
* Proview $Id: opc_utl.h,v 1.7 2007-03-14 08:02:54 claes Exp $ * Proview $Id: opc_utl.h,v 1.8 2007-03-15 15:25:36 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -106,8 +106,9 @@ typedef enum { ...@@ -106,8 +106,9 @@ typedef enum {
opc_eResultCode_E_BADTYPE , opc_eResultCode_E_BADTYPE ,
} opc_eResultCode; } opc_eResultCode;
void opcsrv_returnerror(std::vector<ns1__OPCError *>& errors, std::string **rc, int err_code, unsigned int options); void opcsrv_returnerror(std::vector<s0__OPCError *>& errors, std::string **rc, int err_code, unsigned int options);
bool opc_requestoptions_to_mask( ns1__RequestOptions *options, unsigned int *mask); bool opc_requestoptions_to_mask( s0__RequestOptions *options, unsigned int *mask);
std::string& opc_datetime( pwr_tTime *tp);
pwr_tStatus time_AtoOPCAscii (pwr_tTime *tp, char *buf, int bufsize); pwr_tStatus time_AtoOPCAscii (pwr_tTime *tp, char *buf, int bufsize);
bool opc_resultcode_to_string( int type, char *str); bool opc_resultcode_to_string( int type, char *str);
bool opc_resultcode_to_text( int type, char *str); bool opc_resultcode_to_text( int type, char *str);
...@@ -119,8 +120,8 @@ bool opc_pwrtype_to_opctype(int pwrtype, int *opctype); ...@@ -119,8 +120,8 @@ bool opc_pwrtype_to_opctype(int pwrtype, int *opctype);
bool opc_type_to_pwrtype(int type, int *pwrtype); bool opc_type_to_pwrtype(int type, int *pwrtype);
bool opc_pwrtype_to_string( int type, char **str); bool opc_pwrtype_to_string( int type, char **str);
bool opc_get_property( std::vector<ns1__ItemProperty *> properties, unsigned int mask, bool opc_get_property( std::vector<s0__ItemProperty *> properties, unsigned int mask,
char **valp); xsd__anyType **valp);
void opc_mask_to_propertynames( std::vector<std::string>& pnames, unsigned int mask); void opc_mask_to_propertynames( std::vector<std::string>& pnames, unsigned int mask);
......
s0 = "http://opcfoundation.org/webservices/XMLDA/1.0/"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment