Loading
Bash script to call App Portal APIs

We would like to submit an HTTP GET using curl for createRequest.  When I try it now I get an "Error Processing Questions" error despite sending the recommended value for "strQuestions" from here: https://docs.flexera.com/appportal/2022r1/ag/Content/helplibrary/AP_APIRef_createRequest.htmapiref_3823587126_1124642

Is anyone doing this today?   Could someone provide an example like what is posted here, but with a bash script - https://community.flexera.com/s/App-Broker-Forum/How-do-you-call-the-App-Broker-Web-Service-through-PowerShell/m-p/97754  ?

 

Thank you!!

 

 


  • CharlesW (Flexera Software)

    Matt,

     

         I have no idea if this will help or not.. I really do not do much with cURL, so I generated the below cURL command using postman.. I basically made a SOAP call using postman, and then had Postman convert it to cURL
    1. curl --location --request POST 'http://10.75.204.65/esd/api.asmx?op=createRequest' \--header 'Content-Type: text/xml' \--header 'Authorization: Basic YXBwcG9ydGFsXGNoYXJsZXN3ZWJlcjpYamF2YTEyMw==' \--header 'Cookie: ASP.NET_SessionId=lp3jfhpnbnoryfurjnhoq0nm; RequestedUrl=/esd/api.asmx' \--data-raw '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <createRequest xmlns="http://sccmexpert.local/API"> <iPackageID>1013</iPackageID> <strMachine>sql2016shared</strMachine> <strRequester>appportal\charlesweber</strRequester> <strTargetUser>appportal\CharlesWeber</strTargetUser> <bUseApproval>false</bUseApproval> <bSendEmail>false</bSendEmail> <strQuestions> </strQuestions> </createRequest> </soap:Body></soap:Envelope>'
    Expand Post
    Selected as Best
  • CharlesW (Flexera Software)

    Matt,

     

         I have no idea if this will help or not.. I really do not do much with cURL, so I generated the below cURL command using postman.. I basically made a SOAP call using postman, and then had Postman convert it to cURL
    1. curl --location --request POST 'http://10.75.204.65/esd/api.asmx?op=createRequest' \--header 'Content-Type: text/xml' \--header 'Authorization: Basic YXBwcG9ydGFsXGNoYXJsZXN3ZWJlcjpYamF2YTEyMw==' \--header 'Cookie: ASP.NET_SessionId=lp3jfhpnbnoryfurjnhoq0nm; RequestedUrl=/esd/api.asmx' \--data-raw '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <createRequest xmlns="http://sccmexpert.local/API"> <iPackageID>1013</iPackageID> <strMachine>sql2016shared</strMachine> <strRequester>appportal\charlesweber</strRequester> <strTargetUser>appportal\CharlesWeber</strTargetUser> <bUseApproval>false</bUseApproval> <bSendEmail>false</bSendEmail> <strQuestions> </strQuestions> </createRequest> </soap:Body></soap:Envelope>'
    Expand Post
    Selected as Best

Related  Product Forums


                     â†’ Flexera One



                      â†’ Snow Atlas



                      â†’ FlexNet Manager



                      â†’ Snow License Manager



                       â†’ App Broker


       Need help finding an answer?


        Ask a Question →


Loading
Bash script to call App Portal APIs