CA Configuration Automation

Expand all | Collapse all

How to read web services result?

Jump to Best Answer
  • 1.  How to read web services result?

    Posted 06-05-2015 10:00 AM

    Hi team,

     

    I'm trying to read the CCA result from an webservice request but it is not possible. Using the Java code provided I can do this, but just with WS the result is impossible to read.

     

    Here is my request:

    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:SDK">

       <soapenv:Header/>

       <soapenv:Body>

          <urn:getAllServers soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

             <credential xsi:type="xsd:string">my_credencial</credential>

             <attributes xsi:type="urn:string_array">

                <string xsi:type="xsd:string">srvr_uuid</string>

             </attributes>

          </urn:getAllServers>

       </soapenv:Body>

    </soapenv:Envelope>

     

    Here is the result:

     

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

       <soapenv:Body>

          <ns1:getAllServersResponse xmlns:ns1="urn:SDK">

             <getAllServersReturn>H4sIAAAAAAAAAO2UTQ7CIBCF957CCxAQ+kdCegkPYKCdapOKBgYTby9to6ZqN1256I43b3hM+JJR

    Xeux3Gy3ag/uBq4/RoH3K5S6Oh+8uzlFBzk63uqrP12wbHTnQdGXHm2N6FoTEPxYiCWw6O5P1SfE

    DnssPWoMPgaM8stnn5aik6TZ3Djxweoz/Ii2oevokrwQ2np+1HQHGeNZQ3iRMJKAyYnMjCEyNxKg

    TiuZfN2evK7o9N8UfdNYwSwHI2rBmpQJooHLCAYqYjIQxPBE1LKoeKS0gvlPMHohGEWHlfYAb7FC

    htkEAAA=</getAllServersReturn>

          </ns1:getAllServersResponse>

       </soapenv:Body>

    </soapenv:Envelope>

     

    How do I read this result?

     

    Thanks



  • 2.  Re: How to read web services result?
    Best Answer

    Broadcom Employee
    Posted 06-08-2015 09:36 AM

    The web service returns a Java Object (for the most of the methods), so only Java can use the response



  • 3.  Re: How to read web services result?

    Posted 06-08-2015 12:29 PM

    I didn't like to hear that.

     

    If this is the only option, so I would find another way to integrate.


    Thanks