Getting error response while trying to access REST webservice through Powerbuilder

Hi Team,
I am trying to access a rest webservice through powerbuilder 12.5(.net).The rest webservice is secured through basic authentication.I am passing the userid and password through powerbuilder to acess the service,But its returning an error .But while i am trying to accss the same REST webservice through SOAPUI, i am able to get the response.
Please find the below line of code which i have written in powerbuilder.
p_testcleint2 lp_rest
string ls_string
lp_rest=create p_testcleint2
PBWebHttp.WebClientCredential lsCredential             //configure credentials
lsCredential = create PBWebHttp.WebClientCredential
lsCredential.AccessAuthentication = PBWebHttp.AuthenticationMode.Basic!
lsCredential.Password='Pa$$word1!'
lsCredential.Username='admin'
lp_rest.restConnectionObject.ClientCredential = lsCredential  //add credentials to connection
try
   lp_rest.PostMessage()
catch (System.Exception ee)
  messagebox("Failure",string(ee.Message))
end try
Error i am getting as below :
The remote server returned an error:(401) unauthorized.
Can you please let me know why this error is coming or do i need to any extra paramert in the lsCredential to handle this.
Thanks in advance.
Regards
Subrat

Hi Chris,
Thanks for the reply.
Yes i checked -in fiddler, the basic authentication request is not generating in the fiddler.
In the same Rest service if i turned off the basic authentication then call is happening in Powerbuilder and its displaying in fiddler also.
Regards
Subrat

Similar Messages

  • Getting Error message while trying to access security editior for a IDT universe

    Hi,
    I have created universe in SAP BO4.1, using IDT.
    I have applied row level security for User Groups using Security Editor.
    I have published the changes to repository.
    But when I am trying to re open the security editor for that universe its throwing error:
    "Unable to load security for universe ID ATF10O... (IDT 022123)."
    I am not able to edit row level security, even this security restriction is not restricting data in WebI report.
    Thanks for your response.

    Hi Sonal,
    The local file of Business Security Profile is missing or damaged.
    Resolution
    Use the workflow to reset the problematic Business Security Profile in the filestore. After that, you can manually re-create the new Business Security Profile to make it working.
    Logon to CMC and find the ID of the universe with issue(e.g. 9010).
    Logon to Query Builder (http://<web server>:<port>/AdminTools/).
    Find the detail information about this universe with the following SQL statement:
    select * from CI_APPOBJECTS where SI_ID = 9010
    In the Search Results List, you will find a row with the title of SI_SL_BSPS (Business Security Profile), note down the number of it(e.g. 9016).
    Then search with the following SQL statement in the Query Builder:
    select * from CI_APPOBJECTS where SI_ID = 9016
    In the Search Results List, SI_PATH is the local file address of the Business Security Profile (e.g. frs://Input/a_146/035/000/9106/).
    Then you can back up the file and delete it.
    Select a Business Security Profile without issue and rename it as the deleted one.
    Put the new normal Business Security Profile under the location of the deleted file.
    Then you can delete it in the IDT and recreate it normally.
    Refer: SAP Note - 2080272 - Error "Universe access failure Unable to load security for Universe ID XXX (IDT 022123)" appears when editing a Business Security Profile in Information Design Tool
    --Raji. S

  • Error occured while trying to access desktop:

    Hi All,
    I've search all the threads I can find on here and tried everything they have suggested but to no avail.
    I have a customer desktop which is working in Dev/QA, it's now gone into Production and I get:
    Error occured while trying to access desktop:"[location of desktop]t". The object does not exit or you are not authorized to access it .if this probblem persiste contact your system administrator.
    The object exists as the main_rules will apply the pcd location of the desktop.
    I've made sure the permissions of all the folders and the objects match QA and the Everyone group and eu role has Read and end user assigned.
    Security Zone permissions match and it works if I assign Super Admin to the user.
    Any help appreciated!

    Hello All,
    I just experienced the same. I had all properties set ok, but no acces for the desktop when loggin in.
    So I did what is written above: just changed the Desktop Id and magically I could login/access it
    Probably PCD inconsistencies is the cause of this issue.
    Best Regards,
    Marco

  • "Error #2032" while trying to import BEx query through SAP Netweaver BW connection in Dasboard

    Hi Team,
    BO server version: 4.1 SP3 Edge edition
    Dasboard Version: 4.1 SP3
    BI Version: NW 7.4 SP7 (ABAP only)
    We are getting Error #2032 while trying to import BEx query through SAP
    Netweaver BW connection in dasboard Xcelsius.
    Please suggest to sovle this error.
    Regards,
    Vinay Shrimali

    There are several notes about this error - please see http://service.sap.com/sap/support/notes/1856691
    http://service.sap.com/sap/support/notes/1801130

  • I am using Adobe Reader with paid up service through May 2015.  When I attempt to convert a file from PDF or to PDF, I get the message "An error occured while trying to access the service.  What do I need to do to access the service paid for?

    I am using Adobe Reader with paid up service through May 2015.  When I attempt to convert a file either to PDF or from PDF, I get the error message, "An error occurred while trying to access the service".  What do I need to do to get access to the service I have paid for?

    Hi DeaconTomColorado,
    Please see "Error occurred when trying to access this service" when logging on to Acrobat.com.
    Adobe has just released an update to Adobe Reader, so if you're accessing the service via Reader, please let us know whether the update helps resolve the issue.
    Best,
    Sara

  • I keep getting the message"an error occurred while trying to access the service".  does anyone know what i need to do to resolve this problem.  I am trying to convert apdf file for msword?

    I keep getting the message"an error occurred while trying to access the service".  does anyone know what i need to do to resolve this problem.  I am trying to convert a PDF file for ms word?

    Adobe Reader is free; but you may have paid for the ExportPDF service.
    Contact Adobe Customer Care and click on the Still need help? button to chat with an agent.
    [topic moved to ExportPDF forum]

  • I am trying to convert PDF to word. With my PC  I get a message  "Error occurred while trying to access the service.   It worked fine for a long time.  Has been doing this for days now with all files i try to convert.

    I am trying to convert PDF to Word with Adobe Export PDF on my PC.  I get the message " error occurred while trying to access service".  Has worked fine in past.  Has been doing this for a few days now on all files i try to convert.    Any ideas?? Thanks

    Hi bert090909,
    Are you trying to convert your files from within Adobe Reader? If so, please make sure that you have the most current version by choosing Help > Check for Updates. Earlier versions of Reader could cause the specific error that you're reporting.
    Please let us know how it goes.
    Best,
    Sara

  • I cannot convert my pdf files to word. I keep getting an error message that "an error occurred while trying to access the service"?

    I cannot convert my pdf files to word. I keep getting an error message that "an error occurred while trying to access the service"?

    See if anything in here helps: https://forums.adobe.com/docs/DOC-1831
    [topic moved to ExportPDF forum]

  • When trying to convert PDF to Word I get message "An Error occurred while trying to access this Service"  Never had problems before   how can it be fixed

    When trying to convert PDF to Word I get message "An Error occurred while trying to access this Service"  Never had problems before   how can it be fixed??

    It appears that you have a subscription to one of Adobe's online subscription sersvices.
    Here, you have a user-2-user forum for users of the free desktop PDF viewer Adobe Reader.
    Some resources for following up with question about Adobe online services.
    To contact support for acrobat.com subscription services: 
    https://www.acrobat.com/misc/en/contact-support.html 
    Other links to support:
    http://helpx.adobe.com/contact.html
    http://helpx.adobe.com/support.html
    contact Adobe Customer Care on Twitter @AdobeCare.
    Phone support (for a fee - have credit card ready)
    800-833-6687, Mon - Fri, 5AM - 7PM PT
    Be well...

  • Keep getting error message"an error occured while trying to access the service"

    I convert a pdf file to word every week, but today I keep getting the following error message
    "an error occurred while trying to access the service"
    Why is this happening?

    [topic moved to Acrobat.com Services forum]

  • An error occurred while trying to access the service?

    I'm trying to convert a PDF into Excel but I get the message 'an error occurred while trying to access the service'.
    I have tried logging into my Adobe account online and doing it within there, but once I have exported the file and pressed 'convert' it simply says 'conversion failure' with no explanation.
    My subscription is still valid, so I don't see why the problems?  Has anyone else had this issue and managed to fix it?  I get the error message regardless of whether I'm trying to convert to Word or Excel.
    Any ideas greatly appreciated!!
    Thanks
    Sophie

    Hi SHurcs,
    I'm sorry that you're having such trouble with your ExportPDF subscription. Does this error occur for one particular file, or with any file that you try to convert? What operating system and browser are you using?
    To get us started, here are a few things that you can try:
    In Reader, sign out, and then sign back in.
    Use a supported web browser:  http://www.adobe.com/acom/systemreqs/
    Clear the browser cache.
    If you're using a networked computer, make sure that there are no firewall/proxy settings that prevent you from uploading files to the Internet.
    Make sure that the files you're trying to convert are within the file-size limits for ExportPDF (100 MB).
    If the problem persists, please let us know, and tell us a bit more about the files that you're converting.
    Best,
    Sara

  • An error occured while trying to access the service

    i'm continually having issues with trying to convert my files from PDF to excel.  I keep on getting the error message "An error occured while trying to access the service" with no real explanation as to what is wrong.  I've tried several times on several different computers, logging on and off, changing users...same message everytime.  I have a time sensitive project to complete, and can't get it done if this conversion can't be done.  HELP!

    Hi J,
    Here are a couple documents that may assist you:
    'Getting started' guide
    FAQ
    Let me know if those help!
    Kindest regards, Stacy

  • Error occurred while trying to access framework

    Did some changes to master rule collection u2013 switched from default desktop to light desktop u2013 and when trying to go back, something went wrong!!!
    Error occurred while trying to access framework page: "pcd:portal_content/com.sap.pct/every_user/general/defaultAjaxframeworkContent/com.sap.portal.afpDesktop/frameworkPages/com.sap.portal.AFPpage",The object does not exist or you are not authorized to access it.If this problem persists, contact your system administrator.
    Activated SAP* user and logged in, but still the same issue!
    Tried also the following url
    http://myhost:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fevery_user!2fgeneral!2fcom.sap.portal.frameworkpage
    with the response:
    Error component failed , reason : Access is denied: pcd:portal_content/com.sap.pct/every_user/general/com.sap.portal.frameworkpage - user: Guest, Original Exception : Access is denied: pcd:portal_content/com.sap.pct/every_user/general/com.sap.portal.frameworkpage - user: Guest,
    What next to do?

    Dear Customer,
    Try to access the Default Framework using the following paterns:
    Default framework page: /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fevery_user!2fgeneral!2fcom.sap.portal.frameworkpage
    Desktop & Display rules: /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fadministrator!2fsystem_admin!2fsystem_admin_role!2fcom.sap.portal.system_admin_ws!2fcom.sap.portal.themes!2fcom.sap.portal.portalDisplayRules
    This can be used whenever the desktop assignment to the user which you are logging on with has been removed somehow. If this occurs, the user won't be able to see any content after logging on to the portal and the following error will be shown: "Error occurred while trying to access desktop: "portal_content/themes/sap_chrome". The object does not exist or you are not authorized to access it. If this problem persists, contact your system administrator."
               If this occurs, you can use the address above to restore the desktop rules at least for your user so that you can log on to the portal again with no problems.
    Best Regards,
    Fabio Sarmento

  • Getting error (-1202) when trying to access my wishlist

      getting error (-1202) when trying to access my wishlist   

    this may help from another thread
    byzon2
    This solved my questionRe: iTunes Error (-1202)
    Dec 28, 2012 6:35 PM (in response to crossi85)
    I am having the same issue on my iMac.  It occurred after the last iTunes update.  Apple support offered no real solution.  They tried "clearing" my Wish List, but that didn't work, and advised me to re-install iTunes.  However, I tried clicking the "My Wish List" link on the right side of the iTunes Home page, instead of the one I usually use under the "Manage" column near the bottom of the screen - and it worked!  Furthermore, my Wish List was still intact even though they had supposedly cleared it.  So, in my case, the problem appears to be the iTunes site, and not my computer.  My solution: Try accessing the Wish List from a different link within iTunes.

  • ExportPDF - "an error occurred while trying to access the service"

    I have never had a problem using ExportPDF in the past but recently I am getting an error message saying "an error occurred while trying to access the service".  I am using the same browser, Chrome, that I have always used.  Please tell me how to fix this.

    Hi billbeaton,
    Please log out, clear the browser cache, and then reload https://cloud.acrobat.com. If that doesn't work, please try logging in using a different web browser (simply as a test).
    Has anything changed on your system since you were last able to log in to Acrobat.com? Are you using Mac OS or Windows?
    Best,
    Sara

Maybe you are looking for

  • Can I return my new laptop to lenovo because of its quality problem?

    IBM is one of the best brand as I know, especially showing us not only high quality of products but the service. But now one thing happened to me, if I don't have this case I can't believe. I found there is something with the laptop(T61 Model 7658CTO

  • Organize iTunes file list by Directory Structure instead of artist/album?

    Hello, I have searched for different audio players for os x which might have this feature but so far have had no luck. What I'm looking for is a feature similar to that of foobar2000 for win32 where I can organize my music by directory structure with

  • Converting DWF to PDF using right click option cuts off right side.

    I have 24x36 dwf files that I need to convert to PDF. (Printing Landscape) When using the right click option in explorer, "Convert to Adobe PDF", the conversion cuts off about 6" on the right side of the page. (I can "Print" inside my DWF viewer to A

  • No option to turn on match on 5s

    I have an iPhone 5s on iOs 7.1, I subscribed to Match and the subscription went through. Did the Match setup on my PC, no problems. Trying to turn it on on the phone, but when I go settings>Music there is no option to turn it on and there is still a

  • Printing report in calendar format

    I need to print a report in a calendar format with monthly view in Reports 9i. I am aware of Portal and APEX but its not an option. There is a table which consists data for several months, and I am trying to use oracle forms as parameter form to pass