DataPower

Expand all | Collapse all

Catlog Subscription - Metadata response

Jump to Best Answer
  • 1.  Catlog Subscription - Metadata response

    Posted Thu January 14, 2021 07:05 PM
    I'm trying to use Catalog Subscription to monitor DP via WebServices Management Agent. Once I've retrieved the metadata, what are the next steps to use the metadata? I'm not sure where and how that metadata information can be used. I can't find anything in the KnowledgeCentre. 
    https://www.ibm.com/support/knowledgecenter/SS9H2Y_10.0/com.ibm.dp.doc/wsm_catalogdatapullreq.html

    Thank you.

    ------------------------------
    Hunmbal Khan
    ------------------------------


  • 2.  RE: Catlog Subscription - Metadata response

    Posted Fri January 15, 2021 07:54 AM
    Hi,

    can you share the details on what you are trying to achieve? The catalog subscription gives you for example the list of application domains or Web Service Proxies, but the actual monitoring data comes from push/pull subscriptions.

    ------------------------------
    Hermanni Pernaa
    ------------------------------



  • 3.  RE: Catlog Subscription - Metadata response
    Best Answer

    Posted Sat January 16, 2021 07:40 AM
    Edited by Hunmbal Khan Mon January 18, 2021 10:34 AM
    Catalog - request gives you all the resources and the supported operations that are available in the catalog. Using the resource URIs from the catalog response you can then enumerate and then pull the metadata of the resources. If you don't know the names of the application domains beforehand you can first retrieve all the available domains. When you have the domain names you can get for example the list of WSPs in each of the domains. First request to enumerate and then pull the enumeration. An example below:

    ENUMERATE WSPs:

    <env:Envelope
        xmlns:wsman="http://schemas.xmlsoap.org/ws/2005/02/management"
        xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration"
        xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
        xmlns:env="http://www.w3.org/2003/05/soap-envelope">
      <env:Header>
        <wsa:To>/wsman?ResourceURI=(wsman:datapower.com/resources/2005/07/ws-gateway)</wsa:To>
        <wsa:ReplyTo>
          <wsa:Address env:mustUnderstand="true">
            http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
          </wsa:Address>
        </wsa:ReplyTo>
        <wsa:Action env:mustUnderstand="true">
          http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate
        </wsa:Action>
        <wsman:SelectorSet Name="dp-domain">
          <wsman:Selector Name="domain">NAME OF THE APPLICATION DOMAIN</wsman:Selector>
        </wsman:SelectorSet>
        <wsman:MaxEnvelopeSize env:mustUnderstand="true">51200</wsman:MaxEnvelopeSize>
        <wsman:OperationTimeout>PT60.000S</wsman:OperationTimeout>
        <wsman:System>wsman:datapower.com/resources/2005/07/ws-management</wsman:System>
        <wsa:MessageID>xsltmark:catalog-req</wsa:MessageID>
      </env:Header>
      <env:Body>
        <wsen:Enumerate>
          <wsen:Expires>PT5M</wsen:Expires>
        </wsen:Enumerate>
      </env:Body>
    </env:Envelope>​

    PULL THE ENUMERATION:

    <?xml version="1.0" encoding="utf-8"?>
    <env:Envelope 
        xmlns:wsman="http://schemas.xmlsoap.org/ws/2005/02/management"
        xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration"
        xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
        xmlns:env="http://www.w3.org/2003/05/soap-envelope">
      <env:Header>
        <wsa:To>/wsman?ResourceURI=(wsman:datapower.com/resources/2005/07/ws-gateway)</wsa:To>
        <wsa:ReplyTo>
          <wsa:Address env:mustUnderstand="true">
            http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
          </wsa:Address>
        </wsa:ReplyTo>
        <wsa:Action env:mustUnderstand="true">
          http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull
        </wsa:Action>
        <wsman:MaxEnvelopeSize env:mustUnderstand="true">51200</wsman:MaxEnvelopeSize>
        <wsman:OperationTimeout>PT60.000S</wsman:OperationTimeout>
        <wsman:System>wsman:datapower.com/resources/2005/07/ws-management</wsman:System>
        <wsa:MessageID>xsltmark:wsp-pull-req</wsa:MessageID>
      </env:Header>
      <env:Body>
        <wsen:Pull>
          <wsen:EnumerationContext>CONTEXT ID FROM ENUMERATION RESPONSE</wsen:EnumerationContext>
        </wsen:Pull>
      </env:Body>
    </env:Envelope>​



    ------------------------------
    Hermanni Pernaa
    ------------------------------