Skip to Content
author's profile photo
Former Member

Call EP/Netweaver webservices from .NET

Is it possible to connect to SAP Enterprise Portal (EP) using the .NET connector or PDK.NET? Basically, I want to search users, roles, groups etc on the EP. I know about the UME Web service available on EP/Netweaver, but has not been able to utilize it. Please help!! A point to a good resource will be also great. Thanks!!

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • author's profile photo
    Former Member
    May 05, 2005 at 07:21 AM

    Hi,

    You can use the .NET connector to run RFC/SOAP functions in back-end systems (like R/3)... so that won't help.

    With the PDK for .NET you can write content for the portal (which will run in the portal itself). If that is good for you, then you'll have .NET access to the UME.

    If not - I guess you'll have to use the UME web service. Try asking for help on that subject in the "portal" forum.

    Good luck,

    Ofer

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      No. The .NET Connector enables you to call RFC (or BAPI) functions that are exposed as such in the back-end. It also enables you to use SOAP to call these same functions.

      Actually, to call web-services via .NET, you don't need any special components (whether they are on EP or anywhere else), just use the "web references" that are built into .NET and Visual Studio.

      Regards,

      Ofer

  • author's profile photo
    Former Member
    May 10, 2005 at 12:31 AM

    I developed a webserivce in Java that expose several functionality of the UME API, because I need to use in ASP.net applications that we integrated in our portal, like get user properties (name, title, email,...), change the value of a user property, search by groups or by any property, etc...

    I published this sample here in SDN: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/code sample for web service to get a user property.doc

    If you want I can share my code of all of the other services that we published (change password, search users, create user, delete user, etc.)

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    May 10, 2005 at 06:52 AM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      We are trying to consume this web service from a .Net Application. In a .Net project, we added a “Web Reference” to this web service. Visual Studio .net, created the proxy for the web service without any problem. We are able to access different methods of this web service.

      For example we accessed GetUser() function of the web service. “GetUser()” method accepts “UserId” as a parameter and returns a type “IUserInfo”. When we call this method, an instance of IUserInfo gets instantiated but none of the attributes of “IUserInfo” are having any data. To see if the web service is returning any data we captured the SOAP response we are getting from the web service. Web service is returning all the relevant data for the user. Probably .Net is unable to deserialize the SOAP response it gets from the web service. Following is the SOAP response we obtained from the “GetUser()” function call.

      <b>SOAP response message</b>

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

      http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:types="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService/encodedTypes" xmlns:wsse=" http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsa=" http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:wsu=" http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:tns="prt:service:com.sapportals.portal.prt.webservice.usermanagement.UMWebService"> http://schemas.xmlsoap.org/soap/encoding/">

      <tns:getUserResponse xmlns:prt1="http://prt.java.soap/schemas" xmlns:prt0="http://usermanagement.webservice.prt.portal.sapportals.com"><response xsi:type="prt0:IUserInfo"><prt0:Locale xsi:type="prt1:Locale" xsi:nil="true" /><prt0:Groups soapenc:arrayType="xsd:string[3]" soapenc:type="soapenc:Array"><xsd:item xsi:type="xsd:string">Everyone</xsd:item><xsd:item xsi:type="xsd:string">Administrators</xsd:item><xsd:item xsi:type="xsd:string">Authenticated Users</xsd:item></prt0:Groups><prt0:DisplayName xsi:type="xsd:string">Bhanu, Mohanty</prt0:DisplayName><prt0:Roles soapenc:arrayType="xsd:string[3]" soapenc:type="soapenc:Array"><xsd:item xsi:type="xsd:string">pcd:portal_content/administrator/super_admin/super_admin_role</xsd:item><xsd:item xsi:type="xsd:string">pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.pct.pdk/Roles/com.sap.pct.pdk.JavaDeveloper</xsd:item><xsd:item xsi:type="xsd:string">pcd:portal_content/every_user/general/eu_role</xsd:item></prt0:Roles><prt0:Company xsi:type="xsd:string"></prt0:Company><prt0:UniqueId xsi:type="xsd:string">USER.PRIVATE_DATASOURCE.un:bmohanty</prt0:UniqueId><prt0:Email soapenc:arrayType="xsd:string[1]" soapenc:type="soapenc:Array"><xsd:item xsi:type="xsd:string">bmohanty@

      virsasystems.com bmohanty Bhanu Mohanty "

  • author's profile photo
    Former Member
    Oct 05, 2005 at 12:50 PM

    Hi Ricky,

    have you already solved your problem - I mean problem with deserialization (your last post of this topic)? We have the same problem.

    Thanks

    Antonin

    Add comment
    10|10000 characters needed characters exceeded