Commit ee08fd46 authored by claes's avatar claes

XttStart requeset added

parent b81ea5c7
/*
* Proview $Id: rt_statussrv.cpp,v 1.2 2007-05-16 12:32:55 claes Exp $
* Proview $Id: rt_statussrv.cpp,v 1.3 2007-05-21 14:21:39 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -512,9 +512,42 @@ SOAP_FMAC5 int SOAP_FMAC6 __s0__Restart(struct soap *soap,
_s0__Restart *s0__Restart,
_s0__RestartResponse *s0__RestartResponse)
{
pwr_tCmd cmd = "rt_ini -r &";
if ( s0__Restart->ClientRequestHandle)
s0__RestartResponse->ClientRequestHandle =
new std::string( *s0__Restart->ClientRequestHandle);
system( cmd);
return SOAP_OK;
}
SOAP_FMAC5 int SOAP_FMAC6 __s0__XttStart(struct soap *soap,
_s0__XttStart *s0__XttStart,
_s0__XttStartResponse *s0__XttStartResponse)
{
char lang[40] = "";
pwr_tOName opplace = "";
char display[80] = "";
pwr_tCmd cmd;
if ( s0__XttStart->ClientRequestHandle)
s0__XttStartResponse->ClientRequestHandle =
new std::string( *s0__XttStart->ClientRequestHandle);
if ( s0__XttStart->Language) {
sprintf( lang, "-l %s", s0__XttStart->Language->c_str());
}
if ( s0__XttStart->OpPlace) {
strcpy( opplace, s0__XttStart->OpPlace->c_str());
}
if ( s0__XttStart->Display) {
sprintf( display, "--display %s", s0__XttStart->Display->c_str());
}
sprintf( cmd, "rt_xtt %s -q -c %s %s &", opplace, display, lang);
system( cmd);
return SOAP_OK;
}
......@@ -34,6 +34,138 @@
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetExtStatus">
<s:complexType>
<s:attribute name="ClientRequestHandle" type="s:string" />
</s:complexType>
</s:element>
<s:element name="GetExtStatusResponse">
<s:complexType>
<s:attribute name="ClientRequestHandle" type="s:string" />
<s:sequence>
<s:element name="ServerSts1" type="s:int" />
<s:element name="ServerSts1Str" type="s:string" />
<s:element name="ServerSts1Name" type="s:string" />
<s:element name="ServerSts2" type="s:int" />
<s:element name="ServerSts2Str" type="s:string" />
<s:element name="ServerSts2Name" type="s:string" />
<s:element name="ServerSts3" type="s:int" />
<s:element name="ServerSts3Str" type="s:string" />
<s:element name="ServerSts3Name" type="s:string" />
<s:element name="ServerSts4" type="s:int" />
<s:element name="ServerSts4Str" type="s:string" />
<s:element name="ServerSts4Name" type="s:string" />
<s:element name="ServerSts5" type="s:int" />
<s:element name="ServerSts5Str" type="s:string" />
<s:element name="ServerSts5Name" type="s:string" />
<s:element name="ServerSts6" type="s:int" />
<s:element name="ServerSts6Str" type="s:string" />
<s:element name="ServerSts6Name" type="s:string" />
<s:element name="ServerSts7" type="s:int" />
<s:element name="ServerSts7Str" type="s:string" />
<s:element name="ServerSts7Name" type="s:string" />
<s:element name="ServerSts8" type="s:int" />
<s:element name="ServerSts8Str" type="s:string" />
<s:element name="ServerSts8Name" type="s:string" />
<s:element name="ServerSts9" type="s:int" />
<s:element name="ServerSts9Str" type="s:string" />
<s:element name="ServerSts9Name" type="s:string" />
<s:element name="ServerSts10" type="s:int" />
<s:element name="ServerSts10Str" type="s:string" />
<s:element name="ServerSts10Name" type="s:string" />
<s:element name="ServerSts11" type="s:int" />
<s:element name="ServerSts11Str" type="s:string" />
<s:element name="ServerSts11Name" type="s:string" />
<s:element name="ServerSts12" type="s:int" />
<s:element name="ServerSts12Str" type="s:string" />
<s:element name="ServerSts12Name" type="s:string" />
<s:element name="ServerSts13" type="s:int" />
<s:element name="ServerSts13Str" type="s:string" />
<s:element name="ServerSts13Name" type="s:string" />
<s:element name="ServerSts14" type="s:int" />
<s:element name="ServerSts14Str" type="s:string" />
<s:element name="ServerSts14Name" type="s:string" />
<s:element name="ServerSts15" type="s:int" />
<s:element name="ServerSts15Str" type="s:string" />
<s:element name="ServerSts15Name" type="s:string" />
<s:element name="ServerSts16" type="s:int" />
<s:element name="ServerSts16Str" type="s:string" />
<s:element name="ServerSts16Name" type="s:string" />
<s:element name="ServerSts17" type="s:int" />
<s:element name="ServerSts17Str" type="s:string" />
<s:element name="ServerSts17Name" type="s:string" />
<s:element name="ServerSts18" type="s:int" />
<s:element name="ServerSts18Str" type="s:string" />
<s:element name="ServerSts18Name" type="s:string" />
<s:element name="ServerSts19" type="s:int" />
<s:element name="ServerSts19Str" type="s:string" />
<s:element name="ServerSts19Name" type="s:string" />
<s:element name="ServerSts20" type="s:int" />
<s:element name="ServerSts20Str" type="s:string" />
<s:element name="ServerSts20Name" type="s:string" />
<s:element name="ApplSts1" type="s:int" />
<s:element name="ApplSts1Str" type="s:string" />
<s:element name="ApplSts1Name" type="s:string" />
<s:element name="ApplSts2" type="s:int" />
<s:element name="ApplSts2Str" type="s:string" />
<s:element name="ApplSts2Name" type="s:string" />
<s:element name="ApplSts3" type="s:int" />
<s:element name="ApplSts3Str" type="s:string" />
<s:element name="ApplSts3Name" type="s:string" />
<s:element name="ApplSts4" type="s:int" />
<s:element name="ApplSts4Str" type="s:string" />
<s:element name="ApplSts4Name" type="s:string" />
<s:element name="ApplSts5" type="s:int" />
<s:element name="ApplSts5Str" type="s:string" />
<s:element name="ApplSts5Name" type="s:string" />
<s:element name="ApplSts6" type="s:int" />
<s:element name="ApplSts6Str" type="s:string" />
<s:element name="ApplSts6Name" type="s:string" />
<s:element name="ApplSts7" type="s:int" />
<s:element name="ApplSts7Str" type="s:string" />
<s:element name="ApplSts7Name" type="s:string" />
<s:element name="ApplSts8" type="s:int" />
<s:element name="ApplSts8Str" type="s:string" />
<s:element name="ApplSts8Name" type="s:string" />
<s:element name="ApplSts9" type="s:int" />
<s:element name="ApplSts9Str" type="s:string" />
<s:element name="ApplSts9Name" type="s:string" />
<s:element name="ApplSts10" type="s:int" />
<s:element name="ApplSts10Str" type="s:string" />
<s:element name="ApplSts10Name" type="s:string" />
<s:element name="ApplSts11" type="s:int" />
<s:element name="ApplSts11Str" type="s:string" />
<s:element name="ApplSts11Name" type="s:string" />
<s:element name="ApplSts12" type="s:int" />
<s:element name="ApplSts12Str" type="s:string" />
<s:element name="ApplSts12Name" type="s:string" />
<s:element name="ApplSts13" type="s:int" />
<s:element name="ApplSts13Str" type="s:string" />
<s:element name="ApplSts13Name" type="s:string" />
<s:element name="ApplSts14" type="s:int" />
<s:element name="ApplSts14Str" type="s:string" />
<s:element name="ApplSts14Name" type="s:string" />
<s:element name="ApplSts15" type="s:int" />
<s:element name="ApplSts15Str" type="s:string" />
<s:element name="ApplSts15Name" type="s:string" />
<s:element name="ApplSts16" type="s:int" />
<s:element name="ApplSts16Str" type="s:string" />
<s:element name="ApplSts16Name" type="s:string" />
<s:element name="ApplSts17" type="s:int" />
<s:element name="ApplSts17Str" type="s:string" />
<s:element name="ApplSts17Name" type="s:string" />
<s:element name="ApplSts18" type="s:int" />
<s:element name="ApplSts18Str" type="s:string" />
<s:element name="ApplSts18Name" type="s:string" />
<s:element name="ApplSts19" type="s:int" />
<s:element name="ApplSts19Str" type="s:string" />
<s:element name="ApplSts19Name" type="s:string" />
<s:element name="ApplSts20" type="s:int" />
<s:element name="ApplSts20Str" type="s:string" />
<s:element name="ApplSts20Name" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="Restart">
<s:complexType>
<s:attribute name="ClientRequestHandle" type="s:string" />
......@@ -44,6 +176,21 @@
<s:attribute name="ClientRequestHandle" type="s:string" />
</s:complexType>
</s:element>
<s:element name="XttStart">
<s:complexType>
<s:attribute name="ClientRequestHandle" type="s:string" />
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="OpPlace" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Language" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Display" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="XttStartResponse">
<s:complexType>
<s:attribute name="ClientRequestHandle" type="s:string" />
</s:complexType>
</s:element>
</s:schema>
</types>
<message name="GetStatusSoapIn">
......@@ -52,21 +199,41 @@
<message name="GetStatusSoapOut">
<part name="parameters" element="s0:GetStatusResponse" />
</message>
<message name="GetExtStatusSoapIn">
<part name="parameters" element="s0:GetExtStatus" />
</message>
<message name="GetExtStatusSoapOut">
<part name="parameters" element="s0:GetExtStatusResponse" />
</message>
<message name="RestartSoapIn">
<part name="parameters" element="s0:Restart" />
</message>
<message name="RestartSoapOut">
<part name="parameters" element="s0:RestartResponse" />
</message>
<message name="XttStartSoapIn">
<part name="parameters" element="s0:XttStart" />
</message>
<message name="XttStartSoapOut">
<part name="parameters" element="s0:XttStartResponse" />
</message>
<portType name="Service">
<operation name="GetStatus">
<input message="s0:GetStatusSoapIn" />
<output message="s0:GetStatusSoapOut" />
</operation>
<operation name="GetExtStatus">
<input message="s0:GetExtStatusSoapIn" />
<output message="s0:GetExtStatusSoapOut" />
</operation>
<operation name="Restart">
<input message="s0:RestartSoapIn" />
<output message="s0:RestartSoapOut" />
</operation>
<operation name="XttStart">
<input message="s0:XttStartSoapIn" />
<output message="s0:XttStartSoapOut" />
</operation>
</portType>
<binding name="Service" type="s0:Service">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
......@@ -79,6 +246,15 @@
<soap:body use="literal" />
</output>
</operation>
<operation name="GetExtStatus">
<soap:operation soapAction="s0:GetExtStatus" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
<operation name="Restart">
<soap:operation soapAction="s0:Restart" style="document" />
<input>
......@@ -88,5 +264,14 @@
<soap:body use="literal" />
</output>
</operation>
<operation name="XttStart">
<soap:operation soapAction="s0:XttStart" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
</binding>
</definitions>
......@@ -7,7 +7,7 @@
#include "statussrv_H.h"
SOAP_SOURCE_STAMP("@(#) statussrv_C.cpp ver 2.7.9d 2007-05-10 13:32:13 GMT")
SOAP_SOURCE_STAMP("@(#) statussrv_C.cpp ver 2.7.9d 2007-05-21 09:05:52 GMT")
#ifndef WITH_NOGLOBAL
......@@ -158,6 +158,10 @@ SOAP_FMAC3 void * SOAP_FMAC4 soap_getelement(struct soap *soap, int *type)
return soap_in_xsd__int(soap, NULL, NULL, "xsd:int");
case SOAP_TYPE_xsd__anyType:
return soap_in_xsd__anyType(soap, NULL, NULL, "xsd:anyType");
case SOAP_TYPE_PointerTo_s0__XttStartResponse:
return soap_in_PointerTo_s0__XttStartResponse(soap, NULL, NULL, "s0:XttStartResponse");
case SOAP_TYPE_PointerTo_s0__XttStart:
return soap_in_PointerTo_s0__XttStart(soap, NULL, NULL, "s0:XttStart");
case SOAP_TYPE_PointerTo_s0__RestartResponse:
return soap_in_PointerTo_s0__RestartResponse(soap, NULL, NULL, "s0:RestartResponse");
case SOAP_TYPE_PointerTo_s0__Restart:
......@@ -214,6 +218,14 @@ SOAP_FMAC3 void * SOAP_FMAC4 soap_getelement(struct soap *soap, int *type)
return s ? *s : NULL;
}
t = soap->tag;
if (!soap_match_tag(soap, t, "s0:XttStartResponse"))
{ *type = SOAP_TYPE__s0__XttStartResponse;
return soap_in__s0__XttStartResponse(soap, NULL, NULL, NULL);
}
if (!soap_match_tag(soap, t, "s0:XttStart"))
{ *type = SOAP_TYPE__s0__XttStart;
return soap_in__s0__XttStart(soap, NULL, NULL, NULL);
}
if (!soap_match_tag(soap, t, "s0:RestartResponse"))
{ *type = SOAP_TYPE__s0__RestartResponse;
return soap_in__s0__RestartResponse(soap, NULL, NULL, NULL);
......@@ -313,6 +325,10 @@ SOAP_FMAC3 int SOAP_FMAC4 soap_putelement(struct soap *soap, const void *ptr, co
return soap_out_byte(soap, tag, id, (const char *)ptr, "xsd:byte");
case SOAP_TYPE_int:
return soap_out_int(soap, tag, id, (const int *)ptr, "xsd:int");
case SOAP_TYPE__s0__XttStartResponse:
return ((_s0__XttStartResponse *)ptr)->soap_out(soap, "s0:XttStartResponse", id, NULL);
case SOAP_TYPE__s0__XttStart:
return ((_s0__XttStart *)ptr)->soap_out(soap, "s0:XttStart", id, NULL);
case SOAP_TYPE__s0__RestartResponse:
return ((_s0__RestartResponse *)ptr)->soap_out(soap, "s0:RestartResponse", id, NULL);
case SOAP_TYPE__s0__Restart:
......@@ -333,6 +349,10 @@ SOAP_FMAC3 int SOAP_FMAC4 soap_putelement(struct soap *soap, const void *ptr, co
return ((xsd__int *)ptr)->soap_out(soap, tag, id, "xsd:int");
case SOAP_TYPE_xsd__anyType:
return ((xsd__anyType *)ptr)->soap_out(soap, tag, id, "xsd:anyType");
case SOAP_TYPE_PointerTo_s0__XttStartResponse:
return soap_out_PointerTo_s0__XttStartResponse(soap, tag, id, (_s0__XttStartResponse *const*)ptr, "s0:XttStartResponse");
case SOAP_TYPE_PointerTo_s0__XttStart:
return soap_out_PointerTo_s0__XttStart(soap, tag, id, (_s0__XttStart *const*)ptr, "s0:XttStart");
case SOAP_TYPE_PointerTo_s0__RestartResponse:
return soap_out_PointerTo_s0__RestartResponse(soap, tag, id, (_s0__RestartResponse *const*)ptr, "s0:RestartResponse");
case SOAP_TYPE_PointerTo_s0__Restart:
......@@ -372,6 +392,12 @@ SOAP_FMAC3 void SOAP_FMAC4 soap_markelement(struct soap *soap, const void *ptr,
(void)soap; (void)ptr; (void)type; /* appease -Wall -Werror */
switch (type)
{
case SOAP_TYPE__s0__XttStartResponse:
((_s0__XttStartResponse *)ptr)->soap_serialize(soap);
break;
case SOAP_TYPE__s0__XttStart:
((_s0__XttStart *)ptr)->soap_serialize(soap);
break;
case SOAP_TYPE__s0__RestartResponse:
((_s0__RestartResponse *)ptr)->soap_serialize(soap);
break;
......@@ -402,6 +428,9 @@ SOAP_FMAC3 void SOAP_FMAC4 soap_markelement(struct soap *soap, const void *ptr,
case SOAP_TYPE_xsd__anyType:
((xsd__anyType *)ptr)->soap_serialize(soap);
break;
case SOAP_TYPE___s0__XttStart:
soap_serialize___s0__XttStart(soap, (const struct __s0__XttStart *)ptr);
break;
case SOAP_TYPE___s0__Restart:
soap_serialize___s0__Restart(soap, (const struct __s0__Restart *)ptr);
break;
......@@ -411,6 +440,12 @@ SOAP_FMAC3 void SOAP_FMAC4 soap_markelement(struct soap *soap, const void *ptr,
case SOAP_TYPE___s0__GetStatus:
soap_serialize___s0__GetStatus(soap, (const struct __s0__GetStatus *)ptr);
break;
case SOAP_TYPE_PointerTo_s0__XttStartResponse:
soap_serialize_PointerTo_s0__XttStartResponse(soap, (_s0__XttStartResponse *const*)ptr);
break;
case SOAP_TYPE_PointerTo_s0__XttStart:
soap_serialize_PointerTo_s0__XttStart(soap, (_s0__XttStart *const*)ptr);
break;
case SOAP_TYPE_PointerTo_s0__RestartResponse:
soap_serialize_PointerTo_s0__RestartResponse(soap, (_s0__RestartResponse *const*)ptr);
break;
......@@ -473,12 +508,18 @@ SOAP_FMAC3 void * SOAP_FMAC4 soap_instantiate(struct soap *soap, int t, const ch
return (void*)soap_instantiate__s0__Restart(soap, -1, type, arrayType, n);
case SOAP_TYPE__s0__RestartResponse:
return (void*)soap_instantiate__s0__RestartResponse(soap, -1, type, arrayType, n);
case SOAP_TYPE__s0__XttStart:
return (void*)soap_instantiate__s0__XttStart(soap, -1, type, arrayType, n);
case SOAP_TYPE__s0__XttStartResponse:
return (void*)soap_instantiate__s0__XttStartResponse(soap, -1, type, arrayType, n);
case SOAP_TYPE___s0__GetStatus:
return (void*)soap_instantiate___s0__GetStatus(soap, -1, type, arrayType, n);
case SOAP_TYPE___s0__GetExtStatus:
return (void*)soap_instantiate___s0__GetExtStatus(soap, -1, type, arrayType, n);
case SOAP_TYPE___s0__Restart:
return (void*)soap_instantiate___s0__Restart(soap, -1, type, arrayType, n);
case SOAP_TYPE___s0__XttStart:
return (void*)soap_instantiate___s0__XttStart(soap, -1, type, arrayType, n);
#ifndef WITH_NOGLOBAL
case SOAP_TYPE_SOAP_ENV__Header:
return (void*)soap_instantiate_SOAP_ENV__Header(soap, -1, type, arrayType, n);
......@@ -566,6 +607,18 @@ SOAP_FMAC3 int SOAP_FMAC4 soap_fdelete(struct soap_clist *p)
else
delete[] (_s0__RestartResponse*)p->ptr;
break;
case SOAP_TYPE__s0__XttStart:
if (p->size < 0)
delete (_s0__XttStart*)p->ptr;
else
delete[] (_s0__XttStart*)p->ptr;
break;
case SOAP_TYPE__s0__XttStartResponse:
if (p->size < 0)
delete (_s0__XttStartResponse*)p->ptr;
else
delete[] (_s0__XttStartResponse*)p->ptr;
break;
case SOAP_TYPE___s0__GetStatus:
if (p->size < 0)
delete (struct __s0__GetStatus*)p->ptr;
......@@ -584,6 +637,12 @@ SOAP_FMAC3 int SOAP_FMAC4 soap_fdelete(struct soap_clist *p)
else
delete[] (struct __s0__Restart*)p->ptr;
break;
case SOAP_TYPE___s0__XttStart:
if (p->size < 0)
delete (struct __s0__XttStart*)p->ptr;
else
delete[] (struct __s0__XttStart*)p->ptr;
break;
case SOAP_TYPE_SOAP_ENV__Header:
if (p->size < 0)
delete (struct SOAP_ENV__Header*)p->ptr;
......@@ -703,6 +762,335 @@ SOAP_FMAC3 int * SOAP_FMAC4 soap_in_int(struct soap *soap, const char *tag, int
return soap_inint(soap, tag, a, type, SOAP_TYPE_int);
}
void _s0__XttStartResponse::soap_default(struct soap *soap)
{
this->soap = soap;
((_s0__XttStartResponse*)this)->ClientRequestHandle = NULL;
/* transient soap skipped */
}
void _s0__XttStartResponse::soap_serialize(struct soap *soap) const
{
(void)soap; /* appease -Wall -Werror */
/* transient soap skipped */
}
int _s0__XttStartResponse::soap_put(struct soap *soap, const char *tag, const char *type) const
{
register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE__s0__XttStartResponse);
if (this->soap_out(soap, tag, id, type))
return soap->error;
return soap_putindependent(soap);
}
int _s0__XttStartResponse::soap_out(struct soap *soap, const char *tag, int id, const char *type) const
{
return soap_out__s0__XttStartResponse(soap, tag, id, this, type);
}
SOAP_FMAC3 int SOAP_FMAC4 soap_out__s0__XttStartResponse(struct soap *soap, const char *tag, int id, const _s0__XttStartResponse *a, const char *type)
{
if (((_s0__XttStartResponse *)a)->ClientRequestHandle)
soap_set_attr(soap, "ClientRequestHandle", ((_s0__XttStartResponse *)a)->ClientRequestHandle->c_str());
soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE__s0__XttStartResponse), type);
/* transient soap skipped */
soap_element_end_out(soap, tag);
return SOAP_OK;
}
void *_s0__XttStartResponse::soap_get(struct soap *soap, const char *tag, const char *type)
{
return soap_get__s0__XttStartResponse(soap, this, tag, type);
}
SOAP_FMAC3 _s0__XttStartResponse * SOAP_FMAC4 soap_get__s0__XttStartResponse(struct soap *soap, _s0__XttStartResponse *p, const char *tag, const char *type)
{
if ((p = soap_in__s0__XttStartResponse(soap, tag, p, type)))
soap_getindependent(soap);
return p;
}
void *_s0__XttStartResponse::soap_in(struct soap *soap, const char *tag, const char *type)
{ return soap_in__s0__XttStartResponse(soap, tag, this, type);
}
SOAP_FMAC3 _s0__XttStartResponse * SOAP_FMAC4 soap_in__s0__XttStartResponse(struct soap *soap, const char *tag, _s0__XttStartResponse *a, const char *type)
{
if (soap_element_begin_in(soap, tag, 0, NULL))
return NULL;
a = (_s0__XttStartResponse *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE__s0__XttStartResponse, sizeof(_s0__XttStartResponse), soap->type, soap->arrayType);
if (!a)
return NULL;
if (soap->alloced)
{ a->soap_default(soap);
if (soap->clist->type != SOAP_TYPE__s0__XttStartResponse)
{ soap_revert(soap);
*soap->id = '\0';
return (_s0__XttStartResponse *)a->soap_in(soap, tag, type);
}
}
{ const char *t = soap_attr_value(soap, "ClientRequestHandle", 0);
if (t)
{ if (!(((_s0__XttStartResponse *)a)->ClientRequestHandle = (std::string *)soap_malloc(soap, sizeof(std::string))))
{ soap->error = SOAP_EOM;
return NULL;
}
char *s;
if (soap_s2string(soap, t, &s))
return NULL;
if (s)
{ ((_s0__XttStartResponse *)a)->ClientRequestHandle = soap_new_std__string(soap, -1);
((_s0__XttStartResponse *)a)->ClientRequestHandle->assign(s);
}
}
};
if (soap->body && !*soap->href)
{
for (;;)
{ soap->error = SOAP_TAG_MISMATCH;
/* transient soap skipped */
if (soap->error == SOAP_TAG_MISMATCH)
soap->error = soap_ignore_element(soap);
if (soap->error == SOAP_NO_TAG)
break;
if (soap->error)
return NULL;
}
if (soap_element_end_in(soap, tag))
return NULL;
}
else
{ a = (_s0__XttStartResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE__s0__XttStartResponse, 0, sizeof(_s0__XttStartResponse), 0, soap_copy__s0__XttStartResponse);
if (soap->body && soap_element_end_in(soap, tag))
return NULL;
}
return a;
}
SOAP_FMAC5 _s0__XttStartResponse * SOAP_FMAC6 soap_new__s0__XttStartResponse(struct soap *soap, int n)
{ return soap_instantiate__s0__XttStartResponse(soap, n, NULL, NULL, NULL);
}
SOAP_FMAC5 void SOAP_FMAC6 soap_delete__s0__XttStartResponse(struct soap *soap, _s0__XttStartResponse *p)
{ soap_delete(soap, p);
}
SOAP_FMAC3 _s0__XttStartResponse * SOAP_FMAC4 soap_instantiate__s0__XttStartResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
{
DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__s0__XttStartResponse(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__s0__XttStartResponse, n, soap_fdelete);
if (!cp)
return NULL;
if (n < 0)
{ cp->ptr = (void*)new _s0__XttStartResponse;
if (size)
*size = sizeof(_s0__XttStartResponse);
((_s0__XttStartResponse*)cp->ptr)->soap = soap;
}
else
{ cp->ptr = (void*)new _s0__XttStartResponse[n];
if (!cp->ptr)
{ soap->error = SOAP_EOM;
return NULL;
}
if (size)
*size = n * sizeof(_s0__XttStartResponse);
for (int i = 0; i < n; i++)
((_s0__XttStartResponse*)cp->ptr)[i].soap = soap;
}
DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
return (_s0__XttStartResponse*)cp->ptr;
}
#ifdef __cplusplus
extern "C" {
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_copy__s0__XttStartResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
{
DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying _s0__XttStartResponse %p -> %p\n", q, p));
*(_s0__XttStartResponse*)p = *(_s0__XttStartResponse*)q;
}
#ifdef __cplusplus
}
#endif
void _s0__XttStart::soap_default(struct soap *soap)
{
this->soap = soap;
((_s0__XttStart*)this)->OpPlace = NULL;
((_s0__XttStart*)this)->Language = NULL;
((_s0__XttStart*)this)->Display = NULL;
((_s0__XttStart*)this)->ClientRequestHandle = NULL;
/* transient soap skipped */
}
void _s0__XttStart::soap_serialize(struct soap *soap) const
{
(void)soap; /* appease -Wall -Werror */
soap_serialize_PointerTostd__string(soap, &((_s0__XttStart*)this)->OpPlace);
soap_serialize_PointerTostd__string(soap, &((_s0__XttStart*)this)->Language);
soap_serialize_PointerTostd__string(soap, &((_s0__XttStart*)this)->Display);
/* transient soap skipped */
}
int _s0__XttStart::soap_put(struct soap *soap, const char *tag, const char *type) const
{
register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE__s0__XttStart);
if (this->soap_out(soap, tag, id, type))
return soap->error;
return soap_putindependent(soap);
}
int _s0__XttStart::soap_out(struct soap *soap, const char *tag, int id, const char *type) const
{
return soap_out__s0__XttStart(soap, tag, id, this, type);
}
SOAP_FMAC3 int SOAP_FMAC4 soap_out__s0__XttStart(struct soap *soap, const char *tag, int id, const _s0__XttStart *a, const char *type)
{
if (((_s0__XttStart *)a)->ClientRequestHandle)
soap_set_attr(soap, "ClientRequestHandle", ((_s0__XttStart *)a)->ClientRequestHandle->c_str());
soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE__s0__XttStart), type);
soap_out_PointerTostd__string(soap, "s0:OpPlace", -1, &(((_s0__XttStart*)a)->OpPlace), "");
soap_out_PointerTostd__string(soap, "s0:Language", -1, &(((_s0__XttStart*)a)->Language), "");
soap_out_PointerTostd__string(soap, "s0:Display", -1, &(((_s0__XttStart*)a)->Display), "");
/* transient soap skipped */
soap_element_end_out(soap, tag);
return SOAP_OK;
}
void *_s0__XttStart::soap_get(struct soap *soap, const char *tag, const char *type)
{
return soap_get__s0__XttStart(soap, this, tag, type);
}
SOAP_FMAC3 _s0__XttStart * SOAP_FMAC4 soap_get__s0__XttStart(struct soap *soap, _s0__XttStart *p, const char *tag, const char *type)
{
if ((p = soap_in__s0__XttStart(soap, tag, p, type)))
soap_getindependent(soap);
return p;
}
void *_s0__XttStart::soap_in(struct soap *soap, const char *tag, const char *type)
{ return soap_in__s0__XttStart(soap, tag, this, type);
}
SOAP_FMAC3 _s0__XttStart * SOAP_FMAC4 soap_in__s0__XttStart(struct soap *soap, const char *tag, _s0__XttStart *a, const char *type)
{
if (soap_element_begin_in(soap, tag, 0, NULL))
return NULL;
a = (_s0__XttStart *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE__s0__XttStart, sizeof(_s0__XttStart), soap->type, soap->arrayType);
if (!a)
return NULL;
if (soap->alloced)
{ a->soap_default(soap);
if (soap->clist->type != SOAP_TYPE__s0__XttStart)
{ soap_revert(soap);
*soap->id = '\0';
return (_s0__XttStart *)a->soap_in(soap, tag, type);
}
}
{ const char *t = soap_attr_value(soap, "ClientRequestHandle", 0);
if (t)
{ if (!(((_s0__XttStart *)a)->ClientRequestHandle = (std::string *)soap_malloc(soap, sizeof(std::string))))
{ soap->error = SOAP_EOM;
return NULL;
}
char *s;
if (soap_s2string(soap, t, &s))
return NULL;
if (s)
{ ((_s0__XttStart *)a)->ClientRequestHandle = soap_new_std__string(soap, -1);
((_s0__XttStart *)a)->ClientRequestHandle->assign(s);
}
}
}
short soap_flag_OpPlace1 = 1, soap_flag_Language1 = 1, soap_flag_Display1 = 1;
if (soap->body && !*soap->href)
{
for (;;)
{ soap->error = SOAP_TAG_MISMATCH;
if (soap_flag_OpPlace1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
if (soap_in_PointerTostd__string(soap, "s0:OpPlace", &(((_s0__XttStart*)a)->OpPlace), "xsd:string"))
{ soap_flag_OpPlace1--;
continue;
}
if (soap_flag_Language1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
if (soap_in_PointerTostd__string(soap, "s0:Language", &(((_s0__XttStart*)a)->Language), "xsd:string"))
{ soap_flag_Language1--;
continue;
}
if (soap_flag_Display1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
if (soap_in_PointerTostd__string(soap, "s0:Display", &(((_s0__XttStart*)a)->Display), "xsd:string"))
{ soap_flag_Display1--;
continue;
}
/* transient soap skipped */
if (soap->error == SOAP_TAG_MISMATCH)
soap->error = soap_ignore_element(soap);
if (soap->error == SOAP_NO_TAG)
break;
if (soap->error)
return NULL;
}
if (soap_element_end_in(soap, tag))
return NULL;
}
else
{ a = (_s0__XttStart *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE__s0__XttStart, 0, sizeof(_s0__XttStart), 0, soap_copy__s0__XttStart);
if (soap->body && soap_element_end_in(soap, tag))
return NULL;
}
return a;
}
SOAP_FMAC5 _s0__XttStart * SOAP_FMAC6 soap_new__s0__XttStart(struct soap *soap, int n)
{ return soap_instantiate__s0__XttStart(soap, n, NULL, NULL, NULL);
}
SOAP_FMAC5 void SOAP_FMAC6 soap_delete__s0__XttStart(struct soap *soap, _s0__XttStart *p)
{ soap_delete(soap, p);
}
SOAP_FMAC3 _s0__XttStart * SOAP_FMAC4 soap_instantiate__s0__XttStart(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
{
DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__s0__XttStart(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__s0__XttStart, n, soap_fdelete);
if (!cp)
return NULL;
if (n < 0)
{ cp->ptr = (void*)new _s0__XttStart;
if (size)
*size = sizeof(_s0__XttStart);
((_s0__XttStart*)cp->ptr)->soap = soap;
}
else
{ cp->ptr = (void*)new _s0__XttStart[n];
if (!cp->ptr)
{ soap->error = SOAP_EOM;
return NULL;
}
if (size)
*size = n * sizeof(_s0__XttStart);
for (int i = 0; i < n; i++)
((_s0__XttStart*)cp->ptr)[i].soap = soap;
}
DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
return (_s0__XttStart*)cp->ptr;
}
#ifdef __cplusplus
extern "C" {
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_copy__s0__XttStart(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
{
DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying _s0__XttStart %p -> %p\n", q, p));
*(_s0__XttStart*)p = *(_s0__XttStart*)q;
}
#ifdef __cplusplus
}
#endif
void _s0__RestartResponse::soap_default(struct soap *soap)
{
this->soap = soap;
......@@ -3979,6 +4367,112 @@ SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Header(struct soap *soap, int st,
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_default___s0__XttStart(struct soap *soap, struct __s0__XttStart *a)
{
(void)soap; (void)a; /* appease -Wall -Werror */
a->s0__XttStart = NULL;
}
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___s0__XttStart(struct soap *soap, const struct __s0__XttStart *a)
{
(void)soap; (void)a; /* appease -Wall -Werror */
soap_serialize_PointerTo_s0__XttStart(soap, &a->s0__XttStart);
}
SOAP_FMAC3 int SOAP_FMAC4 soap_put___s0__XttStart(struct soap *soap, const struct __s0__XttStart *a, const char *tag, const char *type)
{
register int id = 0;
if (soap_out___s0__XttStart(soap, tag, id, a, type))
return soap->error;
return SOAP_OK;
}
SOAP_FMAC3 int SOAP_FMAC4 soap_out___s0__XttStart(struct soap *soap, const char *tag, int id, const struct __s0__XttStart *a, const char *type)
{
soap_out_PointerTo_s0__XttStart(soap, "s0:XttStart", -1, &a->s0__XttStart, "");
return SOAP_OK;
}
SOAP_FMAC3 struct __s0__XttStart * SOAP_FMAC4 soap_get___s0__XttStart(struct soap *soap, struct __s0__XttStart *p, const char *tag, const char *type)
{
if ((p = soap_in___s0__XttStart(soap, tag, p, type)))
soap_getindependent(soap);
return p;
}
SOAP_FMAC3 struct __s0__XttStart * SOAP_FMAC4 soap_in___s0__XttStart(struct soap *soap, const char *tag, struct __s0__XttStart *a, const char *type)
{
short soap_flag_s0__XttStart = 1;
int soap_flag;
a = (struct __s0__XttStart *)soap_id_enter(soap, soap->id, a, SOAP_TYPE___s0__XttStart, sizeof(struct __s0__XttStart), 0, NULL, NULL, NULL);
if (!a)
return NULL;
soap_default___s0__XttStart(soap, a);
for (soap_flag = 0;; soap_flag = 1)
{ soap->error = SOAP_TAG_MISMATCH;
if (soap_flag_s0__XttStart && soap->error == SOAP_TAG_MISMATCH)
if (soap_in_PointerTo_s0__XttStart(soap, "s0:XttStart", &a->s0__XttStart, ""))
{ soap_flag_s0__XttStart--;
continue;
}
if (soap->error == SOAP_TAG_MISMATCH)
if (soap_flag)
{
soap->error = SOAP_OK;
break;
}
if (soap->error == SOAP_NO_TAG)
break;
if (soap->error)
return NULL;
}
return a;
}
SOAP_FMAC5 struct __s0__XttStart * SOAP_FMAC6 soap_new___s0__XttStart(struct soap *soap, int n)
{ return soap_instantiate___s0__XttStart(soap, n, NULL, NULL, NULL);
}
SOAP_FMAC5 void SOAP_FMAC6 soap_delete___s0__XttStart(struct soap *soap, struct __s0__XttStart *p)
{ soap_delete(soap, p);
}
SOAP_FMAC3 struct __s0__XttStart * SOAP_FMAC4 soap_instantiate___s0__XttStart(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
{
DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate___s0__XttStart(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE___s0__XttStart, n, soap_fdelete);
if (!cp)
return NULL;
if (n < 0)
{ cp->ptr = (void*)new struct __s0__XttStart;
if (size)
*size = sizeof(struct __s0__XttStart);
}
else
{ cp->ptr = (void*)new struct __s0__XttStart[n];
if (!cp->ptr)
{ soap->error = SOAP_EOM;
return NULL;
}
if (size)
*size = n * sizeof(struct __s0__XttStart);
}
DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
return (struct __s0__XttStart*)cp->ptr;
}
#ifdef __cplusplus
extern "C" {
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_copy___s0__XttStart(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
{
DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct __s0__XttStart %p -> %p\n", q, p));
*(struct __s0__XttStart*)p = *(struct __s0__XttStart*)q;
}
#ifdef __cplusplus
}
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_default___s0__Restart(struct soap *soap, struct __s0__Restart *a)
{
(void)soap; (void)a; /* appease -Wall -Werror */
......@@ -4459,6 +4953,112 @@ SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Code(s
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_s0__XttStartResponse(struct soap *soap, _s0__XttStartResponse *const*a)
{
if (!soap_reference(soap, *a, SOAP_TYPE__s0__XttStartResponse))
(*a)->soap_serialize(soap);
}
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_s0__XttStartResponse(struct soap *soap, _s0__XttStartResponse *const*a, const char *tag, const char *type)
{
register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTo_s0__XttStartResponse);
if (soap_out_PointerTo_s0__XttStartResponse(soap, tag, id, a, type))
return soap->error;
return soap_putindependent(soap);
}
SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTo_s0__XttStartResponse(struct soap *soap, const char *tag, int id, _s0__XttStartResponse *const*a, const char *type)
{
id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE__s0__XttStartResponse);
if (id < 0)
return soap->error;
return (*a)->soap_out(soap, tag, id, type);
}
SOAP_FMAC3 _s0__XttStartResponse ** SOAP_FMAC4 soap_get_PointerTo_s0__XttStartResponse(struct soap *soap, _s0__XttStartResponse **p, const char *tag, const char *type)
{
if ((p = soap_in_PointerTo_s0__XttStartResponse(soap, tag, p, type)))
soap_getindependent(soap);
return p;
}
SOAP_FMAC3 _s0__XttStartResponse ** SOAP_FMAC4 soap_in_PointerTo_s0__XttStartResponse(struct soap *soap, const char *tag, _s0__XttStartResponse **a, const char *type)
{
if (soap_element_begin_in(soap, tag, 1, NULL))
return NULL;
if (!a)
if (!(a = (_s0__XttStartResponse **)soap_malloc(soap, sizeof(_s0__XttStartResponse *))))
return NULL;
*a = NULL;
if (!soap->null && *soap->href != '#')
{ soap_revert(soap);
if (!(*a = (_s0__XttStartResponse *)soap_instantiate__s0__XttStartResponse(soap, -1, soap->type, soap->arrayType, NULL)))
return NULL;
(*a)->soap_default(soap);
if (!(*a)->soap_in(soap, tag, NULL))
return NULL;
}
else
{ a = (_s0__XttStartResponse **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE__s0__XttStartResponse, sizeof(_s0__XttStartResponse), 0);
if (soap->body && soap_element_end_in(soap, tag))
return NULL;
}
return a;
}
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_s0__XttStart(struct soap *soap, _s0__XttStart *const*a)
{
if (!soap_reference(soap, *a, SOAP_TYPE__s0__XttStart))
(*a)->soap_serialize(soap);
}
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_s0__XttStart(struct soap *soap, _s0__XttStart *const*a, const char *tag, const char *type)
{
register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTo_s0__XttStart);
if (soap_out_PointerTo_s0__XttStart(soap, tag, id, a, type))
return soap->error;
return soap_putindependent(soap);
}
SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTo_s0__XttStart(struct soap *soap, const char *tag, int id, _s0__XttStart *const*a, const char *type)
{
id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE__s0__XttStart);
if (id < 0)
return soap->error;
return (*a)->soap_out(soap, tag, id, type);
}
SOAP_FMAC3 _s0__XttStart ** SOAP_FMAC4 soap_get_PointerTo_s0__XttStart(struct soap *soap, _s0__XttStart **p, const char *tag, const char *type)
{
if ((p = soap_in_PointerTo_s0__XttStart(soap, tag, p, type)))
soap_getindependent(soap);
return p;
}
SOAP_FMAC3 _s0__XttStart ** SOAP_FMAC4 soap_in_PointerTo_s0__XttStart(struct soap *soap, const char *tag, _s0__XttStart **a, const char *type)
{
if (soap_element_begin_in(soap, tag, 1, NULL))
return NULL;
if (!a)
if (!(a = (_s0__XttStart **)soap_malloc(soap, sizeof(_s0__XttStart *))))
return NULL;
*a = NULL;
if (!soap->null && *soap->href != '#')
{ soap_revert(soap);
if (!(*a = (_s0__XttStart *)soap_instantiate__s0__XttStart(soap, -1, soap->type, soap->arrayType, NULL)))
return NULL;
(*a)->soap_default(soap);
if (!(*a)->soap_in(soap, tag, NULL))
return NULL;
}
else
{ a = (_s0__XttStart **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE__s0__XttStart, sizeof(_s0__XttStart), 0);
if (soap->body && soap_element_end_in(soap, tag))
return NULL;
}
return a;
}
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_s0__RestartResponse(struct soap *soap, _s0__RestartResponse *const*a)
{
if (!soap_reference(soap, *a, SOAP_TYPE__s0__RestartResponse))
......
......@@ -6,7 +6,7 @@
*/
#include "statussrv_H.h"
SOAP_SOURCE_STAMP("@(#) statussrv_Client.cpp ver 2.7.9d 2007-05-10 13:32:13 GMT")
SOAP_SOURCE_STAMP("@(#) statussrv_Client.cpp ver 2.7.9d 2007-05-21 09:05:52 GMT")
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)
......@@ -165,4 +165,56 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___s0__Restart(struct soap *soap, const char
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_call___s0__XttStart(struct soap *soap, const char *soap_endpoint, const char *soap_action, _s0__XttStart *s0__XttStart, _s0__XttStartResponse *s0__XttStartResponse)
{ struct __s0__XttStart soap_tmp___s0__XttStart;
if (!soap_action)
soap_action = "s0:XttStart";
soap->encodingStyle = NULL;
soap_tmp___s0__XttStart.s0__XttStart = s0__XttStart;
soap_begin(soap);
soap_serializeheader(soap);
soap_serialize___s0__XttStart(soap, &soap_tmp___s0__XttStart);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___s0__XttStart(soap, &soap_tmp___s0__XttStart, "-s0:XttStart", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_endpoint, soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___s0__XttStart(soap, &soap_tmp___s0__XttStart, "-s0:XttStart", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!s0__XttStartResponse)
return soap_closesock(soap);
s0__XttStartResponse->soap_default(soap);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
s0__XttStartResponse->soap_get(soap, "s0:XttStartResponse", "");
if (soap->error)
{ if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
return soap_recv_fault(soap);
return soap_closesock(soap);
}
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
/* End of statussrv_Client.cpp */
......@@ -51,6 +51,42 @@ SOAP_FMAC3 int SOAP_FMAC4 soap_out_int(struct soap*, const char*, int, const int
SOAP_FMAC3 int * SOAP_FMAC4 soap_get_int(struct soap*, int *, const char*, const char*);
SOAP_FMAC3 int * SOAP_FMAC4 soap_in_int(struct soap*, const char*, int *, const char*);
#ifndef SOAP_TYPE__s0__XttStartResponse
#define SOAP_TYPE__s0__XttStartResponse (20)
#endif
SOAP_FMAC3 int SOAP_FMAC4 soap_out__s0__XttStartResponse(struct soap*, const char*, int, const _s0__XttStartResponse *, const char*);
SOAP_FMAC3 _s0__XttStartResponse * SOAP_FMAC4 soap_get__s0__XttStartResponse(struct soap*, _s0__XttStartResponse *, const char*, const char*);
SOAP_FMAC3 _s0__XttStartResponse * SOAP_FMAC4 soap_in__s0__XttStartResponse(struct soap*, const char*, _s0__XttStartResponse *, const char*);
SOAP_FMAC5 _s0__XttStartResponse * SOAP_FMAC6 soap_new__s0__XttStartResponse(struct soap*, int);
SOAP_FMAC5 void SOAP_FMAC6 soap_delete__s0__XttStartResponse(struct soap*, _s0__XttStartResponse*);
SOAP_FMAC3 _s0__XttStartResponse * SOAP_FMAC4 soap_instantiate__s0__XttStartResponse(struct soap*, int, const char*, const char*, size_t*);
#ifdef __cplusplus
extern "C" {
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_copy__s0__XttStartResponse(struct soap*, int, int, void*, size_t, const void*, size_t);
#ifdef __cplusplus
}
#endif
#ifndef SOAP_TYPE__s0__XttStart
#define SOAP_TYPE__s0__XttStart (19)
#endif
SOAP_FMAC3 int SOAP_FMAC4 soap_out__s0__XttStart(struct soap*, const char*, int, const _s0__XttStart *, const char*);
SOAP_FMAC3 _s0__XttStart * SOAP_FMAC4 soap_get__s0__XttStart(struct soap*, _s0__XttStart *, const char*, const char*);
SOAP_FMAC3 _s0__XttStart * SOAP_FMAC4 soap_in__s0__XttStart(struct soap*, const char*, _s0__XttStart *, const char*);
SOAP_FMAC5 _s0__XttStart * SOAP_FMAC6 soap_new__s0__XttStart(struct soap*, int);
SOAP_FMAC5 void SOAP_FMAC6 soap_delete__s0__XttStart(struct soap*, _s0__XttStart*);
SOAP_FMAC3 _s0__XttStart * SOAP_FMAC4 soap_instantiate__s0__XttStart(struct soap*, int, const char*, const char*, size_t*);
#ifdef __cplusplus
extern "C" {
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_copy__s0__XttStart(struct soap*, int, int, void*, size_t, const void*, size_t);
#ifdef __cplusplus
}
#endif
#ifndef SOAP_TYPE__s0__RestartResponse
#define SOAP_TYPE__s0__RestartResponse (18)
#endif
......@@ -236,7 +272,7 @@ SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__anyType(struct soap*, int, int, void*,
#ifndef WITH_NOGLOBAL
#ifndef SOAP_TYPE_SOAP_ENV__Fault
#define SOAP_TYPE_SOAP_ENV__Fault (40)
#define SOAP_TYPE_SOAP_ENV__Fault (46)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Fault(struct soap*, struct SOAP_ENV__Fault *);
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Fault(struct soap*, const struct SOAP_ENV__Fault *);
......@@ -260,7 +296,7 @@ SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Fault(struct soap*, int, int, voi
#ifndef WITH_NOGLOBAL
#ifndef SOAP_TYPE_SOAP_ENV__Reason
#define SOAP_TYPE_SOAP_ENV__Reason (39)
#define SOAP_TYPE_SOAP_ENV__Reason (45)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *);
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Reason(struct soap*, const struct SOAP_ENV__Reason *);
......@@ -284,7 +320,7 @@ SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Reason(struct soap*, int, int, vo
#ifndef WITH_NOGLOBAL
#ifndef SOAP_TYPE_SOAP_ENV__Detail
#define SOAP_TYPE_SOAP_ENV__Detail (38)
#define SOAP_TYPE_SOAP_ENV__Detail (44)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *);
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Detail(struct soap*, const struct SOAP_ENV__Detail *);
......@@ -308,7 +344,7 @@ SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Detail(struct soap*, int, int, vo
#ifndef WITH_NOGLOBAL
#ifndef SOAP_TYPE_SOAP_ENV__Code
#define SOAP_TYPE_SOAP_ENV__Code (36)
#define SOAP_TYPE_SOAP_ENV__Code (42)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *);
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Code(struct soap*, const struct SOAP_ENV__Code *);
......@@ -332,7 +368,7 @@ SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Code(struct soap*, int, int, void
#ifndef WITH_NOGLOBAL
#ifndef SOAP_TYPE_SOAP_ENV__Header
#define SOAP_TYPE_SOAP_ENV__Header (35)
#define SOAP_TYPE_SOAP_ENV__Header (41)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Header(struct soap*, struct SOAP_ENV__Header *);
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Header(struct soap*, const struct SOAP_ENV__Header *);
......@@ -353,8 +389,28 @@ SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Header(struct soap*, int, int, vo
#endif
#ifndef SOAP_TYPE___s0__XttStart
#define SOAP_TYPE___s0__XttStart (38)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_default___s0__XttStart(struct soap*, struct __s0__XttStart *);
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___s0__XttStart(struct soap*, const struct __s0__XttStart *);
SOAP_FMAC3 int SOAP_FMAC4 soap_put___s0__XttStart(struct soap*, const struct __s0__XttStart *, const char*, const char*);
SOAP_FMAC3 int SOAP_FMAC4 soap_out___s0__XttStart(struct soap*, const char*, int, const struct __s0__XttStart *, const char*);
SOAP_FMAC3 struct __s0__XttStart * SOAP_FMAC4 soap_get___s0__XttStart(struct soap*, struct __s0__XttStart *, const char*, const char*);
SOAP_FMAC3 struct __s0__XttStart * SOAP_FMAC4 soap_in___s0__XttStart(struct soap*, const char*, struct __s0__XttStart *, const char*);
SOAP_FMAC5 struct __s0__XttStart * SOAP_FMAC6 soap_new___s0__XttStart(struct soap*, int);
SOAP_FMAC5 void SOAP_FMAC6 soap_delete___s0__XttStart(struct soap*, struct __s0__XttStart*);
SOAP_FMAC3 struct __s0__XttStart * SOAP_FMAC4 soap_instantiate___s0__XttStart(struct soap*, int, const char*, const char*, size_t*);
#ifdef __cplusplus
extern "C" {
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_copy___s0__XttStart(struct soap*, int, int, void*, size_t, const void*, size_t);
#ifdef __cplusplus
}
#endif
#ifndef SOAP_TYPE___s0__Restart
#define SOAP_TYPE___s0__Restart (32)
#define SOAP_TYPE___s0__Restart (34)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_default___s0__Restart(struct soap*, struct __s0__Restart *);
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___s0__Restart(struct soap*, const struct __s0__Restart *);
......@@ -374,7 +430,7 @@ SOAP_FMAC3 void SOAP_FMAC4 soap_copy___s0__Restart(struct soap*, int, int, void*
#endif
#ifndef SOAP_TYPE___s0__GetExtStatus
#define SOAP_TYPE___s0__GetExtStatus (28)
#define SOAP_TYPE___s0__GetExtStatus (30)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_default___s0__GetExtStatus(struct soap*, struct __s0__GetExtStatus *);
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___s0__GetExtStatus(struct soap*, const struct __s0__GetExtStatus *);
......@@ -394,7 +450,7 @@ SOAP_FMAC3 void SOAP_FMAC4 soap_copy___s0__GetExtStatus(struct soap*, int, int,
#endif
#ifndef SOAP_TYPE___s0__GetStatus
#define SOAP_TYPE___s0__GetStatus (24)
#define SOAP_TYPE___s0__GetStatus (26)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_default___s0__GetStatus(struct soap*, struct __s0__GetStatus *);
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___s0__GetStatus(struct soap*, const struct __s0__GetStatus *);
......@@ -416,7 +472,7 @@ SOAP_FMAC3 void SOAP_FMAC4 soap_copy___s0__GetStatus(struct soap*, int, int, voi
#ifndef WITH_NOGLOBAL
#ifndef SOAP_TYPE_PointerToSOAP_ENV__Reason
#define SOAP_TYPE_PointerToSOAP_ENV__Reason (42)
#define SOAP_TYPE_PointerToSOAP_ENV__Reason (48)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *const*);
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *const*, const char*, const char*);
......@@ -429,7 +485,7 @@ SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Reas
#ifndef WITH_NOGLOBAL
#ifndef SOAP_TYPE_PointerToSOAP_ENV__Detail
#define SOAP_TYPE_PointerToSOAP_ENV__Detail (41)
#define SOAP_TYPE_PointerToSOAP_ENV__Detail (47)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *const*);
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *const*, const char*, const char*);
......@@ -442,7 +498,7 @@ SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Deta
#ifndef WITH_NOGLOBAL
#ifndef SOAP_TYPE_PointerToSOAP_ENV__Code
#define SOAP_TYPE_PointerToSOAP_ENV__Code (37)
#define SOAP_TYPE_PointerToSOAP_ENV__Code (43)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *const*);
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *const*, const char*, const char*);
......@@ -452,8 +508,26 @@ SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Code(s
#endif
#ifndef SOAP_TYPE_PointerTo_s0__XttStartResponse
#define SOAP_TYPE_PointerTo_s0__XttStartResponse (36)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_s0__XttStartResponse(struct soap*, _s0__XttStartResponse *const*);
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_s0__XttStartResponse(struct soap*, _s0__XttStartResponse *const*, const char*, const char*);
SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTo_s0__XttStartResponse(struct soap*, const char *, int, _s0__XttStartResponse *const*, const char *);
SOAP_FMAC3 _s0__XttStartResponse ** SOAP_FMAC4 soap_get_PointerTo_s0__XttStartResponse(struct soap*, _s0__XttStartResponse **, const char*, const char*);
SOAP_FMAC3 _s0__XttStartResponse ** SOAP_FMAC4 soap_in_PointerTo_s0__XttStartResponse(struct soap*, const char*, _s0__XttStartResponse **, const char*);
#ifndef SOAP_TYPE_PointerTo_s0__XttStart
#define SOAP_TYPE_PointerTo_s0__XttStart (35)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_s0__XttStart(struct soap*, _s0__XttStart *const*);
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_s0__XttStart(struct soap*, _s0__XttStart *const*, const char*, const char*);
SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTo_s0__XttStart(struct soap*, const char *, int, _s0__XttStart *const*, const char *);
SOAP_FMAC3 _s0__XttStart ** SOAP_FMAC4 soap_get_PointerTo_s0__XttStart(struct soap*, _s0__XttStart **, const char*, const char*);
SOAP_FMAC3 _s0__XttStart ** SOAP_FMAC4 soap_in_PointerTo_s0__XttStart(struct soap*, const char*, _s0__XttStart **, const char*);
#ifndef SOAP_TYPE_PointerTo_s0__RestartResponse
#define SOAP_TYPE_PointerTo_s0__RestartResponse (30)
#define SOAP_TYPE_PointerTo_s0__RestartResponse (32)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_s0__RestartResponse(struct soap*, _s0__RestartResponse *const*);
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_s0__RestartResponse(struct soap*, _s0__RestartResponse *const*, const char*, const char*);
......@@ -462,7 +536,7 @@ SOAP_FMAC3 _s0__RestartResponse ** SOAP_FMAC4 soap_get_PointerTo_s0__RestartResp
SOAP_FMAC3 _s0__RestartResponse ** SOAP_FMAC4 soap_in_PointerTo_s0__RestartResponse(struct soap*, const char*, _s0__RestartResponse **, const char*);
#ifndef SOAP_TYPE_PointerTo_s0__Restart
#define SOAP_TYPE_PointerTo_s0__Restart (29)
#define SOAP_TYPE_PointerTo_s0__Restart (31)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_s0__Restart(struct soap*, _s0__Restart *const*);
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_s0__Restart(struct soap*, _s0__Restart *const*, const char*, const char*);
......@@ -471,7 +545,7 @@ SOAP_FMAC3 _s0__Restart ** SOAP_FMAC4 soap_get_PointerTo_s0__Restart(struct soap
SOAP_FMAC3 _s0__Restart ** SOAP_FMAC4 soap_in_PointerTo_s0__Restart(struct soap*, const char*, _s0__Restart **, const char*);
#ifndef SOAP_TYPE_PointerTo_s0__GetExtStatusResponse
#define SOAP_TYPE_PointerTo_s0__GetExtStatusResponse (26)
#define SOAP_TYPE_PointerTo_s0__GetExtStatusResponse (28)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_s0__GetExtStatusResponse(struct soap*, _s0__GetExtStatusResponse *const*);
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_s0__GetExtStatusResponse(struct soap*, _s0__GetExtStatusResponse *const*, const char*, const char*);
......@@ -480,7 +554,7 @@ SOAP_FMAC3 _s0__GetExtStatusResponse ** SOAP_FMAC4 soap_get_PointerTo_s0__GetExt
SOAP_FMAC3 _s0__GetExtStatusResponse ** SOAP_FMAC4 soap_in_PointerTo_s0__GetExtStatusResponse(struct soap*, const char*, _s0__GetExtStatusResponse **, const char*);
#ifndef SOAP_TYPE_PointerTo_s0__GetExtStatus
#define SOAP_TYPE_PointerTo_s0__GetExtStatus (25)
#define SOAP_TYPE_PointerTo_s0__GetExtStatus (27)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_s0__GetExtStatus(struct soap*, _s0__GetExtStatus *const*);
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_s0__GetExtStatus(struct soap*, _s0__GetExtStatus *const*, const char*, const char*);
......@@ -489,7 +563,7 @@ SOAP_FMAC3 _s0__GetExtStatus ** SOAP_FMAC4 soap_get_PointerTo_s0__GetExtStatus(s
SOAP_FMAC3 _s0__GetExtStatus ** SOAP_FMAC4 soap_in_PointerTo_s0__GetExtStatus(struct soap*, const char*, _s0__GetExtStatus **, const char*);
#ifndef SOAP_TYPE_PointerTo_s0__GetStatusResponse
#define SOAP_TYPE_PointerTo_s0__GetStatusResponse (22)
#define SOAP_TYPE_PointerTo_s0__GetStatusResponse (24)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_s0__GetStatusResponse(struct soap*, _s0__GetStatusResponse *const*);
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_s0__GetStatusResponse(struct soap*, _s0__GetStatusResponse *const*, const char*, const char*);
......@@ -498,7 +572,7 @@ SOAP_FMAC3 _s0__GetStatusResponse ** SOAP_FMAC4 soap_get_PointerTo_s0__GetStatus
SOAP_FMAC3 _s0__GetStatusResponse ** SOAP_FMAC4 soap_in_PointerTo_s0__GetStatusResponse(struct soap*, const char*, _s0__GetStatusResponse **, const char*);
#ifndef SOAP_TYPE_PointerTo_s0__GetStatus
#define SOAP_TYPE_PointerTo_s0__GetStatus (21)
#define SOAP_TYPE_PointerTo_s0__GetStatus (23)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_s0__GetStatus(struct soap*, _s0__GetStatus *const*);
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_s0__GetStatus(struct soap*, _s0__GetStatus *const*, const char*, const char*);
......@@ -507,7 +581,7 @@ SOAP_FMAC3 _s0__GetStatus ** SOAP_FMAC4 soap_get_PointerTo_s0__GetStatus(struct
SOAP_FMAC3 _s0__GetStatus ** SOAP_FMAC4 soap_in_PointerTo_s0__GetStatus(struct soap*, const char*, _s0__GetStatus **, const char*);
#ifndef SOAP_TYPE_PointerToint
#define SOAP_TYPE_PointerToint (20)
#define SOAP_TYPE_PointerToint (22)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToint(struct soap*, int *const*);
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToint(struct soap*, int *const*, const char*, const char*);
......@@ -516,7 +590,7 @@ SOAP_FMAC3 int ** SOAP_FMAC4 soap_get_PointerToint(struct soap*, int **, const c
SOAP_FMAC3 int ** SOAP_FMAC4 soap_in_PointerToint(struct soap*, const char*, int **, const char*);
#ifndef SOAP_TYPE_PointerTostd__string
#define SOAP_TYPE_PointerTostd__string (19)
#define SOAP_TYPE_PointerTostd__string (21)
#endif
SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTostd__string(struct soap*, std::string *const*);
SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTostd__string(struct soap*, std::string *const*, const char*, const char*);
......
......@@ -6,7 +6,7 @@
*/
#include "statussrv_H.h"
SOAP_SOURCE_STAMP("@(#) statussrv_Server.cpp ver 2.7.9d 2007-05-10 13:32:13 GMT")
SOAP_SOURCE_STAMP("@(#) statussrv_Server.cpp ver 2.7.9d 2007-05-21 09:05:52 GMT")
SOAP_FMAC5 int SOAP_FMAC6 soap_serve(struct soap *soap)
......@@ -77,6 +77,8 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve_request(struct soap *soap)
return soap_serve___s0__GetExtStatus(soap);
if (!soap_match_tag(soap, soap->tag, "s0:Restart"))
return soap_serve___s0__Restart(soap);
if (!soap_match_tag(soap, soap->tag, "s0:XttStart"))
return soap_serve___s0__XttStart(soap);
return soap->error = SOAP_NO_METHOD;
}
#endif
......@@ -204,4 +206,45 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___s0__Restart(struct soap *soap)
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___s0__XttStart(struct soap *soap)
{ struct __s0__XttStart soap_tmp___s0__XttStart;
_s0__XttStartResponse s0__XttStartResponse;
s0__XttStartResponse.soap_default(soap);
soap_default___s0__XttStart(soap, &soap_tmp___s0__XttStart);
soap->encodingStyle = NULL;
if (!soap_get___s0__XttStart(soap, &soap_tmp___s0__XttStart, "-s0:XttStart", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = __s0__XttStart(soap, soap_tmp___s0__XttStart.s0__XttStart, &s0__XttStartResponse);
if (soap->error)
return soap->error;
soap_serializeheader(soap);
s0__XttStartResponse.soap_serialize(soap);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| s0__XttStartResponse.soap_put(soap, "s0:XttStartResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
};
if (soap_end_count(soap)
|| soap_response(soap, SOAP_OK)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| s0__XttStartResponse.soap_put(soap, "s0:XttStartResponse", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap->error;
return soap_closesock(soap);
}
/* End of statussrv_Server.cpp */
......@@ -47,4 +47,6 @@ SOAP_FMAC5 int SOAP_FMAC6 __s0__GetExtStatus(struct soap*, _s0__GetExtStatus *s0
SOAP_FMAC5 int SOAP_FMAC6 __s0__Restart(struct soap*, _s0__Restart *s0__Restart, _s0__RestartResponse *s0__RestartResponse);
SOAP_FMAC5 int SOAP_FMAC6 __s0__XttStart(struct soap*, _s0__XttStart *s0__XttStart, _s0__XttStartResponse *s0__XttStartResponse);
#endif
......@@ -27,5 +27,6 @@ class Service
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 __s0__GetExtStatus(_s0__GetExtStatus *s0__GetExtStatus, _s0__GetExtStatusResponse *s0__GetExtStatusResponse) { return soap ? soap_call___s0__GetExtStatus(soap, endpoint, NULL, s0__GetExtStatus, s0__GetExtStatusResponse) : SOAP_EOM; };
virtual int __s0__Restart(_s0__Restart *s0__Restart, _s0__RestartResponse *s0__RestartResponse) { return soap ? soap_call___s0__Restart(soap, endpoint, NULL, s0__Restart, s0__RestartResponse) : SOAP_EOM; };
virtual int __s0__XttStart(_s0__XttStart *s0__XttStart, _s0__XttStartResponse *s0__XttStartResponse) { return soap ? soap_call___s0__XttStart(soap, endpoint, NULL, s0__XttStart, s0__XttStartResponse) : SOAP_EOM; };
};
#endif
......@@ -355,8 +355,53 @@ public:
};
#endif
#ifndef SOAP_TYPE__s0__XttStart
#define SOAP_TYPE__s0__XttStart (19)
/* s0:XttStart */
class SOAP_CMAC _s0__XttStart
{
public:
std::string *OpPlace; /* optional element of type xsd:string */
std::string *Language; /* optional element of type xsd:string */
std::string *Display; /* optional element of type xsd:string */
std::string *ClientRequestHandle; /* optional attribute */
struct soap *soap; /* transient */
public:
virtual int soap_type() const { return 19; } /* = unique id SOAP_TYPE__s0__XttStart */
virtual void soap_default(struct soap*);
virtual void soap_serialize(struct soap*) const;
virtual int soap_put(struct soap*, const char*, const char*) const;
virtual int soap_out(struct soap*, const char*, int, const char*) const;
virtual void *soap_get(struct soap*, const char*, const char*);
virtual void *soap_in(struct soap*, const char*, const char*);
_s0__XttStart() : OpPlace(NULL), Language(NULL), Display(NULL), ClientRequestHandle(NULL), soap(NULL) { }
virtual ~_s0__XttStart() { }
};
#endif
#ifndef SOAP_TYPE__s0__XttStartResponse
#define SOAP_TYPE__s0__XttStartResponse (20)
/* s0:XttStartResponse */
class SOAP_CMAC _s0__XttStartResponse
{
public:
std::string *ClientRequestHandle; /* optional attribute */
struct soap *soap; /* transient */
public:
virtual int soap_type() const { return 20; } /* = unique id SOAP_TYPE__s0__XttStartResponse */
virtual void soap_default(struct soap*);
virtual void soap_serialize(struct soap*) const;
virtual int soap_put(struct soap*, const char*, const char*) const;
virtual int soap_out(struct soap*, const char*, int, const char*) const;
virtual void *soap_get(struct soap*, const char*, const char*);
virtual void *soap_in(struct soap*, const char*, const char*);
_s0__XttStartResponse() : ClientRequestHandle(NULL), soap(NULL) { }
virtual ~_s0__XttStartResponse() { }
};
#endif
#ifndef SOAP_TYPE___s0__GetStatus
#define SOAP_TYPE___s0__GetStatus (24)
#define SOAP_TYPE___s0__GetStatus (26)
/* Operation wrapper: */
struct __s0__GetStatus
{
......@@ -366,7 +411,7 @@ public:
#endif
#ifndef SOAP_TYPE___s0__GetExtStatus
#define SOAP_TYPE___s0__GetExtStatus (28)
#define SOAP_TYPE___s0__GetExtStatus (30)
/* Operation wrapper: */
struct __s0__GetExtStatus
{
......@@ -376,7 +421,7 @@ public:
#endif
#ifndef SOAP_TYPE___s0__Restart
#define SOAP_TYPE___s0__Restart (32)
#define SOAP_TYPE___s0__Restart (34)
/* Operation wrapper: */
struct __s0__Restart
{
......@@ -385,8 +430,18 @@ public:
};
#endif
#ifndef SOAP_TYPE___s0__XttStart
#define SOAP_TYPE___s0__XttStart (38)
/* Operation wrapper: */
struct __s0__XttStart
{
public:
_s0__XttStart *s0__XttStart; /* optional element of type s0:XttStart */
};
#endif
#ifndef SOAP_TYPE_SOAP_ENV__Header
#define SOAP_TYPE_SOAP_ENV__Header (35)
#define SOAP_TYPE_SOAP_ENV__Header (41)
/* SOAP Header: */
struct SOAP_ENV__Header
{
......@@ -396,7 +451,7 @@ public:
#endif
#ifndef SOAP_TYPE_SOAP_ENV__Code
#define SOAP_TYPE_SOAP_ENV__Code (36)
#define SOAP_TYPE_SOAP_ENV__Code (42)
/* SOAP Fault Code: */
struct SOAP_ENV__Code
{
......@@ -407,7 +462,7 @@ public:
#endif
#ifndef SOAP_TYPE_SOAP_ENV__Detail
#define SOAP_TYPE_SOAP_ENV__Detail (38)
#define SOAP_TYPE_SOAP_ENV__Detail (44)
/* SOAP-ENV:Detail */
struct SOAP_ENV__Detail
{
......@@ -419,7 +474,7 @@ public:
#endif
#ifndef SOAP_TYPE_SOAP_ENV__Reason
#define SOAP_TYPE_SOAP_ENV__Reason (39)
#define SOAP_TYPE_SOAP_ENV__Reason (45)
/* SOAP-ENV:Reason */
struct SOAP_ENV__Reason
{
......@@ -429,7 +484,7 @@ public:
#endif
#ifndef SOAP_TYPE_SOAP_ENV__Fault
#define SOAP_TYPE_SOAP_ENV__Fault (40)
#define SOAP_TYPE_SOAP_ENV__Fault (46)
/* SOAP Fault: */
struct SOAP_ENV__Fault
{
......@@ -497,6 +552,8 @@ SOAP_FMAC5 int SOAP_FMAC6 __s0__GetExtStatus(struct soap*, _s0__GetExtStatus *s0
SOAP_FMAC5 int SOAP_FMAC6 __s0__Restart(struct soap*, _s0__Restart *s0__Restart, _s0__RestartResponse *s0__RestartResponse);
SOAP_FMAC5 int SOAP_FMAC6 __s0__XttStart(struct soap*, _s0__XttStart *s0__XttStart, _s0__XttStartResponse *s0__XttStartResponse);
/******************************************************************************\
* *
* Stubs *
......@@ -510,6 +567,8 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_call___s0__GetExtStatus(struct soap *soap, const
SOAP_FMAC5 int SOAP_FMAC6 soap_call___s0__Restart(struct soap *soap, const char *soap_endpoint, const char *soap_action, _s0__Restart *s0__Restart, _s0__RestartResponse *s0__RestartResponse);
SOAP_FMAC5 int SOAP_FMAC6 soap_call___s0__XttStart(struct soap *soap, const char *soap_endpoint, const char *soap_action, _s0__XttStart *s0__XttStart, _s0__XttStartResponse *s0__XttStartResponse);
/******************************************************************************\
* *
* Skeletons *
......@@ -526,6 +585,8 @@ SOAP_FMAC5 int SOAP_FMAC6 soap_serve___s0__GetExtStatus(struct soap*);
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___s0__Restart(struct soap*);
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___s0__XttStart(struct soap*);
#endif
/* End of statussrv_Stub.h */
/* statussrv_msg.h
Generated by wsdl2h 1.2.9d from statussrv.wsdl and typemap.dat
2007-05-10 13:32:06 GMT
2007-05-21 09:05:43 GMT
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:
GPL or Genivia's license for commercial use.
......@@ -102,6 +102,12 @@ class _s0__Restart;
// Forward declaration of class _s0__RestartResponse.
class _s0__RestartResponse;
// Forward declaration of class _s0__XttStart.
class _s0__XttStart;
// Forward declaration of class _s0__XttStartResponse.
class _s0__XttStartResponse;
/// Element "http://www.proview.se/webservices/statussrv/1.0/":GetStatus of complexType.
......@@ -450,6 +456,36 @@ class _s0__RestartResponse
struct soap *soap ;
};
/// Element "http://www.proview.se/webservices/statussrv/1.0/":XttStart of complexType.
/// "http://www.proview.se/webservices/statussrv/1.0/":XttStart is a complexType.
class _s0__XttStart
{ public:
/// Element OpPlace of type xs:string.
std::string* OpPlace 0; ///< Optional element.
/// Element Language of type xs:string.
std::string* Language 0; ///< Optional element.
/// Element Display of type xs:string.
std::string* Display 0; ///< Optional element.
/// Attribute ClientRequestHandle of type xs:string.
@std::string* ClientRequestHandle 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
};
/// Element "http://www.proview.se/webservices/statussrv/1.0/":XttStartResponse of complexType.
/// "http://www.proview.se/webservices/statussrv/1.0/":XttStartResponse is a complexType.
class _s0__XttStartResponse
{ public:
/// Attribute ClientRequestHandle of type xs:string.
@std::string* ClientRequestHandle 0; ///< Optional attribute.
/// A handle to the soap struct that manages this instance (automatically set)
struct soap *soap ;
};
/******************************************************************************\
* *
* Services *
......@@ -477,6 +513,7 @@ class _s0__RestartResponse
- @ref __s0__GetStatus
- @ref __s0__GetExtStatus
- @ref __s0__Restart
- @ref __s0__XttStart
@section Service_ports Endpoints of Binding "Service"
......@@ -648,4 +685,57 @@ int __s0__Restart(
_s0__RestartResponse* s0__RestartResponse ///< Response parameter
);
/******************************************************************************\
* *
* __s0__XttStart *
* *
\******************************************************************************/
/// Operation "__s0__XttStart" of service binding "Service"
/**
Operation details:
- SOAP document/literal style
- SOAP action="s0:XttStart"
C stub function (defined in soapClient.c[pp] generated by soapcpp2):
@code
int soap_call___s0__XttStart(
struct soap *soap,
NULL, // char *endpoint = NULL selects default endpoint for this operation
NULL, // char *action = NULL selects default action for this operation
// request parameters:
_s0__XttStart* s0__XttStart,
// response parameters:
_s0__XttStartResponse* s0__XttStartResponse
);
@endcode
C server function (called from the service dispatcher defined in soapServer.c[pp]):
@code
int __s0__XttStart(
struct soap *soap,
// request parameters:
_s0__XttStart* s0__XttStart,
// response parameters:
_s0__XttStartResponse* s0__XttStartResponse
);
@endcode
C++ proxy class (defined in soapServiceProxy.h):
class Service;
*/
//gsoap s0 service method-style: XttStart document
//gsoap s0 service method-encoding: XttStart literal
//gsoap s0 service method-action: XttStart s0:XttStart
int __s0__XttStart(
_s0__XttStart* s0__XttStart, ///< Request parameter
_s0__XttStartResponse* s0__XttStartResponse ///< Response parameter
);
/* End of statussrv_msg.h */
......@@ -343,3 +343,68 @@ pwr_tStatus statussrv_GetExtStatus( char *nodename, statussrv_sGetExtStatus *res
return sts;
}
pwr_tStatus statussrv_Restart( char *nodename)
{
pwr_tStatus sts = PWR__SUCCESS;
char endpoint[80];
if ( !init_done) {
soap_init( &soap);
init_done = 1;
}
sprintf( endpoint, "http://%s:%d", nodename, port);
_s0__Restart restart;
_s0__RestartResponse restart_response;
restart.ClientRequestHandle = new std::string("StatusSrv Client");
if ( soap_call___s0__Restart( &soap, endpoint, NULL, &restart, &restart_response) ==
SOAP_OK) {
}
else {
sts = PWR__SRVCONNECTION;
}
soap_destroy( &soap);
soap_end( &soap);
return sts;
}
pwr_tStatus statussrv_XttStart( char *nodename, char *opplace, char *lang, char *display)
{
pwr_tStatus sts = PWR__SUCCESS;
char endpoint[80];
if ( !init_done) {
soap_init( &soap);
init_done = 1;
}
sprintf( endpoint, "http://%s:%d", nodename, port);
_s0__XttStart xtt_start;
_s0__XttStartResponse xtt_start_response;
xtt_start.ClientRequestHandle = new std::string("StatusSrv Client");
if ( opplace && strcmp( opplace, "") != 0)
xtt_start.OpPlace = new std::string(opplace);
if ( lang && strcmp( lang, "") != 0)
xtt_start.Language = new std::string(lang);
if ( display && strcmp( display, "") != 0)
xtt_start.Display = new std::string(display);
if ( soap_call___s0__XttStart( &soap, endpoint, NULL, &xtt_start, &xtt_start_response) ==
SOAP_OK) {
}
else {
sts = PWR__SRVCONNECTION;
}
soap_destroy( &soap);
soap_end( &soap);
return sts;
}
/**
* Proview $Id: statussrv_utl.h,v 1.1 2007-05-11 14:59:19 claes Exp $
* Proview $Id: statussrv_utl.h,v 1.2 2007-05-21 14:20:04 claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -53,6 +53,8 @@ typedef struct {
pwr_tStatus statussrv_GetStatus( char *nodename, statussrv_sGetStatus *result);
pwr_tStatus statussrv_GetExtStatus( char *nodename, statussrv_sGetExtStatus *result);
pwr_tStatus statussrv_Restart( char *nodename);
pwr_tStatus statussrv_XttStart( char *nodename, char *opplace, char *lang, char *display);
#ifdef __cplusplus
}
......
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