IC5Notice: We have upgraded developerWorks Community to the latest version of IBM Connections. For more information, read our upgrade FAQ.
Topic
  • 1 reply
  • Latest Post - ‏2012-12-03T19:38:33Z by SystemAdmin
SystemAdmin
SystemAdmin
6772 Posts

Pinned topic compare configuration via SOMA

‏2012-11-29T20:30:38Z |
Hi,

I am trying to compare configuration via SOMA here is the SOMA which I am using
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope">
<env:Body>
<dp:request domain="Dev-Domain" xmlnsp="http://www.datapower.com/schemas/management">
<dp:get-diff>
<dp:from>
<dp:export>xx</dp:export>
</dp:from>
<dp:to>
<dpbject class="all-classes" name="all-objects" />
</dp:to>
</dp:get-diff>
</dp:request>
</env:Body>
</env:Envelope>
dp:from - base64 export file before i make the changes.
dp:to - running configuration.
I see below error message:
xmlfirewall (xml-mgmt): Execution of '' aborted: https://xxxxxxxxx:5550/services/mgmt/current: cvc-complex-type 2.4: in element {http://www.datapower.com/schemas/management}request with anonymous type, found <dp:get-diff> (in namespace http://www.datapower.com/schemas/management), but next item should be end-element
Appreciate your help.

Thanks.
Updated on 2012-12-03T19:38:33Z at 2012-12-03T19:38:33Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    6772 Posts

    Re: compare configuration via SOMA

    ‏2012-12-03T19:38:33Z  
    > D_krishna wrote:
    > Hi,
    >
    > I am trying to compare configuration via SOMA here is the SOMA which I am using
    > <?xml version="1.0" encoding="UTF-8"?>
    > <env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope">
    > <env:Body>
    > <dp:request domain="Dev-Domain" xmlnsp="http://www.datapower.com/schemas/management">
    > <dp:get-diff>
    > <dp:from>
    > <dp:export>xx</dp:export>
    > </dp:from>
    > <dp:to>
    > <dpbject class="all-classes" name="all-objects" />
    > </dp:to>
    > </dp:get-diff>
    > </dp:request>
    > </env:Body>
    > </env:Envelope>
    > dp:from - base64 export file before i make the changes.
    > dp:to - running configuration.
    > I see below error message:
    > xmlfirewall (xml-mgmt): Execution of '' aborted: https://xxxxxxxxx:5550/services/mgmt/current: cvc-complex-type 2.4: in element {http://www.datapower.com/schemas/management}request with anonymous type, found <dp:get-diff> (in namespace http://www.datapower.com/schemas/management), but next item should be end-element
    > Appreciate your help.

    I think your SOMA request is not right.

    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Body>
    <dp:request domain="Dev-Domain" xmlns:dp="http://www.datapower.com/schemas/management">
    <dp:get-diff>
    <dp:from>
    <dp:export>base64value</dp:export>
    <dp:object class="?" name="?" recursive="?" persisted="?"/>
    </dp:from>
    <dp:to><!--You have a CHOICE of the next 3 items at this level-->
    <dp:export>xx</dp:export>
    <dp:object class="?" name="?" recursive="?" persisted="?"/>
    </dp:to>
    <dp:object class="?" name="?" recursive="?" from-persisted="?" to-persisted="?"/>
    </dp:get-diff>
    </dp:request>
    </env:Body>
    </env:Envelope>

    Kumar