cancel
Showing results for 
Search instead for 
Did you mean: 

Portal Group removal Remotely.

Former Member
0 Kudos

Hi,

My requirement is as follows:

After i logon into portal 1 will click on a button which should trigger the action of Removing the role in portal 2 of the logged-in user

SSO is already configured between portal 1 and portal 2

Pls let me know how to achieve the same.

Thanks

vijay

Accepted Solutions (0)

Answers (2)

Answers (2)

siddharth_jain
Active Contributor
0 Kudos

Try exploring user management webservice or fpn

http://scn.sap.com/thread/3517369

Former Member
0 Kudos

HI,

Able to create the webservices.

Currently i am unable to read the webservices from servlet with the following code:

URL url = new URL("http://portal:50000/dynamicweb/userAuthorization?wsdl");

            HttpURLConnection conn = (HttpURLConnection) url.openConnection();

            //conn.setRequestMethod("GET");

            conn.setRequestProperty("Accept", "application/xml");

           

            BufferedReader br = new BufferedReader(new InputStreamReader((conn.getInputStream())));

            String apiOutput = br.readLine();

            System.out.println(apiOutput);

            //conn.disconnect();

            JAXBContext jaxbContext = JAXBContext.newInstance(userAuthorization.class);

            Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();userAuthorization user = (userAuthorization) jaxbUnmarshaller.unmarshal(new StringReader(apiOutput));

            System.out.println(user.getmethod());

The Error am getting is javax.xml.bind.UnmarshalException: unexpected element (uri:"http://schemas.xmlsoap.org/wsdl/", local:"definitions"). Expected elements are (none)

Pls suggest the possible suggestion.

Thanks,

mano.

Former Member
0 Kudos

You must have implemented thath one wrong, test the service with SOAP UI e.g. resp look here: UnmarshalException (Java Platform SE 7 )

cheers

former_member184059
Contributor
0 Kudos

Dear Mano,


If you are using portal federation between 2 portals using FPN, then:


  1. Create an application on portal 2 using UME API and deploy it.
    User Management Functions for Groups - Integrating Security Functions - SAP Library
  2. Create an iview for the application on portal2
  3. Then consumer the iview from portal2 on portal1 using RDL.

Best Regards,
Rajendra

junwu
Active Contributor
0 Kudos

develop a app in portal 2 to do the job

create iview in portal 1 for that app