Popular Posts

Thursday, January 16, 2014

DataPower SOMA Interaction using Java

SOMA Interface is one of the good way to interact with DataPower specially when it comes to admin related activities. 

Here is the Simple Java Code to work with SOMA. 

Code Sends Request to DataPower over HTTPS. It opens a connection, send the SOMA request & print the response received from DataPower.

Note: It creates *insecure" HTTPS connection to DataPower.



Sample SOMA Request

<soapenv:Envelope xmlns:man="http://www.datapower.com/schemas/management" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dp="http://www.datapower.com/schemas/management">

   <soapenv:Header/>
   <soapenv:Body>
      <man:request domain="Developer04">
         <man:get-filestore location="local:"/>
      </man:request>
   </soapenv:Body>
</soapenv:Envelope>

No comments:

Post a Comment