Changeset 1770

Show
Ignore:
Timestamp:
08/27/08 18:02:08 (3 months ago)
Author:
xkovah
Message:

end of the day. I had it working when the data was stored in a vector, but the problem with vectors is that there's not a good way to remove elements from the front. So i switched to a list, and also made a new structure to pass back a dynamic array for each of the 3 event types. But it's not working yet.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • capture-mod/trunk/CaptureSoapServer.cpp

    r1769 r1770  
    1414struct soap soap; 
    1515 
    16 std::vector<struct ns__regEvent> regVec
     16std::list<struct ns__regEvent> regList
    1717std::list<struct ns__fileEvent> fileList; 
    1818std::list<struct ns__procEvent> procList; 
     
    116116    sprintf(r.valueData, "%ls", extra.at(3).c_str()); 
    117117 
    118     regVec.push_back(r); 
    119     printf("added one event to regVec. Now there are %d elements in the list\n", regVec.size()); 
     118    regList.push_back(r); 
     119    printf("added one event to regList. Now there are %d elements in the list\n", regList.size()); 
    120120} 
    121121 
     
    332332 
    333333//If maxEventsReturned == -1, then then send as many as possible. 
    334 //If there are no events to send back, it will send back <eventType>No Events</eventType> 
    335 int ns__receiveEventsBase64(struct soap *soap, int maxEventsReturned, struct ns__dynRegArray &result){ 
    336     struct ns__dynRegArray dynArray
    337     dynArray.__ptr = NULL; 
    338     dynArray.__size = 0
    339  
    340     if(regVec.empty()){ 
    341        printf("No events to send back\n"); 
    342         result = dynArray
     334//TODO: Make SOAP::Lite understand unsigned int type, so that this (and other) ints can be set as such 
     335int ns__returnEvents(struct soap *soap, int maxEventsToReturn, struct ns__allEvents &result){ 
     336    struct ns__allEvents all
     337    all.fileEvents = NULL; 
     338    all.procEvents = NULL
     339    all.regEvents = NULL; 
     340 
     341    if(regList.empty() || maxEventsToReturn == 0){ 
     342        printf("No registry events to send back\n")
    343343    } 
    344344    else{ 
    345         dynArray.__size = regVec.size(); //don't want to call the size function more times than we have to 
    346         printf("Sending back %d events\n", (maxEventsReturned < dynArray.__size) ? maxEventsReturned : dynArray.__size); 
    347         struct ns__regEvent * ptr = (struct ns__regEvent *)soap_malloc(soap, dynArray.__size*sizeof(struct ns__regEvent)); 
    348         dynArray.__ptr = ptr; 
    349         for(unsigned int i = 0; i < dynArray.__size; i++){ 
    350             ptr[i] = regVec.at(i); 
    351         } 
    352         result = dynArray; 
    353     } 
    354  
    355     return SOAP_OK; 
    356 
     345        //Set up a dynamic array for each of the event types 
     346        struct ns__dynRegArray dRegArray; 
     347        dRegArray.__ptr = NULL; 
     348        dRegArray.__size = regList.size(); 
     349        all.regEvents = &dRegArray; 
     350 
     351        printf("dRegArray.__size = %d, maxEventsToReturn = %d\n", dRegArray.__size, maxEventsToReturn); 
     352 
     353        //Figure out how many entries we will send back 
     354        if(maxEventsToReturn == -1 || maxEventsToReturn > dRegArray.__size){ 
     355            dRegArray.__size = regList.size(); 
     356        } 
     357        else{ 
     358            dRegArray.__size = maxEventsToReturn; 
     359        } 
     360 
     361        printf("Sending back %d registy events\n",dRegArray.__size); 
     362 
     363        //don't want to call the size function more times than we have to 
     364        struct ns__regEvent * ns__regEventArray = (struct ns__regEvent *)soap_malloc(soap, dRegArray.__size*sizeof(struct ns__regEvent)); 
     365 
     366        dRegArray.__ptr = ns__regEventArray; 
     367 
     368        int * b = (int *) ns__regEventArray; 
     369        for(unsigned int i = 0; i < dRegArray.__size; i++){ 
     370//          ns__regEventArray[i] = regList.pop_front(); 
     371            printf("i = %d\n", i); 
     372            printf("regList.front().time %s, %#x\n", regList.front().time, regList.front().time); 
     373            printf("regList.front().eventType %s, %#x\n", regList.front().eventType, regList.front().eventType); 
     374            printf("regList.front().procPID %d, %#x\n", regList.front().procPID, regList.front().procPID); 
     375            printf("regList.front().procName %s, %#x\n", regList.front().procName, regList.front().procName); 
     376 
     377            memcpy(&ns__regEventArray[i],&regList.front(), sizeof(struct ns__regEvent)); 
     378            regList.pop_front(); 
     379            printf("%#x %#x %#x %#x\n", b[i*8+0], b[i*8+1], b[i*8+2], b[i*8+3]); 
     380        } 
     381    } 
     382 
     383    if(fileList.empty() || maxEventsToReturn == 0){ 
     384        printf("No file events to send back\n"); 
     385    } 
     386    else{ 
     387        struct ns__dynFileArray dFileArray; 
     388        dFileArray.__ptr = NULL; 
     389        dFileArray.__size = fileList.size(); 
     390        all.fileEvents = &dFileArray; 
     391 
     392        //Figure out how many entries we will send back 
     393        if(maxEventsToReturn == -1 || maxEventsToReturn > dFileArray.__size){ 
     394            dFileArray.__size = fileList.size(); 
     395        } 
     396        else{ 
     397            dFileArray.__size = maxEventsToReturn; 
     398        } 
     399 
     400        printf("Sending back %d file events\n",dFileArray.__size); 
     401        struct ns__fileEvent * ns__fileEventArray = (struct ns__fileEvent *)soap_malloc(soap, dFileArray.__size*sizeof(struct ns__fileEvent)); 
     402 
     403        dFileArray.__ptr = ns__fileEventArray; 
     404 
     405        for(unsigned int i = 0; i < dFileArray.__size; i++){ 
     406//          ns__fileEventArray[i] = fileList.pop_front(); 
     407            memcpy(&ns__fileEventArray[i],&fileList.front(), sizeof(struct ns__fileEvent)); 
     408            regList.pop_front(); 
     409        } 
     410    } 
     411 
     412    if(procList.empty() || maxEventsToReturn == 0){ 
     413        printf("No process events to send back\n"); 
     414    } 
     415    else{ 
     416 
     417        struct ns__dynProcArray dProcArray; 
     418        dProcArray.__ptr = NULL; 
     419        dProcArray.__size = procList.size(); 
     420        all.procEvents = &dProcArray; 
     421 
     422        if(maxEventsToReturn == -1 || maxEventsToReturn > dProcArray.__size){ 
     423            dProcArray.__size = regList.size(); 
     424        } 
     425        else{ 
     426            dProcArray.__size = maxEventsToReturn; 
     427        } 
     428 
     429        printf("Sending back %d process events\n",dProcArray.__size); 
     430 
     431        struct ns__procEvent * ns__procEventArray = (struct ns__procEvent *)soap_malloc(soap, dProcArray.__size*sizeof(struct ns__procEvent)); 
     432        dProcArray.__ptr = ns__procEventArray; 
     433 
     434        for(unsigned int i = 0; i < dProcArray.__size; i++){ 
     435//          ns__procEventArray[i] = procList.pop_front(); 
     436            memcpy(&ns__procEventArray[i],&procList.front(), sizeof(struct ns__procEvent)); 
     437            regList.pop_front(); 
     438        } 
     439    } 
     440 
     441    printf("all.regEvents = %#x, all.fileEvents = %#x, all.procEvents = %#x\n", all.regEvents, all.fileEvents, all.procEvents); 
     442    result = all; 
     443 
     444    return SOAP_OK; 
     445
     446 
    357447 
    358448//Thus far, SOAP::Lite hasn't been sending the data correctly, so we never get into this function. 
  • capture-mod/trunk/capture.wsdl

    r1769 r1770  
    6868   </sequence> 
    6969  </complexType> 
     70  <complexType name="dynFileArray"> 
     71   <sequence> 
     72    <element name="item" type="ns:fileEvent" minOccurs="0" maxOccurs="unbounded" nillable="true"/> 
     73   </sequence> 
     74  </complexType> 
     75  <complexType name="dynProcArray"> 
     76   <sequence> 
     77    <element name="item" type="ns:procEvent" minOccurs="0" maxOccurs="unbounded" nillable="true"/> 
     78   </sequence> 
     79  </complexType> 
    7080  <complexType name="s1"> 
    7181   <sequence> 
     
    116126</message> 
    117127 
    118 <message name="sendMIMERequest"> 
    119  <part name="magicNumber" type="xsd:int"/> 
    120 </message> 
    121  
    122 <message name="sendMIMEResponse"> 
    123  <part name="result" type="xsd:int"/> 
    124 </message> 
    125  
    126128<message name="openDocumentRequest"> 
    127129 <part name="fileName" type="xsd:string"/> 
     
    133135</message> 
    134136 
    135 <message name="receiveEventsBase64Request"> 
    136  <part name="maxEventsReturned" type="xsd:int"/> 
    137 </message> 
    138  
    139 <message name="receiveEventsBase64Response"> 
    140  <part name="result" type="ns:dynRegArray"/> 
     137<message name="returnEvents"> 
     138 <part name="maxEventsToReturn" type="xsd:int"/> 
     139</message> 
     140 
     141<message name="allEvents"> 
     142 <part name="regEvents" type="ns:dynRegArray"/> 
     143 <part name="fileEvents" type="ns:dynFileArray"/> 
     144 <part name="procEvents" type="ns:dynProcArray"/> 
     145</message> 
     146 
     147<message name="sendMIMERequest"> 
     148 <part name="magicNumber" type="xsd:int"/> 
     149</message> 
     150 
     151<message name="sendMIMEResponse"> 
     152 <part name="result" type="xsd:int"/> 
    141153</message> 
    142154 
     
    162174  <output message="tns:s1"/> 
    163175 </operation> 
     176 <operation name="openDocument"> 
     177  <documentation>Service definition of function ns__openDocument</documentation> 
     178  <input message="tns:openDocumentRequest"/> 
     179  <output message="tns:openDocumentResponse"/> 
     180 </operation> 
     181 <operation name="returnEvents"> 
     182  <documentation>Service definition of function ns__returnEvents</documentation> 
     183  <input message="tns:returnEvents"/> 
     184  <output message="tns:allEvents"/> 
     185 </operation> 
    164186 <operation name="sendMIME"> 
    165187  <documentation>Service definition of function ns__sendMIME</documentation> 
     
    167189  <output message="tns:sendMIMEResponse"/> 
    168190 </operation> 
    169  <operation name="openDocument"> 
    170   <documentation>Service definition of function ns__openDocument</documentation> 
    171   <input message="tns:openDocumentRequest"/> 
    172   <output message="tns:openDocumentResponse"/> 
    173  </operation> 
    174  <operation name="receiveEventsBase64"> 
    175   <documentation>Service definition of function ns__receiveEventsBase64</documentation> 
    176   <input message="tns:receiveEventsBase64Request"/> 
    177   <output message="tns:receiveEventsBase64Response"/> 
    178  </operation> 
    179191</portType> 
    180192 
     
    217229  </output> 
    218230 </operation> 
     231 <operation name="openDocument"> 
     232  <SOAP:operation style="rpc" soapAction=""/> 
     233  <input> 
     234     <SOAP:body use="encoded" namespace="capture" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> 
     235  </input> 
     236  <output> 
     237     <SOAP:body use="encoded" namespace="capture" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> 
     238  </output> 
     239 </operation> 
     240 <operation name="returnEvents"> 
     241  <SOAP:operation style="rpc" soapAction=""/> 
     242  <input> 
     243     <SOAP:body use="encoded" namespace="capture" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> 
     244  </input> 
     245  <output> 
     246     <SOAP:body use="encoded" namespace="capture" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> 
     247  </output> 
     248 </operation> 
    219249 <operation name="sendMIME"> 
    220   <SOAP:operation style="rpc" soapAction=""/> 
    221   <input> 
    222      <SOAP:body use="encoded" namespace="capture" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> 
    223   </input> 
    224   <output> 
    225      <SOAP:body use="encoded" namespace="capture" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> 
    226   </output> 
    227  </operation> 
    228  <operation name="openDocument"> 
    229   <SOAP:operation style="rpc" soapAction=""/> 
    230   <input> 
    231      <SOAP:body use="encoded" namespace="capture" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> 
    232   </input> 
    233   <output> 
    234      <SOAP:body use="encoded" namespace="capture" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> 
    235   </output> 
    236  </operation> 
    237  <operation name="receiveEventsBase64"> 
    238250  <SOAP:operation style="rpc" soapAction=""/> 
    239251  <input> 
  • capture-mod/trunk/captureGSOAP.h

    r1769 r1770  
    4545struct ns__dynRegArray{ 
    4646    struct ns__regEvent * __ptr; 
    47     int __size; //number of elements 
     47    int __size; //number of elements, not total size 
    4848}; 
    4949 
     50struct ns__dynFileArray{ 
     51    struct ns__fileEvent * __ptr; 
     52    int __size; //number of elements, not total size 
     53}; 
     54 
     55struct ns__dynProcArray{ 
     56    struct ns__procEvent * __ptr; 
     57    int __size; //number of elements, not total size 
     58}; 
     59 
     60struct ns__allEvents{ 
     61    struct ns__dynRegArray * regEvents; 
     62    struct ns__dynFileArray * fileEvents; 
     63    struct ns__dynProcArray * procEvents; 
     64}; 
     65 
     66//A poor substitute for MIME, but it works 
    5067typedef struct s1{ 
    5168    char * data; 
     
    5572 
    5673 
    57 /* 
    58 //TODO: restructure this 
    59 typedef struct s2{ 
    60     char * data; 
    61     char * interEventDelimiter; //potentially multi-byte delimeter used to concatenate events 
    62     char * intraEventDelimiter; //potentially multi-byte delimeter used to concatenate fields of events 
    63     unsigned int numEvents; //For sanity checking 
    64     char moreEvents;    //1 if there is more data which can be sent to the Manager after this, 0 otherwise 
    65                         //It is the Manager's responsibility to request the additional data. 
    66 } ns__receiveEventsStruct; 
    67 */ 
    68  
    69  
    7074int ns__ping(char * a, char ** result); 
    7175int ns__visitURL(char * a, char ** result); 
    7276int ns__sendFileBase64(char * fileName, char * data, unsigned int encodedLength, unsigned int decodedLength, int &result); 
    7377int ns__receiveFileBase64(char * fileName, ns__receiveFileStruct &result); 
     78int ns__openDocument(char * fileName, int waitTimeMillisec, int &result); 
     79int ns__returnEvents(int maxEventsToReturn, struct ns__allEvents &result); 
     80 
     81//Not working 
    7482int ns__sendMIME(int magicNumber, int &result); 
    75 int ns__openDocument(char * fileName, int waitTimeMillisec, int &result); 
    76 //int ns__receiveEventsBase64(int maxEventsReturned, ns__receiveEventsStruct &result); 
    77 int ns__receiveEventsBase64(int maxEventsReturned, struct ns__dynRegArray &result); 
    78  
  • capture-mod/trunk/soapC.cpp

    r1769 r1770  
    88#include "soapH.h" 
    99 
    10 SOAP_SOURCE_STAMP("@(#) soapC.cpp ver 2.7.10 2008-08-27 02:17:09 GMT") 
     10SOAP_SOURCE_STAMP("@(#) soapC.cpp ver 2.7.10 2008-08-27 09:23:06 GMT") 
    1111 
    1212 
     
    162162    case SOAP_TYPE_unsignedInt: 
    163163        return soap_in_unsignedInt(soap, NULL, NULL, "xsd:unsignedInt"); 
    164     case SOAP_TYPE_ns__receiveEventsBase64: 
    165         return soap_in_ns__receiveEventsBase64(soap, NULL, NULL, "ns:receiveEventsBase64"); 
    166     case SOAP_TYPE_ns__receiveEventsBase64Response: 
    167         return soap_in_ns__receiveEventsBase64Response(soap, NULL, NULL, "ns:receiveEventsBase64Response"); 
     164    case SOAP_TYPE_ns__sendMIME: 
     165        return soap_in_ns__sendMIME(soap, NULL, NULL, "ns:sendMIME"); 
     166    case SOAP_TYPE_ns__sendMIMEResponse: 
     167        return soap_in_ns__sendMIMEResponse(soap, NULL, NULL, "ns:sendMIMEResponse"); 
     168    case SOAP_TYPE_ns__returnEvents: 
     169        return soap_in_ns__returnEvents(soap, NULL, NULL, "ns:returnEvents"); 
    168170    case SOAP_TYPE_ns__openDocument: 
    169171        return soap_in_ns__openDocument(soap, NULL, NULL, "ns:openDocument"); 
    170172    case SOAP_TYPE_ns__openDocumentResponse: 
    171173        return soap_in_ns__openDocumentResponse(soap, NULL, NULL, "ns:openDocumentResponse"); 
    172     case SOAP_TYPE_ns__sendMIME: 
    173         return soap_in_ns__sendMIME(soap, NULL, NULL, "ns:sendMIME"); 
    174     case SOAP_TYPE_ns__sendMIMEResponse: 
    175         return soap_in_ns__sendMIMEResponse(soap, NULL, NULL, "ns:sendMIMEResponse"); 
    176174    case SOAP_TYPE_ns__receiveFileBase64: 
    177175        return soap_in_ns__receiveFileBase64(soap, NULL, NULL, "ns:receiveFileBase64"); 
     
    192190    case SOAP_TYPE_s1: 
    193191        return soap_in_s1(soap, NULL, NULL, "s1"); 
     192    case SOAP_TYPE_ns__allEvents: 
     193        return soap_in_ns__allEvents(soap, NULL, NULL, "ns:allEvents"); 
     194    case SOAP_TYPE_ns__dynProcArray: 
     195        return soap_in_ns__dynProcArray(soap, NULL, NULL, "ns:dynProcArray"); 
     196    case SOAP_TYPE_ns__dynFileArray: 
     197        return soap_in_ns__dynFileArray(soap, NULL, NULL, "ns:dynFileArray"); 
    194198    case SOAP_TYPE_ns__dynRegArray: 
    195199        return soap_in_ns__dynRegArray(soap, NULL, NULL, "ns:dynRegArray"); 
     
    202206    case SOAP_TYPE_PointerTostring: 
    203207        return soap_in_PointerTostring(soap, NULL, NULL, "xsd:string"); 
     208    case SOAP_TYPE_PointerTons__dynProcArray: 
     209        return soap_in_PointerTons__dynProcArray(soap, NULL, NULL, "ns:dynProcArray"); 
     210    case SOAP_TYPE_PointerTons__dynFileArray: 
     211        return soap_in_PointerTons__dynFileArray(soap, NULL, NULL, "ns:dynFileArray"); 
     212    case SOAP_TYPE_PointerTons__dynRegArray: 
     213        return soap_in_PointerTons__dynRegArray(soap, NULL, NULL, "ns:dynRegArray"); 
     214    case SOAP_TYPE_PointerTons__procEvent: 
     215        return soap_in_PointerTons__procEvent(soap, NULL, NULL, "ns:procEvent"); 
     216    case SOAP_TYPE_PointerTons__fileEvent: 
     217        return soap_in_PointerTons__fileEvent(soap, NULL, NULL, "ns:fileEvent"); 
    204218    case SOAP_TYPE_PointerTons__regEvent: 
    205219        return soap_in_PointerTons__regEvent(soap, NULL, NULL, "ns:regEvent"); 
     
    225239            return soap_in_unsignedInt(soap, NULL, NULL, NULL); 
    226240        } 
    227         if (!soap_match_tag(soap, t, "ns:receiveEventsBase64")) 
    228         {   *type = SOAP_TYPE_ns__receiveEventsBase64; 
    229             return soap_in_ns__receiveEventsBase64(soap, NULL, NULL, NULL); 
    230         } 
    231         if (!soap_match_tag(soap, t, "ns:receiveEventsBase64Response")) 
    232         {   *type = SOAP_TYPE_ns__receiveEventsBase64Response; 
    233             return soap_in_ns__receiveEventsBase64Response(soap, NULL, NULL, NULL); 
     241        if (!soap_match_tag(soap, t, "ns:sendMIME")) 
     242        {   *type = SOAP_TYPE_ns__sendMIME; 
     243            return soap_in_ns__sendMIME(soap, NULL, NULL, NULL); 
     244        } 
     245        if (!soap_match_tag(soap, t, "ns:sendMIMEResponse")) 
     246        {   *type = SOAP_TYPE_ns__sendMIMEResponse; 
     247            return soap_in_ns__sendMIMEResponse(soap, NULL, NULL, NULL); 
     248        } 
     249        if (!soap_match_tag(soap, t, "ns:returnEvents")) 
     250        {   *type = SOAP_TYPE_ns__returnEvents; 
     251            return soap_in_ns__returnEvents(soap, NULL, NULL, NULL); 
    234252        } 
    235253        if (!soap_match_tag(soap, t, "ns:openDocument")) 
     
    241259            return soap_in_ns__openDocumentResponse(soap, NULL, NULL, NULL); 
    242260        } 
    243         if (!soap_match_tag(soap, t, "ns:sendMIME")) 
    244         {   *type = SOAP_TYPE_ns__sendMIME; 
    245             return soap_in_ns__sendMIME(soap, NULL, NULL, NULL); 
    246         } 
    247         if (!soap_match_tag(soap, t, "ns:sendMIMEResponse")) 
    248         {   *type = SOAP_TYPE_ns__sendMIMEResponse; 
    249             return soap_in_ns__sendMIMEResponse(soap, NULL, NULL, NULL); 
    250         } 
    251261        if (!soap_match_tag(soap, t, "ns:receiveFileBase64")) 
    252262        {   *type = SOAP_TYPE_ns__receiveFileBase64; 
     
    284294        {   *type = SOAP_TYPE_s1; 
    285295            return soap_in_s1(soap, NULL, NULL, NULL); 
     296        } 
     297        if (!soap_match_tag(soap, t, "ns:allEvents")) 
     298        {   *type = SOAP_TYPE_ns__allEvents; 
     299            return soap_in_ns__allEvents(soap, NULL, NULL, NULL); 
     300        } 
     301        if (!soap_match_tag(soap, t, "ns:dynProcArray")) 
     302        {   *type = SOAP_TYPE_ns__dynProcArray; 
     303            return soap_in_ns__dynProcArray(soap, NULL, NULL, NULL); 
     304        } 
     305        if (!soap_match_tag(soap, t, "ns:dynFileArray")) 
     306        {   *type = SOAP_TYPE_ns__dynFileArray; 
     307            return soap_in_ns__dynFileArray(soap, NULL, NULL, NULL); 
    286308        } 
    287309        if (!soap_match_tag(soap, t, "ns:dynRegArray")) 
     
    385407    case SOAP_TYPE_unsignedInt: 
    386408        return soap_out_unsignedInt(soap, tag, id, (const unsigned int *)ptr, "xsd:unsignedInt"); 
    387     case SOAP_TYPE_ns__receiveEventsBase64: 
    388         return soap_out_ns__receiveEventsBase64(soap, tag, id, (const struct ns__receiveEventsBase64 *)ptr, "ns:receiveEventsBase64"); 
    389     case SOAP_TYPE_ns__receiveEventsBase64Response: 
    390         return soap_out_ns__receiveEventsBase64Response(soap, tag, id, (const struct ns__receiveEventsBase64Response *)ptr, "ns:receiveEventsBase64Response"); 
     409    case SOAP_TYPE_ns__sendMIME: 
     410        return soap_out_ns__sendMIME(soap, tag, id, (const struct ns__sendMIME *)ptr, "ns:sendMIME"); 
     411    case SOAP_TYPE_ns__sendMIMEResponse: 
     412        return soap_out_ns__sendMIMEResponse(soap, tag, id, (const struct ns__sendMIMEResponse *)ptr, "ns:sendMIMEResponse"); 
     413    case SOAP_TYPE_ns__returnEvents: 
     414        return soap_out_ns__returnEvents(soap, tag, id, (const struct ns__returnEvents *)ptr, "ns:returnEvents"); 
    391415    case SOAP_TYPE_ns__openDocument: 
    392416        return soap_out_ns__openDocument(soap, tag, id, (const struct ns__openDocument *)ptr, "ns:openDocument"); 
    393417    case SOAP_TYPE_ns__openDocumentResponse: 
    394418        return soap_out_ns__openDocumentResponse(soap, tag, id, (const struct ns__openDocumentResponse *)ptr, "ns:openDocumentResponse"); 
    395     case SOAP_TYPE_ns__sendMIME: 
    396         return soap_out_ns__sendMIME(soap, tag, id, (const struct ns__sendMIME *)ptr, "ns:sendMIME"); 
    397     case SOAP_TYPE_ns__sendMIMEResponse: 
    398         return soap_out_ns__sendMIMEResponse(soap, tag, id, (const struct ns__sendMIMEResponse *)ptr, "ns:sendMIMEResponse"); 
    399419    case SOAP_TYPE_ns__receiveFileBase64: 
    400420        return soap_out_ns__receiveFileBase64(soap, tag, id, (const struct ns__receiveFileBase64 *)ptr, "ns:receiveFileBase64"); 
     
    415435    case SOAP_TYPE_s1: 
    416436        return soap_out_s1(soap, tag, id, (const struct s1 *)ptr, "s1"); 
     437    case SOAP_TYPE_ns__allEvents: 
     438        return soap_out_ns__allEvents(soap, tag, id, (const struct ns__allEvents *)ptr, "ns:allEvents"); 
     439    case SOAP_TYPE_ns__dynProcArray: 
     440        return soap_out_ns__dynProcArray(soap, tag, id, (const struct ns__dynProcArray *)ptr, "ns:dynProcArray"); 
     441    case SOAP_TYPE_ns__dynFileArray: 
     442        return soap_out_ns__dynFileArray(soap, tag, id, (const struct ns__dynFileArray *)ptr, "ns:dynFileArray"); 
    417443    case SOAP_TYPE_ns__dynRegArray: 
    418444        return soap_out_ns__dynRegArray(soap, tag, id, (const struct ns__dynRegArray *)ptr, "ns:dynRegArray"); 
     
    425451    case SOAP_TYPE_PointerTostring: 
    426452        return soap_out_PointerTostring(soap, tag, id, (char **const*)ptr, "xsd:string"); 
     453    case SOAP_TYPE_PointerTons__dynProcArray: 
     454        return soap_out_PointerTons__dynProcArray(soap, tag, id, (struct ns__dynProcArray *const*)ptr, "ns:dynProcArray"); 
     455    case SOAP_TYPE_PointerTons__dynFileArray: 
     456        return soap_out_PointerTons__dynFileArray(soap, tag, id, (struct ns__dynFileArray *const*)ptr, "ns:dynFileArray"); 
     457    case SOAP_TYPE_PointerTons__dynRegArray: 
     458        return soap_out_PointerTons__dynRegArray(soap, tag, id, (struct ns__dynRegArray *const*)ptr, "ns:dynRegArray"); 
     459    case SOAP_TYPE_PointerTons__procEvent: 
     460        return soap_out_PointerTons__procEvent(soap, tag, id, (struct ns__procEvent *const*)ptr, "ns:procEvent"); 
     461    case SOAP_TYPE_PointerTons__fileEvent: 
     462        return soap_out_PointerTons__fileEvent(soap, tag, id, (struct ns__fileEvent *const*)ptr, "ns:fileEvent"); 
    427463    case SOAP_TYPE_PointerTons__regEvent: 
    428464        return soap_out_PointerTons__regEvent(soap, tag, id, (struct ns__regEvent *const*)ptr, "ns:regEvent"); 
     
    450486    switch (type) 
    451487    { 
    452     case SOAP_TYPE_ns__receiveEventsBase64: 
    453         soap_serialize_ns__receiveEventsBase64(soap, (const struct ns__receiveEventsBase64 *)ptr); 
    454         break; 
    455     case SOAP_TYPE_ns__receiveEventsBase64Response: 
    456         soap_serialize_ns__receiveEventsBase64Response(soap, (const struct ns__receiveEventsBase64Response *)ptr); 
     488    case SOAP_TYPE_ns__sendMIME: 
     489        soap_serialize_ns__sendMIME(soap, (const struct ns__sendMIME *)ptr); 
     490        break; 
     491    case SOAP_TYPE_ns__sendMIMEResponse: 
     492        soap_serialize_ns__sendMIMEResponse(soap, (const struct ns__sendMIMEResponse *)ptr); 
     493        break; 
     494    case SOAP_TYPE_ns__returnEvents: 
     495        soap_serialize_ns__returnEvents(soap, (const struct ns__returnEvents *)ptr); 
    457496        break; 
    458497    case SOAP_TYPE_ns__openDocument: 
     
    462501        soap_serialize_ns__openDocumentResponse(soap, (const struct ns__openDocumentResponse *)ptr); 
    463502        break; 
    464     case SOAP_TYPE_ns__sendMIME: 
    465         soap_serialize_ns__sendMIME(soap, (const struct ns__sendMIME *)ptr); 
    466         break; 
    467     case SOAP_TYPE_ns__sendMIMEResponse: 
    468         soap_serialize_ns__sendMIMEResponse(soap, (const struct ns__sendMIMEResponse *)ptr); 
    469         break; 
    470503    case SOAP_TYPE_ns__receiveFileBase64: 
    471504        soap_serialize_ns__receiveFileBase64(soap, (const struct ns__receiveFileBase64 *)ptr); 
     
    495528        soap_serialize_s1(soap, (const struct s1 *)ptr); 
    496529        break; 
     530    case SOAP_TYPE_ns__allEvents: 
     531        soap_serialize_ns__allEvents(soap, (const struct ns__allEvents *)ptr); 
     532        break; 
     533    case SOAP_TYPE_ns__dynProcArray: 
     534        soap_serialize_ns__dynProcArray(soap, (const struct ns__dynProcArray *)ptr); 
     535        break; 
     536    case SOAP_TYPE_ns__dynFileArray: 
     537        soap_serialize_ns__dynFileArray(soap, (const struct ns__dynFileArray *)ptr); 
     538        break; 
    497539    case SOAP_TYPE_ns__dynRegArray: 
    498540        soap_serialize_ns__dynRegArray(soap, (const struct ns__dynRegArray *)ptr); 
     
    509551    case SOAP_TYPE_PointerTostring: 
    510552        soap_serialize_PointerTostring(soap, (char **const*)ptr); 
     553        break; 
     554    case SOAP_TYPE_PointerTons__dynProcArray: 
     555        soap_serialize_PointerTons__dynProcArray(soap, (struct ns__dynProcArray *const*)ptr); 
     556        break; 
     557    case SOAP_TYPE_PointerTons__dynFileArray: 
     558        soap_serialize_PointerTons__dynFileArray(soap, (struct ns__dynFileArray *const*)ptr); 
     559        break; 
     560    case SOAP_TYPE_PointerTons__dynRegArray: 
     561        soap_serialize_PointerTons__dynRegArray(soap, (struct ns__dynRegArray *const*)ptr); 
     562        break; 
     563    case SOAP_TYPE_PointerTons__procEvent: 
     564        soap_serialize_PointerTons__procEvent(soap, (struct ns__procEvent *const*)ptr); 
     565        break; 
     566    case SOAP_TYPE_PointerTons__fileEvent: 
     567        soap_serialize_PointerTons__fileEvent(soap, (struct ns__fileEvent *const*)ptr); 
    511568        break; 
    512569    case SOAP_TYPE_PointerTons__regEvent: 
     
    539596    case SOAP_TYPE_ns__dynRegArray: 
    540597        return (void*)soap_instantiate_ns__dynRegArray(soap, -1, type, arrayType, n); 
     598    case SOAP_TYPE_ns__dynFileArray: 
     599        return (void*)soap_instantiate_ns__dynFileArray(soap, -1, type, arrayType, n); 
     600    case SOAP_TYPE_ns__dynProcArray: 
     601        return (void*)soap_instantiate_ns__dynProcArray(soap, -1, type, arrayType, n); 
     602    case SOAP_TYPE_ns__allEvents: 
     603        return (void*)soap_instantiate_ns__allEvents(soap, -1, type, arrayType, n); 
    541604    case SOAP_TYPE_s1: 
    542605        return (void*)soap_instantiate_s1(soap, -1, type, arrayType, n); 
     
    555618    case SOAP_TYPE_ns__receiveFileBase64: 
    556619        return (void*)soap_instantiate_ns__receiveFileBase64(soap, -1, type, arrayType, n); 
     620    case SOAP_TYPE_ns__openDocumentResponse: 
     621        return (void*)soap_instantiate_ns__openDocumentResponse(soap, -1, type, arrayType, n); 
     622    case SOAP_TYPE_ns__openDocument: 
     623        return (void*)soap_instantiate_ns__openDocument(soap, -1, type, arrayType, n); 
     624    case SOAP_TYPE_ns__returnEvents: 
     625        return (void*)soap_instantiate_ns__returnEvents(soap, -1, type, arrayType, n); 
    557626    case SOAP_TYPE_ns__sendMIMEResponse: 
    558627        return (void*)soap_instantiate_ns__sendMIMEResponse(soap, -1, type, arrayType, n); 
    559628    case SOAP_TYPE_ns__sendMIME: 
    560629        return (void*)soap_instantiate_ns__sendMIME(soap, -1, type, arrayType, n); 
    561     case SOAP_TYPE_ns__openDocumentResponse: 
    562         return (void*)soap_instantiate_ns__openDocumentResponse(soap, -1, type, arrayType, n); 
    563     case SOAP_TYPE_ns__openDocument: 
    564         return (void*)soap_instantiate_ns__openDocument(soap, -1, type, arrayType, n); 
    565     case SOAP_TYPE_ns__receiveEventsBase64Response: 
    566         return (void*)soap_instantiate_ns__receiveEventsBase64Response(soap, -1, type, arrayType, n); 
    567     case SOAP_TYPE_ns__receiveEventsBase64: 
    568         return (void*)soap_instantiate_ns__receiveEventsBase64(soap, -1, type, arrayType, n); 
    569630#ifndef WITH_NOGLOBAL 
    570631    case SOAP_TYPE_SOAP_ENV__Header: 
     
    620681            delete[] (struct ns__dynRegArray*)p->ptr; 
    621682        break; 
     683    case SOAP_TYPE_ns__dynFileArray: 
     684        if (p->size < 0) 
     685            delete (struct ns__dynFileArray*)p->ptr; 
     686        else 
     687            delete[] (struct ns__dynFileArray*)p->ptr; 
     688        break; 
     689    case SOAP_TYPE_ns__dynProcArray: 
     690        if (p->size < 0) 
     691            delete (struct ns__dynProcArray*)p->ptr; 
     692        else 
     693            delete[] (struct ns__dynProcArray*)p->ptr; 
     694        break; 
     695    case SOAP_TYPE_ns__allEvents: 
     696        if (p->size < 0) 
     697            delete (struct ns__allEvents*)p->ptr; 
     698        else 
     699            delete[] (struct ns__allEvents*)p->ptr; 
     700        break; 
    622701    case SOAP_TYPE_s1: 
    623702        if (p->size < 0) 
     
    668747            delete[] (struct ns__receiveFileBase64*)p->ptr; 
    669748        break; 
     749    case SOAP_TYPE_ns__openDocumentResponse: 
     750        if (p->size < 0) 
     751            delete (struct ns__openDocumentResponse*)p->ptr; 
     752        else 
     753            delete[] (struct ns__openDocumentResponse*)p->ptr; 
     754        break; 
     755    case SOAP_TYPE_ns__openDocument: 
     756        if (p->size < 0) 
     757            delete (struct ns__openDocument*)p->ptr; 
     758        else 
     759            delete[] (struct ns__openDocument*)p->ptr; 
     760        break; 
     761    case SOAP_TYPE_ns__returnEvents: 
     762        if (p->size < 0) 
     763            delete (struct ns__returnEvents*)p->ptr; 
     764        else 
     765            delete[] (struct ns__returnEvents*)p->ptr; 
     766        break; 
    670767    case SOAP_TYPE_ns__sendMIMEResponse: 
    671768        if (p->size < 0) 
     
    679776        else 
    680777            delete[] (struct ns__sendMIME*)p->ptr; 
    681         break; 
    682     case SOAP_TYPE_ns__openDocumentResponse: 
    683         if (p->size < 0) 
    684             delete (struct ns__openDocumentResponse*)p->ptr; 
    685         else 
    686             delete[] (struct ns__openDocumentResponse*)p->ptr; 
    687         break; 
    688     case SOAP_TYPE_ns__openDocument: 
    689         if (p->size < 0) 
    690             delete (struct ns__openDocument*)p->ptr; 
    691         else 
    692             delete[] (struct ns__openDocument*)p->ptr; 
    693         break; 
    694     case SOAP_TYPE_ns__receiveEventsBase64Response: 
    695         if (p->size < 0) 
    696             delete (struct ns__receiveEventsBase64Response*)p->ptr; 
    697         else 
    698             delete[] (struct ns__receiveEventsBase64Response*)p->ptr; 
    699         break; 
    700     case SOAP_TYPE_ns__receiveEventsBase64: 
    701         if (p->size < 0) 
    702             delete (struct ns__receiveEventsBase64*)p->ptr; 
    703         else 
    704             delete[] (struct ns__receiveEventsBase64*)p->ptr; 
    705778        break; 
    706779    case SOAP_TYPE_SOAP_ENV__Header: 
     
    15051578#endif 
    15061579 
    1507 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns__receiveEventsBase64(struct soap *soap, struct ns__receiveEventsBase64 *a) 
     1580SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns__sendMIME(struct soap *soap, struct ns__sendMIME *a) 
    15081581{ 
    15091582    (void)soap; (void)a; /* appease -Wall -Werror */ 
    1510     soap_default_int(soap, &a->maxEventsReturned); 
    1511 } 
    1512  
    1513 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns__receiveEventsBase64(struct soap *soap, const struct ns__receiveEventsBase64 *a) 
     1583    soap_default_int(soap, &a->magicNumber); 
     1584} 
     1585 
     1586SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns__sendMIME(struct soap *soap, const struct ns__sendMIME *a) 
    15141587{ 
    15151588    (void)soap; (void)a; /* appease -Wall -Werror */ 
    15161589} 
    15171590 
    1518 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns__receiveEventsBase64(struct soap *soap, const struct ns__receiveEventsBase64 *a, const char *tag, const char *type) 
    1519 { 
    1520     register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns__receiveEventsBase64); 
    1521     if (soap_out_ns__receiveEventsBase64(soap, tag, id, a, type)) 
     1591SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns__sendMIME(struct soap *soap, const struct ns__sendMIME *a, const char *tag, const char *type) 
     1592{ 
     1593    register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns__sendMIME); 
     1594    if (soap_out_ns__sendMIME(soap, tag, id, a, type)) 
    15221595        return soap->error; 
    15231596    return soap_putindependent(soap); 
    15241597} 
    15251598 
    1526 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns__receiveEventsBase64(struct soap *soap, const char *tag, int id, const struct ns__receiveEventsBase64 *a, const char *type) 
    1527 { 
    1528     if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns__receiveEventsBase64), type)) 
    1529         return soap->error; 
    1530     if (soap_out_int(soap, "maxEventsReturned", -1, &a->maxEventsReturned, "")) 
     1599SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns__sendMIME(struct soap *soap, const char *tag, int id, const struct ns__sendMIME *a, const char *type) 
     1600{ 
     1601    if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns__sendMIME), type)) 
     1602        return soap->error; 
     1603    if (soap_out_int(soap, "magicNumber", -1, &a->magicNumber, "")) 
    15311604        return soap->error; 
    15321605    return soap_element_end_out(soap, tag); 
    15331606} 
    15341607 
    1535 SOAP_FMAC3 struct ns__receiveEventsBase64 * SOAP_FMAC4 soap_get_ns__receiveEventsBase64(struct soap *soap, struct ns__receiveEventsBase64 *p, const char *tag, const char *type) 
    1536 { 
    1537     if ((p = soap_in_ns__receiveEventsBase64(soap, tag, p, type))) 
     1608SOAP_FMAC3 struct ns__sendMIME * SOAP_FMAC4 soap_get_ns__sendMIME(struct soap *soap, struct ns__sendMIME *p, const char *tag, const char *type) 
     1609{ 
     1610    if ((p = soap_in_ns__sendMIME(soap, tag, p, type))) 
    15381611        if (soap_getindependent(soap)) 
    15391612            return NULL; 
     
    15411614} 
    15421615 
    1543 SOAP_FMAC3 struct ns__receiveEventsBase64 * SOAP_FMAC4 soap_in_ns__receiveEventsBase64(struct soap *soap, const char *tag, struct ns__receiveEventsBase64 *a, const char *type) 
    1544 { 
    1545     short soap_flag_maxEventsReturned = 1; 
     1616SOAP_FMAC3 struct ns__sendMIME * SOAP_FMAC4 soap_in_ns__sendMIME(struct soap *soap, const char *tag, struct ns__sendMIME *a, const char *type) 
     1617{ 
     1618    short soap_flag_magicNumber = 1; 
    15461619    if (soap_element_begin_in(soap, tag, 0, type)) 
    15471620        return NULL; 
    1548     a = (struct ns__receiveEventsBase64 *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns__receiveEventsBase64, sizeof(struct ns__receiveEventsBase64), 0, NULL, NULL, NULL); 
     1621    a = (struct ns__sendMIME *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns__sendMIME, sizeof(struct ns__sendMIME), 0, NULL, NULL, NULL); 
    15491622    if (!a) 
    15501623        return NULL; 
    1551     soap_default_ns__receiveEventsBase64(soap, a); 
     1624    soap_default_ns__sendMIME(soap, a); 
    15521625    if (soap->body && !*soap->href) 
    15531626    { 
    15541627        for (;;) 
    15551628        {   soap->error = SOAP_TAG_MISMATCH; 
    1556             if (soap_flag_maxEventsReturned && soap->error == SOAP_TAG_MISMATCH) 
    1557                 if (soap_in_int(soap, "maxEventsReturned", &a->maxEventsReturned, "xsd:int")) 
    1558                 {   soap_flag_maxEventsReturned--; 
     1629            if (soap_flag_magicNumber && soap->error == SOAP_TAG_MISMATCH) 
     1630                if (soap_in_int(soap, "magicNumber", &a->magicNumber, "xsd:int")) 
     1631                {   soap_flag_magicNumber--; 
    15591632                    continue; 
    15601633                } 
     
    15701643    } 
    15711644    else 
    1572     {   a = (struct ns__receiveEventsBase64 *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns__receiveEventsBase64, 0, sizeof(struct ns__receiveEventsBase64), 0, NULL); 
     1645    {   a = (struct ns__sendMIME *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns__sendMIME, 0, sizeof(struct ns__sendMIME), 0, NULL); 
    15731646        if (soap->body && soap_element_end_in(soap, tag)) 
    15741647            return NULL; 
    15751648    } 
    1576     if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_maxEventsReturned > 0)) 
     1649    if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_magicNumber > 0)) 
    15771650    {   soap->error = SOAP_OCCURS; 
    15781651        return NULL; 
     
    15811654} 
    15821655 
    1583 SOAP_FMAC5 struct ns__receiveEventsBase64 * SOAP_FMAC6 soap_new_ns__receiveEventsBase64(struct soap *soap, int n) 
    1584 {   return soap_instantiate_ns__receiveEventsBase64(soap, n, NULL, NULL, NULL); 
    1585 } 
    1586  
    1587 SOAP_FMAC5 void SOAP_FMAC6 soap_delete_ns__receiveEventsBase64(struct soap *soap, struct ns__receiveEventsBase64 *p) 
     1656SOAP_FMAC5 struct ns__sendMIME * SOAP_FMAC6 soap_new_ns__sendMIME(struct soap *soap, int n) 
     1657{   return soap_instantiate_ns__sendMIME(soap, n, NULL, NULL, NULL); 
     1658} 
     1659 
     1660SOAP_FMAC5 void SOAP_FMAC6 soap_delete_ns__sendMIME(struct soap *soap, struct ns__sendMIME *p) 
    15881661{   soap_delete(soap, p); 
    15891662} 
    15901663 
    1591 SOAP_FMAC3 struct ns__receiveEventsBase64 * SOAP_FMAC4 soap_instantiate_ns__receiveEventsBase64(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) 
    1592 { 
    1593     DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns__receiveEventsBase64(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); 
    1594     struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns__receiveEventsBase64, n, soap_fdelete); 
     1664SOAP_FMAC3 struct ns__sendMIME * SOAP_FMAC4 soap_instantiate_ns__sendMIME(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) 
     1665{ 
     1666    DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns__sendMIME(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); 
     1667    struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns__sendMIME, n, soap_fdelete); 
    15951668    if (!cp) 
    15961669        return NULL; 
    15971670    if (n < 0) 
    1598     {   cp->ptr = (void*)new struct ns__receiveEventsBase64
    1599         if (size) 
    1600             *size = sizeof(struct ns__receiveEventsBase64); 
    1601     } 
    1602     else 
    1603     {   cp->ptr = (void*)new struct ns__receiveEventsBase64[n]; 
     1671    {   cp->ptr = (void*)new struct ns__sendMIME
     1672        if (size) 
     1673            *size = sizeof(struct ns__sendMIME); 
     1674    } 
     1675    else 
     1676    {   cp->ptr = (void*)new struct ns__sendMIME[n]; 
    16041677        if (!cp->ptr) 
    16051678        {   soap->error = SOAP_EOM; 
     
    16071680        } 
    16081681        if (size) 
    1609             *size = n * sizeof(struct ns__receiveEventsBase64); 
     1682            *size = n * sizeof(struct ns__sendMIME); 
    16101683    } 
    16111684        DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); 
    1612     return (struct ns__receiveEventsBase64*)cp->ptr; 
    1613 } 
    1614 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns__receiveEventsBase64(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) 
    1615 { 
    1616     DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns__receiveEventsBase64 %p -> %p\n", q, p)); 
    1617     *(struct ns__receiveEventsBase64*)p = *(struct ns__receiveEventsBase64*)q; 
    1618 } 
    1619  
    1620 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns__receiveEventsBase64Response(struct soap *soap, struct ns__receiveEventsBase64Response *a) 
     1685    return (struct ns__sendMIME*)cp->ptr; 
     1686} 
     1687SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns__sendMIME(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) 
     1688{ 
     1689    DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns__sendMIME %p -> %p\n", q, p)); 
     1690    *(struct ns__sendMIME*)p = *(struct ns__sendMIME*)q; 
     1691} 
     1692 
     1693SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns__sendMIMEResponse(struct soap *soap, struct ns__sendMIMEResponse *a) 
    16211694{ 
    16221695    (void)soap; (void)a; /* appease -Wall -Werror */ 
    1623     soap_default_ns__dynRegArray(soap, &a->result); 
    1624 } 
    1625  
    1626 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns__receiveEventsBase64Response(struct soap *soap, const struct ns__receiveEventsBase64Response *a) 
     1696    soap_default_int(soap, &a->result); 
     1697} 
     1698 
     1699SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns__sendMIMEResponse(struct soap *soap, const struct ns__sendMIMEResponse *a) 
    16271700{ 
    16281701    (void)soap; (void)a; /* appease -Wall -Werror */ 
    1629     soap_serialize_ns__dynRegArray(soap, &a->result); 
    1630 
    1631  
    1632 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns__receiveEventsBase64Response(struct soap *soap, const struct ns__receiveEventsBase64Response *a, const char *tag, const char *type) 
    1633 
    1634     register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns__receiveEventsBase64Response); 
    1635     if (soap_out_ns__receiveEventsBase64Response(soap, tag, id, a, type)) 
     1702
     1703 
     1704SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns__sendMIMEResponse(struct soap *soap, const struct ns__sendMIMEResponse *a, const char *tag, const char *type) 
     1705
     1706    register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns__sendMIMEResponse); 
     1707    if (soap_out_ns__sendMIMEResponse(soap, tag, id, a, type)) 
    16361708        return soap->error; 
    16371709    return soap_putindependent(soap); 
    16381710} 
    16391711 
    1640 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns__receiveEventsBase64Response(struct soap *soap, const char *tag, int id, const struct ns__receiveEventsBase64Response *a, const char *type) 
    1641 { 
    1642     if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns__receiveEventsBase64Response), type)) 
    1643         return soap->error; 
    1644     if (soap_out_ns__dynRegArray(soap, "result", -1, &a->result, "")) 
     1712SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns__sendMIMEResponse(struct soap *soap, const char *tag, int id, const struct ns__sendMIMEResponse *a, const char *type) 
     1713{ 
     1714    if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns__sendMIMEResponse), type)) 
     1715        return soap->error; 
     1716    if (soap_out_int(soap, "result", -1, &a->result, "")) 
    16451717        return soap->error; 
    16461718    return soap_element_end_out(soap, tag); 
    16471719} 
    16481720 
    1649 SOAP_FMAC3 struct ns__receiveEventsBase64Response * SOAP_FMAC4 soap_get_ns__receiveEventsBase64Response(struct soap *soap, struct ns__receiveEventsBase64Response *p, const char *tag, const char *type) 
    1650 { 
    1651     if ((p = soap_in_ns__receiveEventsBase64Response(soap, tag, p, type))) 
     1721SOAP_FMAC3 struct ns__sendMIMEResponse * SOAP_FMAC4 soap_get_ns__sendMIMEResponse(struct soap *soap, struct ns__sendMIMEResponse *p, const char *tag, const char *type) 
     1722{ 
     1723    if ((p = soap_in_ns__sendMIMEResponse(soap, tag, p, type))) 
    16521724        if (soap_getindependent(soap)) 
    16531725            return NULL; 
     
    16551727} 
    16561728 
    1657 SOAP_FMAC3 struct ns__receiveEventsBase64Response * SOAP_FMAC4 soap_in_ns__receiveEventsBase64Response(struct soap *soap, const char *tag, struct ns__receiveEventsBase64Response *a, const char *type) 
     1729SOAP_FMAC3 struct ns__sendMIMEResponse * SOAP_FMAC4 soap_in_ns__sendMIMEResponse(struct soap *soap, const char *tag, struct ns__sendMIMEResponse *a, const char *type) 
    16581730{ 
    16591731    short soap_flag_result = 1; 
    16601732    if (soap_element_begin_in(soap, tag, 0, type)) 
    16611733        return NULL; 
    1662     a = (struct ns__receiveEventsBase64Response *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns__receiveEventsBase64Response, sizeof(struct ns__receiveEventsBase64Response), 0, NULL, NULL, NULL); 
     1734    a = (struct ns__sendMIMEResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns__sendMIMEResponse, sizeof(struct ns__sendMIMEResponse), 0, NULL, NULL, NULL); 
    16631735    if (!a) 
    16641736        return NULL; 
    1665     soap_default_ns__receiveEventsBase64Response(soap, a); 
     1737    soap_default_ns__sendMIMEResponse(soap, a); 
    16661738    if (soap->body && !*soap->href) 
    16671739    { 
     
    16691741        {   soap->error = SOAP_TAG_MISMATCH; 
    16701742            if (soap_flag_result && soap->error == SOAP_TAG_MISMATCH) 
    1671                 if (soap_in_ns__dynRegArray(soap, "result", &a->result, "ns:dynRegArray")) 
     1743                if (soap_in_int(soap, "result", &