Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageperl
titleApplying the configuration
my @attrs;
push @attrs, \SOAP::Data->value(
    SOAP::Data->name("key" => "config"),
    SOAP::Data->name("value" => \SOAP::Data->value(
      map {
        SOAP::Data->name("entries" => \SOAP::Data->value(
            map {
                SOAP::Data->name("key" => $_),
                SOAP::Data->name("value" => %config$config{$_})
        ))
    } keys %config
    } keys   ))%config
    ))
);

my $context = SOAP::Data->type("Context")->value(
    \SOAP::Data->value(
        SOAP::Data->name("id" => $cid),
        SOAP::Data->name("userAttributes" =>
            \SOAP::Data->value(
                SOAP::Data->name("entries" => @attrs)
            )
        )
    )
);

my $result = $OXResellerContextService->change($context, $oxaascreds);
if ($result->fault()) {
    print STDERR "Error changing context with name $ctxname:\n" .
        $result->faultstring() . "\n";
    next;
}

...