ASM::Policy::upload_xml_profile_wsdl

Introduced : BIG-IP_v10.1.0
Uploads the wsdl and attaches it to a specific xml profile of a policy.

Prototype

 upload_xml_profile_wsdl(
    in String policy_name,
    in String profile_name,
    in String wsdl_filename,
    in String wsdl_text
);

Parameters

Parameter Type Description
policy_name String The name of the policy.
profile_name String The name of the XML profile.
wsdl_filename String The WSDL filename which will be attached to the XML profile.
wsdl_text String  

Return Type

Type Description
void  

Exceptions

Exception Description
Common::AccessDenied Raised if the client credentials are not valid.
Common::InvalidArgument Raised if one of the arguments is invalid.
Common::OperationFailed Raised if an operation error occurs.

See Also

Warning

The links to the sample code below are remnants of the old DevCentral wiki and will result in a 404 error. For best results, please copy the link text and search the codeshare directly on DevCentral.

Sample Code

A perl simple code:
sub upload_xml_profile_wsdl {
        my $soap = SOAP::Lite
                -> deserializer(LocalDeserializer->new)
                -> uri("urn:iControl:ASM/Policy")
                -> proxy($proxy)
        ;

        open my $in, $_[iControl.3|3] or die "cannot open file $_[iControl.3|3]";
        local $/;
        my $text = <$in>;
        close $in;
        my %file_context;
        my $som = $soap->upload_xml_profile_wsdl(
                SOAP::Data->name(policy_name=>$_[iControl.0|0]),
                SOAP::Data->name(profile_name=>$_[iControl.1|1]),
                SOAP::Data->name(wsdl_filename=>$_[iControl.2|2]),
                SOAP::Data->name(wsdl_text=>$text)
        );
        die ($som->faultcode . ": " . $som->faultstring . "\n")
            if $som->fault;
}
sub set_active_policy {
    my $soap = SOAP::Lite
        -> uri("urn:iControl:ASM/WebApplication")
        -> proxy($proxy)
    ;

    my $som = $soap->set_active_policy(SOAP::Data->name(webapp_names=>$_[iControl.0|0]),SOAP::Data->name(policy_names=>$_[iControl.1|1]));
    die ($som->faultcode . ": " . $som->faultstring . "\n")
        if $som->fault;
    return $som->result;
}

upload_xml_profile_wsdl("foo_default", "foo", "bar.wsdl", "/var/tmp/AmazonWebServices.wsdl", "baz URL" );
set_active_policy([iControl."foo"|"foo"], [iControl."Whitehat-baseline"|"Whitehat-baseline"])

The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.