Hello,
I can't seem to get API-M to work in my perl script (see below) for fedora 3.7. I get:
"ERROR: soap:Client Unexpected wrapper element {http://www.fedora.info/definitions/api/}getDatastreamHistory found. Expected {http://www.fedora.info/definitions/1/0/types/}getDatastreamHistory."
and fedora.log shows the following:
WARN 2014-09-22 14:35:42.517 [http-8080-2]
(PhaseInterceptorChain) Interceptor for
{http://www.fedora.info/definitions/1/0/types/}Fedora-API-M-Service#{http://www.fedora.info/definitions/1/0/types/}getDatastreamHistory
has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Unexpected wrapper
element {http://www.fedora.info/definitions/api/}getDatastreamHistory
found. Expected
{http://www.fedora.info/definitions/1/0/types/}getDatastreamHistory.
The same script works with my older version of fedora (3.2) but not with my new install (3.7). I haven't been able to find a fix for this online. Has anyone encountered this error or know how to fix it? Thank you!
====================================================================
#!/usr/bin/perl
use SOAP::Lite;
my
$management=SOAP::Lite
->
uri('http://www.fedora.info/definitions/api/')
->
proxy('http://USERNAME:PASSWORD@localhost:8080/fedora/services/management');
my $result=$management->getDatastreamHistory("P:100005","DS1");
if
($result->fault) {
die
"ERROR: " . $result->faultcode . " " .
$result->faultstring . " " . $result->faultdetail .
"\n";
}
my @datastreams = $result->paramsall();
foreach my $i ( 0
.. $#datastreams ) {
foreach my
$key (keys %{$datastreams[$i]}) {
print
"\n $i: $key: $datastreams[$i]{$key}";
}
}
====================================================================
--
You received this message because you are subscribed to the Google Groups "Fedora Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fedora-communi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--