addSrst - AXL 8.5

Version 1
    This document was generated from CDN thread

    Created by: Jean-Paul Debreyel on 27-09-2012 08:50:12 AM
    I'm trying to add an SRST reference to a CUCM 8.6.1 using AXL 8.5, perl and the perl module SOAP::Lite and I'm getting te following fault response
     
    soapenv:Server,org.apache.xmlbeans.impl.values.XmlIntImpl cannot be cast to com.cisco.www.axl.api._8_0.XInteger
     
    Creating an Enduser with addUser, a CSS using addCss and a Route Partition with addRoutePartition works without problem proving that AXL is enabled, and that the session setup and authentication works.
    Creating the SRST reference via soapUI 4.50 works.
     
    This is part of  the perl code I'm using;
     
    use MIME::Base64;
    use Crypt::SSLeay;
    use SOAP::Lite;
    use Data:umper;

    $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;

    my $cucmip = '10.2.1.180';
    my $axl_port = '8443';
    my $ver = '8.5';
    my $axltoolkit = "http://www.cisco.com/AXL/API/$ver";

    my $cm = new SOAP::Lite
        -> encodingStyle('')
        -> readable(1)
        -> on_action(sub { return "CUCMB ver=$ver"; })
        -> proxy("https://$cucmip:$axl_port/axl/")
        -> uri("${axltoolkit}")
        ;

    $cm = Login($cm,$AxlUserName,$AxlPassword);
    sub Login
    {
     $cm->transport->http_request->header (
     'Authorization' => 'Basic ' . encode_base64("$AxlUserName:$AxlPassword", ''));
     return $cm;
    }
    my $SrstName = 'TEST_SRST';
    my $SrstIpAddress = '10.2.1.100';
    my $SrstPort = '2000';
    my $SrstSipPort = '5060';
    my $method3 = SOAP:ata->name('addSrst')->attr({xmlns => "http://www.cisco.com/AXL/API/8.5"});
        my @params3 = ( SOAP:ata->attr({xmlns => ''})->name("srst" => \SOAP:ata->value(
                                SOAP:ata->name('name' => "$SrstName"),
                                SOAP:ata->name('port' => "$SrstPort"),
                                SOAP:ata->name('ipAddress' => "$SrstIpAddress"),
                                SOAP:ata->name('SipPort' => "$SrstSipPort")
                            )));
        my $res3 = $cm->call($method3 => @params3);
        if ($res3->fault) {
            my $Error = join ',', $res3->faultcode, $res3->faultstring;
            LogIt ("!", "      Creation SRST reference, $SrstName --> Failed!");
            LogIt ("!", "      ### Fault message ### \n    $Error");
        }
        else {
            LogIt ("I", "      Creation SRST reference, $SrstName --> Successful");
        }
     
    Note that if I create the SRST reference manualy, a getSrst and updateSrst works using the same script.
     
    enabling the trace, use SOAP::Lite +trace=>"all", gives following output
    SOAP:ata::new: ()
    SOAP:ata::new: ()
    SOAP:ata::new: ()
    SOAP:ata::new: ()
    SOAP:ata::new: ()
    SOAP:ata::new: ()
    SOAP:ata::new: ()
    SOAP::Lite::call: ()
    SOAP::Serializer::envelope: ()
    SOAP::Serializer::envelope: SOAP:ata=HASH(0x1e359a0) SOAP:ata=HASH(0x226b7c0)
    SOAP:ata::new: ()
    SOAP:ata:ESTROY: ()
    SOAP:ata:ESTROY: ()
    SOAP:ata:ESTROY: ()
    SOAP:ata::new: ()
    SOAP:ata::new: ()
    SOAP:ata::new: ()
    SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x2285a58)
    SOAP::Transport::HTTP::Client::send_receive: POST https://10.2.1.180:8443/axl/ HTTP/1.1
    Accept: text/xml
    Accept: multipart/*
    Accept: application/soap
    Authorization: Basic Y2NtYWRtaW46QzFsbE1ncg==
    Content-Length: 594
    Content-Type: text/xml; charset=utf-8
    SOAPAction: CUCMB ver=8.5

    <?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <addSrst xmlns="http://www.cisco.com/AXL/API/8.5">
          <srst xmlns="">
            <name xsi:type="xsd:string">TEST_SRST</name>

            <port xsi:type="xsd:int">2000</port>

            <ipAddress xsi:type="xsd:string">10.2.1.100</ipAddress>

            <SipPort xsi:type="xsd:int">5060</SipPort>
          </srst>
        </addSrst>
      </soap:Body>
    </soap:Envelope>
    SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x2286040)
    SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal Server Error
    Connection: close
    Date: Thu, 27 Sep 2012 13:42:53 GMT
    Server:
    Content-Length: 559
    Content-Type: text/xml;charset=UTF-8
    Client-Date: Thu, 27 Sep 2012 13:43:10 GMT
    Client-Peer: 10.2.1.180:8443
    Client-Response-Num: 1
    Client-SSL-Cert-Issuer: /C=BE/O=XXX/OU=IPTEL/CN=ccm861p/ST=BELGIUM/L=BXL
    Client-SSL-Cert-Subject: /C=BE/O=XXX/OU=IPTEL/CN=ccm861p/ST=BELGIUM/L=BXL
    Client-SSL-Cipher: AES256-SHA
    Client-SSL-Socket-Class: IO::Socket::SSL
    Client-SSL-Warning: Peer certificate not verified
    Set-Cookie: JSESSIONIDSSO=A25E458FFCADAA8E3DD6210CD16928DA; Path=/; Secure
    Set-Cookie: JSESSIONID=57DDCD4A9C86CAB0695041EF5FB02ACF; Path=/axl; Secure

    <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>org.apache.xmlbeans.impl.values.XmlIntImpl cannot be cast to com.cisco.www.axl.api._8_0.XInteger</faultstring><detail><axlError><axlcode>-1</axlcode><axlmessage>org.apache.xmlbeans.impl.values.XmlIntImpl cannot be cast to com.cisco.www.axl.api._8_0.XInteger</axlmessage><request>addSrst</request></axlError></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
    SOAP:eserializer::deserialize: ()
    SOAP:arser::decode: ()
    SOAP::SOM::new: ()

    Is there someone who can help me with this issue?