cancel
Showing results for 
Search instead for 
Did you mean: 

UMWebService Error

Former Member
0 Kudos

Hello:

I need to get portal's logged user data.

I don't have the SSO between the WAS and Portal, so if I use <b>sap.authentication</b> my webdynpro won't see the logged user. Searching around I found the UMWebService, so I developed a mini webdynpro to test it. This is the rrror I get:

Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (407) Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. ). The requested URL was:"http://host:port/irj/servlet/prt/soap/UMWebService?style=rpc_enc"

If I opend http://host:port/irj/servlet/prt/soap/UMWebService?style=rpc_enc in a browser, the following is display:

<?xml version="1.0" encoding="UTF-8" ?>

- <!-- WSDL File generated by the SAP PORTAL ECLIPSE PLUGINS

-->

- <!-- VERSION : 6.3.20040121

-->

- <wsdl:definitions name="UMWebService" targetNamespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" xmlns:tns3="http://api.security.sap.com" xmlns:http="http://schemas.xmlsoap.org/soap/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:intf="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime" xmlns:tns0="http://usermanagement.webservice.prt.portal.sapportals.com" xmlns:tns5="http://umap.api.security.sap.com" xmlns:tns4="http://lang.java" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns1="http://prt.java.soap/schemas" xmlns="http://schemas.xmlsoap.org/wsdl/">

- <types>

- <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://usermanagement.webservice.prt.portal.sapportals.com">

- <complexType name="IUserInfo">

- <sequence>

<element name="DisplayName" nillable="true" type="xsd:string" />

<element name="Locale" nillable="true" type="tns1:Locale" />

<element name="Title" nillable="true" type="xsd:string" />

<element name="Groups" nillable="true" type="intf:ArrayOf_xsd_string" />

<element name="UniqueName" nillable="true" type="xsd:string" />

<element name="Roles" nillable="true" type="intf:ArrayOf_xsd_string" />

<element name="Email" nillable="true" type="intf:ArrayOf_xsd_string" />

<element name="UniqueId" nillable="true" type="xsd:string" />

<element name="FirstName" nillable="true" type="xsd:string" />

<element name="LastName" nillable="true" type="xsd:string" />

<element name="Company" nillable="true" type="xsd:string" />

</sequence>

</complexType>

- <complexType name="IGroupInfo">

- <sequence>

<element name="DisplayName" nillable="true" type="xsd:string" />

<element name="Description" nillable="true" type="xsd:string" />

<element name="UniqueName" nillable="true" type="xsd:string" />

<element name="Roles" nillable="true" type="intf:ArrayOf_xsd_string" />

<element name="UniqueId" nillable="true" type="xsd:string" />

<element name="UserMembers" nillable="true" type="intf:ArrayOf_xsd_string" />

<element name="GroupMembers" nillable="true" type="intf:ArrayOf_xsd_string" />

</sequence>

</complexType>

- <complexType name="IRoleInfo">

- <sequence>

<element name="DisplayName" nillable="true" type="xsd:string" />

<element name="Description" nillable="true" type="xsd:string" />

<element name="UniqueName" nillable="true" type="xsd:string" />

<element name="UniqueId" nillable="true" type="xsd:string" />

<element name="UserMembers" nillable="true" type="intf:ArrayOf_xsd_string" />

<element name="GroupMembers" nillable="true" type="intf:ArrayOf_xsd_string" />

</sequence>

</complexType>

</schema>

- <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://prt.java.soap/schemas">

<element name="Locale" nillable="true" type="tns1:Locale" />

- <complexType name="Locale">

- <sequence>

<element name="language" type="xsd:string" nillable="false" />

<element name="country" type="xsd:string" nillable="false" />

<element name="variant" type="xsd:string" />

</sequence>

</complexType>

- <complexType name="PortalSOAPFault">

- <sequence>

<element name="stackTrace" minOccurs="0" maxOccurs="1" type="xsd:string" />

</sequence>

</complexType>

<element name="Map" nillable="true" type="tns1:Map" />

- <complexType name="Map">

- <sequence>

<element name="Keys" type="intf:ArrayOf_xsd_anyType" />

<element name="Values" type="intf:ArrayOf_xsd_anyType" />

</sequence>

</complexType>

</schema>

- <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService">

- <complexType name="ArrayOf_xsd_string">

- <complexContent>

- <restriction base="SOAP-ENC:Array">

<attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]" />

</restriction>

</complexContent>

</complexType>

- <complexType name="ArrayOf_xsd_anyType">

- <complexContent>

- <restriction base="SOAP-ENC:Array">

<attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:anyType[]" />

</restriction>

</complexContent>

</complexType>

</schema>

- <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://api.security.sap.com">

- <complexType name="UMException">

- <complexContent>

- <extension base="tns1:PortalSOAPFault">

- <sequence>

<element name="NestedException" nillable="true" type="tns4:Throwable" />

</sequence>

</extension>

</complexContent>

</complexType>

</schema>

- <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://lang.java">

- <complexType name="Throwable">

- <complexContent>

- <extension base="tns1:PortalSOAPFault">

<sequence />

</extension>

</complexContent>

</complexType>

</schema>

- <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://umap.api.security.sap.com">

- <complexType name="NoLogonDataAvailableException">

- <complexContent>

- <extension base="tns1:PortalSOAPFault">

- <sequence>

<element name="NestedException" nillable="true" type="tns4:Throwable" />

</sequence>

</extension>

</complexContent>

</complexType>

</schema>

</types>

- <wsdl:message name="UMException">

<wsdl:part name="error" type="tns3:UMException" />

</wsdl:message>

- <wsdl:message name="getUsersOfRoleResponse">

<wsdl:part name="response" type="intf:ArrayOf_xsd_string" />

</wsdl:message>

- <wsdl:message name="getUserRequest">

<wsdl:part name="getUser_1_param2" type="xsd:string" />

</wsdl:message>

- <wsdl:message name="getRoleByUniqueNameResponse">

<wsdl:part name="response" type="tns0:IRoleInfo" />

</wsdl:message>

- <wsdl:message name="getUserResponse">

<wsdl:part name="response" type="tns0:IUserInfo" />

</wsdl:message>

- <wsdl:message name="getGroupsOfRoleRequest">

<wsdl:part name="getGroupsOfRole_2_param36" type="xsd:string" />

<wsdl:part name="getGroupsOfRole_2_param37" type="xsd:boolean" />

</wsdl:message>

- <wsdl:message name="NoLogonDataAvailableException">

<wsdl:part name="error" type="tns5:NoLogonDataAvailableException" />

</wsdl:message>

- <wsdl:message name="modifyUserRequest">

<wsdl:part name="modifyUser_9_param5" type="xsd:string" />

<wsdl:part name="modifyUser_9_param6" type="xsd:string" />

<wsdl:part name="modifyUser_9_param7" type="xsd:string" />

<wsdl:part name="modifyUser_9_param8" type="xsd:string" />

<wsdl:part name="modifyUser_9_param9" type="xsd:string" />

<wsdl:part name="modifyUser_9_param10" type="xsd:string" />

<wsdl:part name="modifyUser_9_param11" type="xsd:string" />

<wsdl:part name="modifyUser_9_param12" type="xsd:string" />

<wsdl:part name="modifyUser_9_param13" type="xsd:string" />

</wsdl:message>

- <wsdl:message name="searchGroupsRequest">

<wsdl:part name="searchGroups_4_param23" type="xsd:string" />

<wsdl:part name="searchGroups_4_param24" type="xsd:int" />

<wsdl:part name="searchGroups_4_param25" type="xsd:boolean" />

<wsdl:part name="searchGroups_4_param26" type="xsd:int" />

</wsdl:message>

- <wsdl:message name="searchUsersRequest">

<wsdl:part name="searchUsers_4_param14" type="xsd:string" />

<wsdl:part name="searchUsers_4_param15" type="xsd:int" />

<wsdl:part name="searchUsers_4_param16" type="xsd:boolean" />

<wsdl:part name="searchUsers_4_param17" type="xsd:int" />

</wsdl:message>

- <wsdl:message name="searchUsersResponse">

<wsdl:part name="response" type="intf:ArrayOf_xsd_string" />

</wsdl:message>

- <wsdl:message name="getGroupByUniqueNameResponse">

<wsdl:part name="response" type="tns0:IGroupInfo" />

</wsdl:message>

- <wsdl:message name="getUserEmailResponse">

<wsdl:part name="response" type="intf:ArrayOf_xsd_string" />

</wsdl:message>

- <wsdl:message name="getUsersOfGroupResponse">

<wsdl:part name="response" type="intf:ArrayOf_xsd_string" />

</wsdl:message>

- <wsdl:message name="getUsersOfRoleRequest">

<wsdl:part name="getUsersOfRole_2_param34" type="xsd:string" />

<wsdl:part name="getUsersOfRole_2_param35" type="xsd:boolean" />

</wsdl:message>

- <wsdl:message name="searchGroupsResponse">

<wsdl:part name="response" type="intf:ArrayOf_xsd_string" />

</wsdl:message>

- <wsdl:message name="getGroupsOfUserResponse">

<wsdl:part name="response" type="intf:ArrayOf_xsd_string" />

</wsdl:message>

- <wsdl:message name="getUserEmailRequest">

<wsdl:part name="getUserEmail_1_param22" type="xsd:string" />

</wsdl:message>

- <wsdl:message name="getUsersOfGroupRequest">

<wsdl:part name="getUsersOfGroup_2_param27" type="xsd:string" />

<wsdl:part name="getUsersOfGroup_2_param28" type="xsd:boolean" />

</wsdl:message>

- <wsdl:message name="getRolesOfUserResponse">

<wsdl:part name="response" type="intf:ArrayOf_xsd_string" />

</wsdl:message>

- <wsdl:message name="getGroupsOfRoleResponse">

<wsdl:part name="response" type="intf:ArrayOf_xsd_string" />

</wsdl:message>

- <wsdl:message name="getMappingRequest">

<wsdl:part name="getMapping_2_param3" type="xsd:string" />

<wsdl:part name="getMapping_2_param4" type="xsd:string" />

</wsdl:message>

- <wsdl:message name="getGroupByUniqueNameRequest">

<wsdl:part name="getGroupByUniqueName_1_param29" type="xsd:string" />

</wsdl:message>

- <wsdl:message name="getRolesOfUserRequest">

<wsdl:part name="getRolesOfUser_2_param20" type="xsd:string" />

<wsdl:part name="getRolesOfUser_2_param21" type="xsd:boolean" />

</wsdl:message>

- <wsdl:message name="getMappingResponse">

<wsdl:part name="response" type="tns1:Map" />

</wsdl:message>

- <wsdl:message name="searchRolesRequest">

<wsdl:part name="searchRoles_4_param30" type="xsd:string" />

<wsdl:part name="searchRoles_4_param31" type="xsd:int" />

<wsdl:part name="searchRoles_4_param32" type="xsd:boolean" />

<wsdl:part name="searchRoles_4_param33" type="xsd:int" />

</wsdl:message>

- <wsdl:message name="modifyUserResponse">

<wsdl:part name="response" type="xsd:boolean" />

</wsdl:message>

- <wsdl:message name="getGroupsOfUserRequest">

<wsdl:part name="getGroupsOfUser_2_param18" type="xsd:string" />

<wsdl:part name="getGroupsOfUser_2_param19" type="xsd:boolean" />

</wsdl:message>

- <wsdl:message name="getRoleByUniqueNameRequest">

<wsdl:part name="getRoleByUniqueName_1_param38" type="xsd:string" />

</wsdl:message>

- <wsdl:message name="searchRolesResponse">

<wsdl:part name="response" type="intf:ArrayOf_xsd_string" />

</wsdl:message>

- <wsdl:portType name="UMWebService">

- <wsdl:operation name="getUser" parameterOrder="getUser_1_param2">

<wsdl:input name="getUser_input0" message="intf:getUserRequest" />

<wsdl:output name="getUser_output0" message="intf:getUserResponse" />

<wsdl:fault name="com.sap.security.api.UMException" message="intf:UMException" />

</wsdl:operation>

- <wsdl:operation name="getMapping" parameterOrder="getMapping_2_param3 getMapping_2_param4">

<wsdl:input name="getMapping_input0" message="intf:getMappingRequest" />

<wsdl:output name="getMapping_output0" message="intf:getMappingResponse" />

<wsdl:fault name="com.sap.security.api.umap.NoLogonDataAvailableException" message="intf:NoLogonDataAvailableException" />

<wsdl:fault name="com.sap.security.api.UMException" message="intf:UMException" />

</wsdl:operation>

- <wsdl:operation name="modifyUser" parameterOrder="modifyUser_9_param5 modifyUser_9_param6 modifyUser_9_param7 modifyUser_9_param8 modifyUser_9_param9 modifyUser_9_param10 modifyUser_9_param11 modifyUser_9_param12 modifyUser_9_param13">

<wsdl:input name="modifyUser_input0" message="intf:modifyUserRequest" />

<wsdl:output name="modifyUser_output0" message="intf:modifyUserResponse" />

<wsdl:fault name="com.sap.security.api.UMException" message="intf:UMException" />

</wsdl:operation>

- <wsdl:operation name="searchUsers" parameterOrder="searchUsers_4_param14 searchUsers_4_param15 searchUsers_4_param16 searchUsers_4_param17">

<wsdl:input name="searchUsers_input0" message="intf:searchUsersRequest" />

<wsdl:output name="searchUsers_output0" message="intf:searchUsersResponse" />

<wsdl:fault name="com.sap.security.api.UMException" message="intf:UMException" />

</wsdl:operation>

- <wsdl:operation name="getGroupsOfUser" parameterOrder="getGroupsOfUser_2_param18 getGroupsOfUser_2_param19">

<wsdl:input name="getGroupsOfUser_input0" message="intf:getGroupsOfUserRequest" />

<wsdl:output name="getGroupsOfUser_output0" message="intf:getGroupsOfUserResponse" />

<wsdl:fault name="com.sap.security.api.UMException" message="intf:UMException" />

</wsdl:operation>

- <wsdl:operation name="getRolesOfUser" parameterOrder="getRolesOfUser_2_param20 getRolesOfUser_2_param21">

<wsdl:input name="getRolesOfUser_input0" message="intf:getRolesOfUserRequest" />

<wsdl:output name="getRolesOfUser_output0" message="intf:getRolesOfUserResponse" />

<wsdl:fault name="com.sap.security.api.UMException" message="intf:UMException" />

</wsdl:operation>

- <wsdl:operation name="getUserEmail" parameterOrder="getUserEmail_1_param22">

<wsdl:input name="getUserEmail_input0" message="intf:getUserEmailRequest" />

<wsdl:output name="getUserEmail_output0" message="intf:getUserEmailResponse" />

<wsdl:fault name="com.sap.security.api.UMException" message="intf:UMException" />

</wsdl:operation>

- <wsdl:operation name="searchGroups" parameterOrder="searchGroups_4_param23 searchGroups_4_param24 searchGroups_4_param25 searchGroups_4_param26">

<wsdl:input name="searchGroups_input0" message="intf:searchGroupsRequest" />

<wsdl:output name="searchGroups_output0" message="intf:searchGroupsResponse" />

<wsdl:fault name="com.sap.security.api.UMException" message="intf:UMException" />

</wsdl:operation>

- <wsdl:operation name="getUsersOfGroup" parameterOrder="getUsersOfGroup_2_param27 getUsersOfGroup_2_param28">

<wsdl:input name="getUsersOfGroup_input0" message="intf:getUsersOfGroupRequest" />

<wsdl:output name="getUsersOfGroup_output0" message="intf:getUsersOfGroupResponse" />

<wsdl:fault name="com.sap.security.api.UMException" message="intf:UMException" />

</wsdl:operation>

- <wsdl:operation name="getGroupByUniqueName" parameterOrder="getGroupByUniqueName_1_param29">

<wsdl:input name="getGroupByUniqueName_input0" message="intf:getGroupByUniqueNameRequest" />

<wsdl:output name="getGroupByUniqueName_output0" message="intf:getGroupByUniqueNameResponse" />

<wsdl:fault name="com.sap.security.api.UMException" message="intf:UMException" />

</wsdl:operation>

- <wsdl:operation name="searchRoles" parameterOrder="searchRoles_4_param30 searchRoles_4_param31 searchRoles_4_param32 searchRoles_4_param33">

<wsdl:input name="searchRoles_input0" message="intf:searchRolesRequest" />

<wsdl:output name="searchRoles_output0" message="intf:searchRolesResponse" />

<wsdl:fault name="com.sap.security.api.UMException" message="intf:UMException" />

</wsdl:operation>

- <wsdl:operation name="getUsersOfRole" parameterOrder="getUsersOfRole_2_param34 getUsersOfRole_2_param35">

<wsdl:input name="getUsersOfRole_input0" message="intf:getUsersOfRoleRequest" />

<wsdl:output name="getUsersOfRole_output0" message="intf:getUsersOfRoleResponse" />

<wsdl:fault name="com.sap.security.api.UMException" message="intf:UMException" />

</wsdl:operation>

- <wsdl:operation name="getGroupsOfRole" parameterOrder="getGroupsOfRole_2_param36 getGroupsOfRole_2_param37">

<wsdl:input name="getGroupsOfRole_input0" message="intf:getGroupsOfRoleRequest" />

<wsdl:output name="getGroupsOfRole_output0" message="intf:getGroupsOfRoleResponse" />

<wsdl:fault name="com.sap.security.api.UMException" message="intf:UMException" />

</wsdl:operation>

- <wsdl:operation name="getRoleByUniqueName" parameterOrder="getRoleByUniqueName_1_param38">

<wsdl:input name="getRoleByUniqueName_input0" message="intf:getRoleByUniqueNameRequest" />

<wsdl:output name="getRoleByUniqueName_output0" message="intf:getRoleByUniqueNameResponse" />

<wsdl:fault name="com.sap.security.api.UMException" message="intf:UMException" />

</wsdl:operation>

</wsdl:portType>

- <wsdl:binding name="UMWebServiceBinding" type="intf:UMWebService">

<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />

- <wsdl:operation name="getUser">

<soap:operation soapAction="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService.UMWebService/getUser" />

- <wsdl:input name="getUser_input0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:input>

- <wsdl:output name="getUser_output0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:output>

- <wsdl:fault>

<soap:fault name="com.sap.security.api.UMException" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:fault>

</wsdl:operation>

- <wsdl:operation name="getMapping">

<soap:operation soapAction="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService.UMWebService/getMapping" />

- <wsdl:input name="getMapping_input0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:input>

- <wsdl:output name="getMapping_output0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:output>

- <wsdl:fault>

<soap:fault name="com.sap.security.api.umap.NoLogonDataAvailableException" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:fault>

</wsdl:operation>

- <wsdl:operation name="modifyUser">

<soap:operation soapAction="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService.UMWebService/modifyUser" />

- <wsdl:input name="modifyUser_input0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:input>

- <wsdl:output name="modifyUser_output0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:output>

- <wsdl:fault>

<soap:fault name="com.sap.security.api.UMException" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:fault>

</wsdl:operation>

- <wsdl:operation name="searchUsers">

<soap:operation soapAction="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService.UMWebService/searchUsers" />

- <wsdl:input name="searchUsers_input0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:input>

- <wsdl:output name="searchUsers_output0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:output>

- <wsdl:fault>

<soap:fault name="com.sap.security.api.UMException" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:fault>

</wsdl:operation>

- <wsdl:operation name="getGroupsOfUser">

<soap:operation soapAction="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService.UMWebService/getGroupsOfUser" />

- <wsdl:input name="getGroupsOfUser_input0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:input>

- <wsdl:output name="getGroupsOfUser_output0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:output>

- <wsdl:fault>

<soap:fault name="com.sap.security.api.UMException" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:fault>

</wsdl:operation>

- <wsdl:operation name="getRolesOfUser">

<soap:operation soapAction="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService.UMWebService/getRolesOfUser" />

- <wsdl:input name="getRolesOfUser_input0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:input>

- <wsdl:output name="getRolesOfUser_output0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:output>

- <wsdl:fault>

<soap:fault name="com.sap.security.api.UMException" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:fault>

</wsdl:operation>

- <wsdl:operation name="getUserEmail">

<soap:operation soapAction="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService.UMWebService/getUserEmail" />

- <wsdl:input name="getUserEmail_input0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:input>

- <wsdl:output name="getUserEmail_output0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:output>

- <wsdl:fault>

<soap:fault name="com.sap.security.api.UMException" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:fault>

</wsdl:operation>

- <wsdl:operation name="searchGroups">

<soap:operation soapAction="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService.UMWebService/searchGroups" />

- <wsdl:input name="searchGroups_input0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:input>

- <wsdl:output name="searchGroups_output0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:output>

- <wsdl:fault>

<soap:fault name="com.sap.security.api.UMException" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:fault>

</wsdl:operation>

- <wsdl:operation name="getUsersOfGroup">

<soap:operation soapAction="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService.UMWebService/getUsersOfGroup" />

- <wsdl:input name="getUsersOfGroup_input0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:input>

- <wsdl:output name="getUsersOfGroup_output0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:output>

- <wsdl:fault>

<soap:fault name="com.sap.security.api.UMException" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:fault>

</wsdl:operation>

- <wsdl:operation name="getGroupByUniqueName">

<soap:operation soapAction="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService.UMWebService/getGroupByUniqueName" />

- <wsdl:input name="getGroupByUniqueName_input0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:input>

- <wsdl:output name="getGroupByUniqueName_output0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:output>

- <wsdl:fault>

<soap:fault name="com.sap.security.api.UMException" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:fault>

</wsdl:operation>

- <wsdl:operation name="searchRoles">

<soap:operation soapAction="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService.UMWebService/searchRoles" />

- <wsdl:input name="searchRoles_input0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:input>

- <wsdl:output name="searchRoles_output0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:output>

- <wsdl:fault>

<soap:fault name="com.sap.security.api.UMException" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:fault>

</wsdl:operation>

- <wsdl:operation name="getUsersOfRole">

<soap:operation soapAction="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService.UMWebService/getUsersOfRole" />

- <wsdl:input name="getUsersOfRole_input0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:input>

- <wsdl:output name="getUsersOfRole_output0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:output>

- <wsdl:fault>

<soap:fault name="com.sap.security.api.UMException" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:fault>

</wsdl:operation>

- <wsdl:operation name="getGroupsOfRole">

<soap:operation soapAction="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService.UMWebService/getGroupsOfRole" />

- <wsdl:input name="getGroupsOfRole_input0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:input>

- <wsdl:output name="getGroupsOfRole_output0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:output>

- <wsdl:fault>

<soap:fault name="com.sap.security.api.UMException" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:fault>

</wsdl:operation>

- <wsdl:operation name="getRoleByUniqueName">

<soap:operation soapAction="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService.UMWebService/getRoleByUniqueName" />

- <wsdl:input name="getRoleByUniqueName_input0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:input>

- <wsdl:output name="getRoleByUniqueName_output0">

<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:output>

- <wsdl:fault>

<soap:fault name="com.sap.security.api.UMException" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService" />

</wsdl:fault>

</wsdl:operation>

</wsdl:binding>

- <wsdl:service name="UMWebServiceService">

- <wsdl:port name="UMWebService" binding="intf:UMWebServiceBinding">

<soap:address location="http://host:port/irj/servlet/prt/soap/UMWebService?style=rpc_enc" />

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

Any idea?

Thanks a lot for your time on this thread.

RLS.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hi,

to get logged user use:

IWDClientUser clientUser = WDClientUser.getCurrentUser();

IUser user = clientUser.getSAPUser();

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Thanks so much Maksim Rashchynski.

I tried with that but only seems to work with <b>sap.authentication</b> and SSO between the WAS and SAP Portal. I don't have the SSO. Do you know any other way to get it from a webdynpro?.

Did you use the UMWebService?.

Thanks again for your time.

RLS.

former_member182372
Active Contributor
0 Kudos

Hi,

Well, to connect to WD application from portal you have 2 authentication options: SSO, user mapping.

When you are using SSO user name is the same on WAS and EP.

When you are using user mapping on WD side you can get only WAS user. Aftrerwards you can try to use IUserMapping.getInverseMappingData to get portal user.

Check JavaDoc https://media.sdn.sap.com/javadocs/NW04/SP9/ume/com/sap/security/api/umap/IUserMapping.html

Best regards, Maksim Rashchynski.

Check this too

Message was edited by: Maksim Rashchynski