#include #include "soapPAOL_USCOREWSBindingProxy.h" #include "PAOL_USCOREWSBinding.nsmap" #include "stdsoap2.h" using namespace std; int main(int argc, char *argv[]) { PAOL_USCOREWSBinding proxy; ns2__searchResponse response; ns2__SearchStruct *search_struct = soap_new_ns2__SearchStruct(proxy.soap, 1); search_struct = soap_new_ns2__SearchStruct(proxy.soap, -1); search_struct->field = "year"; search_struct->searchType = "is_exactly"; search_struct->value = "2009"; ArrayOfSearchStruct search; search.__ptr = &search_struct; search.__size = 1; string *type_publi = soap_new_std__string(proxy.soap, -1); type_publi[0] = "REPORT"; ArrayOfStrings typePubli; typePubli.__ptr = &type_publi; typePubli.__size = 1; int code = proxy.ns2__search(&search, &typePubli, true, "date", response); if (code != SOAP_OK) { soap_print_fault(proxy.soap, stderr); return code; } cerr << "T1\n"; if (response.searchResult->__size != 0) { cerr << "T2\n"; cout << response.searchResult->__ptr[0]->title << endl; } cerr << "T3\n"; return 0; }