API Connect

 View Only
Expand all | Collapse all

could not access URL retrieved from UDP property

  • 1.  could not access URL retrieved from UDP property

    Posted Mon September 20, 2021 07:51 PM

    Problem Statement:

     

    Validate-wsdl policy created to validate request message against it. but When I am trying to refer UDP value (the URL value dynamically in the validate custom policy,) it is throwing 'Unable to Open referenced URL' at runtime in gateway logs But when the value is hard-coded it is working fine. Please find the screenshots of the same.

     

     

    Policy Screenshot:

     

     

     

     error message
    =========

     

    policy definition  attached.

     

     

     

     

    Gateway logs

    ==============

     

     

     

     

     

     

     

     

    Command used to upload policy:

    apic policies:create --catalog sandbox --configured-gateway-service api-gateway-service --org erie-testorg --server np-apic-mgmt-api-manager-ibm-cp-pn.apps.nprho.erieinsurance.com --scope catalog validate-wsdl.zip

     

     

     

     

     

    api and organization details



    ------------------------------
    santhoshkumar surisetty
    ------------------------------


  • 2.  RE: could not access URL retrieved from UDP property

    Posted Tue November 23, 2021 04:54 PM
    The validate_2.0.0 policy only allows variable substitution, in your case $(local.parameter.wsdlURL), in the definition property.  You'll need to submit a request for enhancement to allow the xml-schema property to support variable substitution too.  RFEs can be submitted at https://secure.aha.io/session/new?requested_domain=bigblue.

    Regards,
    Steve

    ------------------------------
    Steve Linn
    Senior Consulting I/T Specialist
    IBM
    ------------------------------