Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8312255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:06:17+00:00 2026-06-08T20:06:17+00:00

I am attempting to write code to programmatically secure a service on a WSO2

  • 0

I am attempting to write code to programmatically secure a service on a WSO2 Carbon server. I have deconstructed the JSP security code enough to know that it uses the SecurityAdminService to actually execute security operations. I am successfully sending messages to the SecurityAdminService, but get the following error:

<soapenv:Fault xmlns:axis2ns1="http://schemas.xmlsoap.org/soap/envelope/">
    <faultcode>axis2ns1:50977</faultcode>
    <faultstring>Access Denied. Please login first.</faultstring>
    <detail/>
</soapenv:Fault>

This is not really unexpected, but I cannot figure out any way to pass user credentials in this request. The JSP code doesn’t offer much help here, as it does login and credential handling through cookies. Is there a way to handle authorization at the same time as the request? Or do I need to just copy what the JSP pages do and POST to a login URL and copy the session cookie into the request?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T20:06:18+00:00Added an answer on June 8, 2026 at 8:06 pm

    Before calling any of the admin services, you have to first call the AuthenticationAdmin service and get yourself authenticated (against the carbon userstore), as a valid user. You can easily use the AuthenticationAdminStub to call its login method providing your username, password and the hostname/ip of the backend server to get this done. Then you ll be able to successfully proceed with what you’ve already implemented.

    Regards,
    Prabath

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im attempting to write a push server for the iPhone in C#. I have
I have the code below, I'm attempting to write a generic function which takes
I have been attempting to write a VBA Script that can parse out other
I am attempting to write my first Dynamics Crm 2011 plugin. I have therefore
I am attempting to write some code that will expediently process video frames. I
I am attempting to write some Java code that takes an image from a
I am attempting to write some jQuery code that will expand a paragraph when
Alright y'all. I am attempting to write a bit of code that places typographic
I'm attempting to write my first unity script. This is the code for a
I am attempting to write a line of code that will take a line

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.