Back to index

nordugrid-arc-nox  1.1.0~rc6
test.cpp
Go to the documentation of this file.
00001 #include <typeinfo>
00002 
00003 #include "SOAPEnvelope.h"
00004 #include "PayloadRaw.h"
00005 
00006 const char* xml_str = "\
00007 <?xml version=\"1.0\" encoding=\"UTF-8\"?>\
00008 <SOAP-ENV:Envelope \
00009 xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" \
00010 xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" \
00011 xmlns:a-rex=\"http://www.nordugrid.org/schemas/a-rex\" \
00012 xmlns:bes-factory=\"http://schemas.ggf.org/bes/2006/08/bes-factory\" \
00013 xmlns:jsdl=\"http://schemas.ggf.org/jsdl/2005/11/jsdl\" \
00014 xmlns:wsa=\"http://www.w3.org/2005/08/addressing\" \
00015 xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" \
00016 xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><SOAP-ENV:Body><bes-factory:CreateActivity><bes-factory:ActivityDocument><JobDefinition xmlns=\"http://schemas.ggf.org/jsdl/2005/11/jsdl\"> \
00017     <JobDescription> \
00018         <JobIdentification> \
00019             <JobName>Demo</JobName> \
00020             <JobProject>HPCPInterop</JobProject> \
00021         </JobIdentification> \
00022         <Application> \
00023             <HPCProfileApplication xmlns=\"http://schemas.ggf.org/jsdl/2006/07/jsdl-hpcpa\"> \
00024                 <Executable>/home/interop/demo_job.sh</Executable> \
00025                 <Argument>60</Argument> \
00026                 <Output>demo_job.out.%J</Output> \
00027                 <WorkingDirectory>/home/interop/username</WorkingDirectory> \
00028             </HPCProfileApplication> \
00029         </Application> \
00030         <Resources> \
00031             <TotalCPUCount> \
00032                 <Exact>1</Exact> \
00033             </TotalCPUCount> \
00034         </Resources> \
00035     </JobDescription> \
00036 </JobDefinition></bes-factory:ActivityDocument></bes-factory:CreateActivity></SOAP-ENV:Body></SOAP-ENV:Envelope>";
00037 
00038 int main(void) {
00039   Arc::SOAPEnvelope soap(xml_str);
00040 
00041 
00042 Arc::MessagePayload *m = new Arc::PayloadRaw();
00043 std::cerr<<"m: "<<typeid(m).name()<<std::endl;
00044 std::cerr<<"*m: "<<typeid(*m).name()<<std::endl;
00045 std::cerr<<"MessagePayload: "<<typeid(Arc::MessagePayload).name()<<std::endl;
00046 std::cerr<<"PayloadRawInterface: "<<typeid(Arc::PayloadRawInterface).name()<<std::endl;
00047 std::cerr<<"PayloadRaw: "<<typeid(Arc::PayloadRaw).name()<<std::endl;
00048 
00049   return 0;
00050 }