#!/usr/bin/perl use HTTP::Cookies; use strict; use LWP::UserAgent; { my $ua = new LWP::UserAgent; $ua->cookie_jar(HTTP::Cookies->new()); push @{$ua->requests_redirectable}, 'POST'; my $search_command = "http://wok-ws.isiknowledge.com/esti/soap/SearchRetrieve"; my $content = 'DIIDWTS=(create)11'; my $header = new HTTP::Headers ( 'Content-Type' => 'text/xml; charset=utf-8', 'User-Agent' => 'PHP SOAP 0.1', 'Content-Type' => 'text/xml; charset=utf-8', 'SOAPAction' => "http://wok-ws.isiknowledge.com/esti/soap/SearchRetrieve?wsdl#search", ); my $req = new HTTP::Request('POST',$search_command,$header,$content); my $res = $ua->request($req); print $req->as_string."\n"; my $response = $res->headers_as_string(); my $response .= $res->content; print "---response---\n$response\n"; } #### #!/exlibris/metalib/m4_b/product/bin/perl sub BEGIN { unshift (@INC, $ENV{'aleph_ext'}); unshift (@INC, "$ENV{'aleph_product'}"."/perl/lib/site_perl/5.005"); unshift (@INC, "$ENV{'aleph_product'}"."/perl/lib/site_perl/5.005/i686-linux"); } use SOAP::Lite+trace => 'debug'; my $soap_request = SOAP::Lite->new(); $soap_request->uri("http://wok-ws.isiknowledge.com/esti/soap/SearchRetrieve?wsdl"); $soap_request->proxy("http://wok-ws.isiknowledge.com/esti/soap/SearchRetrieve"); $service = 'search'; my $soap_response = $soap_request->$service( SOAP::Data->name(databaseId => 'DIIDW'), SOAP::Data->name(query => 'TS=(create)'), SOAP::Data->name(editions => ""), SOAP::Data->name(firstRec => '1'), SOAP::Data->name(numRecs => '1'), );