Exposing OPSS Api's as Webservice

Hi Folks,
In our application, we require to manage Portal Security via different application . I understand that OWC outsources its security needs to OPSS, thus my question is that can we create webservices on top of OPSS api's and manage portal security that way? Is it supported by Oracle ?
Thanks
Edited by: Chandan Thour on Jul 17, 2012 7:27 AM

some samples at below link
http://docs.oracle.com/cd/E14571_01/doc.1111/e14309/spmlapi.htm

Similar Messages

  • Exposing OIM APIs as webservice

    Hi,
    I wanted to know if i can expose OIM APIs as webservice?
    As per my reqmnt, i need to implement forgot password and change password functionality for OIM users from a portal application.
    So wanted to know if I can use OIM APIs say getChallengeValuesForSelf , compareChallengeValuesForSelf, changePasswordForSelf and then expose them as webservice?

    Can I do this...
    Create a WebService using NetBeans Editor...
    In it add a web method, which basically is using OIM API say getChallengeValuesForUser to fetch some value and then returning it as output of this web method?
    I'll be setting all the system properties required for calling OIM API here itself and also would make the connection to OIM here.
    I tried doing so, but getting an exception while I try to deploy the webservice,
    com.sun.xml.ws.model.RuntimeModelerException: The web service defined by the class weblogic.wsee.async.AsyncResponseBeanSoap12 does not contain any valid WebMethods.
    Kindly suggest.

  • How to access an External LDAP on a weblogic server using OPSS APIs.

    Hi,
    Can anyone let me know how I can access an External LDAP configured on a weblogic server using OPSS APIs( or alternative APIs).
    I'm currently using the below snippet and I'm getting only the Users and groups from the DefaultAutheticator on the weblogic server and not the external LDAP Server.
    I've verified the providers, users and groups on the weblogic server console and can see that external LDAP server content is being picked, but my below code does not query them.
    import oracle.security.idm.IMException;
    import oracle.security.idm.IdentityStore;
    import oracle.security.idm.Role;
    import oracle.security.jps.JpsContext;
    import oracle.security.jps.JpsContextFactory;
    import oracle.security.jps.JpsException;
    import oracle.security.jps.service.idstore.IdentityStoreService;
    List<Role> rowData = null;
    JpsContextFactory ctxf = JpsContextFactory.getContextFactory();
    JpsContext ctx = ctxf.getContext();
    IdentityStoreService storeService = ctx.getServiceInstance(IdentityStoreService.class);
    IdentityStore idStore = storeService.getIdmStore();
    rowData = this.getRoles(idStore, "*");
    Any help or pointers are highly appreciated.
    Thanks,
    Bhasker

    Can anyone please provide any suggestions. I trying to google around but still not able to find any solution.
    Thanks,
    Bhasker

  • Getting error when trying to expose the java class as webservice

    I am new to webservices and ESB.
    I have two custom schemas. LegacyCustomer.xsd and CommonCustomer.xsd. I am compiling these schemas using JAXP. I am trying to map one custom data to another data using java class. I am trying to expose this java class into webservice.
    public class Test implements Serializable {
    private static final long serialVersionUID = 1L;
    public Test() {
    public CustomerType transform (CustomerDataType custDataType) {
    CustomerType custType = new CustomerType();
    custType.setCustomerId(custDataType.getCustomerId());
    return custType;
    Schemas used are:
    Input Schema:
    <schema targetNamespace="http://xmlns.oracle.com/Esb/CustomerData" xmlns:cust="http://xmlns.oracle.com/Esb/CustomerData" xmlns="http://www.w3.org/2001/XMLSchema">
         <element name="CustomerData" type="cust:CustomerDataType"/>
         <complexType name="CustomerDataType">
              <sequence>
                   <element name="CustomerId" type="string"/>
    </sequence>
         </complexType>
    </schema>
    Output Schema:
    <schema targetNamespace="http://xmlns.oracle.com/Esb/CustomerProvision" xmlns:CU="http://xmlns.oracle.com/Esb/CustomerProvision" xmlns="http://www.w3.org/2001/XMLSchema">
         <element name="Customer" type="CU:CustomerType"/>
         <complexType name="CustomerType">
              <sequence>
                   <element name="CustomerId" type="string"/>
              </sequence>
         </complexType>
    </schema>
    When I try to do this I am getting following error
    CustomerType of method transform cannot be serialized into xml, and no custom serializer has been defined for it.
    Why do we need custom serializer here? And if this is mandatory how can we define this custom serializer?

    Thanks for your reply...
    I tried second option that you specified first. I did the transformation of objects using xslt. It is working fine.
    But I couldn't able to do this using first method...,
    When I tried to compile the schema using jaxp it is actually creating classes without the private variables. and hence it is not able to recognize those variables to generate the wsdl.
    But I am not sure how to generate the classes with those private variables and getter and setters (to generate wsdl specification it seems to be mandatory one).
    Can you please tell me how can we do the schema compilation (other than xml beans and jaxp.... I tried both)?

  • OPSS API licensing question

    Hi product managers,
    Is there a licensing restriction on use of OPSS API's with ADF essentials ? Will this API be included in the future ADF essentials build ? Will there be a separate licensing cost for this API in this case one might use the Apache LDAP API's.
    I have seen the OPSS FAQ whitepaper but it said that post 11gr1 release they might offer it separately but the document is really old.
    Regards,
    Ramandeep Nanda

    Hi Ramandeep,
    Licensing questions are best answered directly by the Oracle Sales team - the answer could depend on the products that your company already have licensed, and how they are bundled etc.
    Regards,
    Colin

  • [svn:osmf:] 14976: Clean up and expose logging API.

    Revision: 14976
    Revision: 14976
    Author:   [email protected]
    Date:     2010-03-23 17:21:14 -0700 (Tue, 23 Mar 2010)
    Log Message:
    Clean up and expose logging API.
    Modified Paths:
        osmf/trunk/apps/samples/framework/SampleLoggers/org/osmf/logging/flex/FlexLogWrapper.as
        osmf/trunk/apps/samples/framework/SampleLoggers/org/osmf/logging/flex/FlexLoggerWrapper.a s
        osmf/trunk/framework/OSMF/org/osmf/logging/ILogger.as
        osmf/trunk/framework/OSMF/org/osmf/logging/ILoggerFactory.as
        osmf/trunk/framework/OSMF/org/osmf/logging/Log.as
        osmf/trunk/framework/OSMF/org/osmf/logging/TraceLogger.as
        osmf/trunk/framework/OSMF/org/osmf/logging/TraceLoggerFactory.as

    a) You can use
    handler = new FileHandler(Constant.LOGFILE, true);
    Check the Javadoc please...
    b) you can configure the property "java.util.logging.FileHandler.append" to "true" (again, check the javadoc of java.util.logging.FileHandler)

  • How to resolve setPrefix() in SOAP(saaj API) with weblogic/webservices jar?

    Hi,
    I am facing a problem deploying a Web-Application in Weblogic containing SOAP related code.
    My environment is as below:
    1) Weblogic 8.1 SP2 server
    2) Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
    3) A method is exposed as web-service
    4) A client program(which is a part of Action class of Webb-app) written with SOAP APIs containing the following section:
         MessageFactory mf = MessageFactory.newInstance();
         SOAPMessage sm = mf.createMessage();
         SOAPPart sp = sm.getSOAPPart();
         sp.setPrefix("soapenv");
         SOAPEnvelope se = sp.getEnvelope();
         se.addNamespaceDeclaration("soapenv","http://orion:7001");
    giving the following error at runtime:
    Exception in thread "main" java.lang.AbstractMethodError:
    weblogic.were.soap.SOAPEnvelopeImpl.setPrefix(Ljava/lang/String;)V
    at Client.main(Client.java:39)
    I am able to compile without any error/warning all the time.
    This is giving only when putting the saaj(jwsdp-1.4) jars along with weblogic/webservices jars in classpath.
    I am able to run the same application(outside Web-application as a stand-alone java program) without
    any error while not using weblogic/webservices jar in the classpath.
    The saaj jars needed to run without any error are:
    saaj-api.jar
    saaj-impl.jar
    mailapi.jar
    activation.jar
    xercesImpl.jar
    xalan.jar
    dom.jar
    jdom.jar
    I thinks this is a compatibility issue. Please suggest to resolve it.
    Thanks in advance,
    pal_sk

    Hi,
    I am facing a problem deploying a Web-Application in Weblogic containing SOAP related code.
    My environment is as below:
    1) Weblogic 8.1 SP2 server
    2) Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
    3) A method is exposed as web-service
    4) A client program(which is a part of Action class of Webb-app) written with SOAP APIs containing the following section:
         MessageFactory mf = MessageFactory.newInstance();
         SOAPMessage sm = mf.createMessage();
         SOAPPart sp = sm.getSOAPPart();
         sp.setPrefix("soapenv");
         SOAPEnvelope se = sp.getEnvelope();
         se.addNamespaceDeclaration("soapenv","http://orion:7001");
    giving the following error at runtime:
    Exception in thread "main" java.lang.AbstractMethodError:
    weblogic.were.soap.SOAPEnvelopeImpl.setPrefix(Ljava/lang/String;)V
    at Client.main(Client.java:39)
    I am able to compile without any error/warning all the time.
    This is giving only when putting the saaj(jwsdp-1.4) jars along with weblogic/webservices jars in classpath.
    I am able to run the same application(outside Web-application as a stand-alone java program) without
    any error while not using weblogic/webservices jar in the classpath.
    The saaj jars needed to run without any error are:
    saaj-api.jar
    saaj-impl.jar
    mailapi.jar
    activation.jar
    xercesImpl.jar
    xalan.jar
    dom.jar
    jdom.jar
    I thinks this is a compatibility issue. Please suggest to resolve it.
    Thanks in advance,
    pal_sk

  • Can a user with Contribute privileges invoke SPFolder.SubFolders.Add(folder) Sharepoint 2010 API in a Webservice?

    We have a Webservice deployed on a Sharepoint 2010 deployment with a method as follows:
    public static string ensureParentFolder(SPWeb parentSite, string destinationUrl)
    destinationUrl = parentSite.GetFile(destinationUrl).Url;
    int index = destinationUrl.LastIndexOf("/");
    string parentFolderUrl = string.Empty;
    if (index > -1)
    parentFolderUrl = destinationUrl.Substring(0, index);
    SPFolder parentFolder
    = parentSite.GetFolder(parentFolderUrl);
    if (!parentFolder.Exists)
    SPFolder currentFolder = parentSite.RootFolder;
    foreach (string folder in parentFolderUrl.Split('/'))
    try
    currentFolder = currentFolder.SubFolders.Add(folder);
    catch (Exception ex)
    FINEOSLogger.Medium(LoggerCategory.FINEOSToSharePointDMS, "User could not create SP folder so elevating permissions");
    SPSecurity.RunWithElevatedPrivileges(delegate()
    currentFolder = currentFolder.SubFolders.Add(folder);
    return parentFolderUrl;
    When invoked by a User with only Contribute rights the SubFolders.Add( ) call appears to fail and the
    SPSecurity.RunWithElevatedPrivileges
    code is invoked, which also fails.
    1. So the first question is should you be able to invoke SubFolders.Add() with only Contribute?  It works with Design privileges for the Customer.  You can add folders on the Sharepoint website as a Contribute user so why not on the API. 
    Customer raising this as a security concern.
    2. Also why would the
    SPSecurity.RunWithElevatedPrivileges
    part fail, is the syntax incorrect for Sharepoint 2010?  We migrated this code from Sharepoint 2007 project.
    The error I get when I try run the code as a Contribute user is
    com.fineos.ta.dms.external.DMSException: The exception [A SharePoint error occured "An Error occured in SharePoint". For user "FINEOS\bryces" uploading the file "Ru Ext_1501.txt", with title "Ru Ext_1501.txt", to the SharePoint Library "FINEOSDocumentLibrary/2015/02/23/13/18".] was caused by the exception [A SharePoint error occured "An Error occured in SharePoint". For user "FINEOS\bryces" uploading the file "Ru Ext_1501.txt", with title "Ru Ext_1501.txt", to the SharePoint Library "FINEOSDocumentLibrary/2015/02/23/13/18".]., Ta Exception info,Exception Class=class com.fineos.ta.dms.external.DMSException,Root cause ID=10,Root cause host=IEL163,Localized message=A SharePoint error occured "An Error occured in SharePoint". For user "FINEOS\bryces" uploading the file "Ru Ext_1501.txt", with title "Ru Ext_1501.txt", to the SharePoint Library "FINEOSDocumentLibrary/2015/02/23/13/18"
    at com.fineos.integration.dms.internal.thirdparty.GenericDMS.add(GenericDMS.java:149)
    at com.fineos.frontoffice.documentmanager.DocumentManager.saveToThirdPartyDMS(DocumentManager.java:280)
    at com.fineos.frontoffice.documentmanager.fileupload.UploadDocumentWidget.save(UploadDocumentWidget.java:401)
    at org.apache.jsp.sharedpages.documentmanager.fileupload.uploaddocumentpage_jsp._jspService(uploaddocumentpage_jsp.java:77)
    Caused by: com.fineos.integration.dms.external.services.SharePointDmsException: A SharePoint error occured "An Error occured in SharePoint". For user "FINEOS\bryces" uploading the file "Ru Ext_1501.txt", with title "Ru Ext_1501.txt", to the SharePoint Library "FINEOSDocumentLibrary/2015/02/23/13/18".
    at com.fineos.integration.dms.external.services.GenericDMSClient.uploadDocument(GenericDMSClient.java:139)
    at com.fineos.integration.dms.internal.thirdparty.GenericDMS.add(GenericDMS.java:132)
    ... 88 more
    Caused by: org.apache.axis2.AxisFault: Error_occured_sharepoint [Message Details = An Exception occurred in SharePoint; System.UnauthorizedAccessException: <nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied.
    at Microsoft.SharePoint.Library.SPRequest.AddOrDeleteUrl(String bstrUrl, String bstrDirName, Boolean bAdd, UInt32 dwDeleteOp, Int32 iUserId, Guid& pgDeleteTransactionId)
    at Microsoft.SharePoint.SPFolderCollection.AddInternal(String strUrl, Int32 userId)
    at FINEOSIntegration.FINEOSToSharePointDMS.SharePointDMSUtilities.<>c__DisplayClass9.<ensureParentFolder>b__5()
    at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
    at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
    at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
    at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
    at FINEOSIntegration.FINEOSToSharePointDMS.SharePointDMSUtilities.ensureParentFolder(SPWeb parentSite, String destinationUrl)
    at FINEOSIntegration.FINEOSToSharePointDMS.FINEOSToSharePointDMS.uploadDocument(String UserName, String FolderPath, String Filename, Byte[] File, DocumentProperties DocumentProperties, Boolean NotifyFINEOS, Boolean NotifyFINEOSSpecified, Boolean OverwriteIfExists, Boolean OverwriteIfExistsSpecified, String& DMSDocType)]
    at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
    at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
    at com.fineos.frontoffice.thirdpartydms.operationtypes.ThirdPartyDmsServicesStub.uploadDocument(ThirdPartyDmsServicesStub.java:761)
    at com.fineos.integration.dms.external.services.GenericDMSClient.uploadDocument(GenericDMSClient.java:119)
    ... 89 more
    Note that the user SPWeb being passed into the method is from an impersonated user, don't know if that matters.
    So the webservice payload contains the id of the user who wants to do the Sharepoint work while the webservice is invoked by anonymous or some other service user.  We then impersonate the user specified in the webservice payload like follows and use
    that web SPWeb from then on in the webservice methods:
    userToImpersonate = currentWeb.AllUsers[user];
    site = new SPSite(fileUrl, userToImpersonate.UserToken);
    web = site.OpenWeb();
    Any help appreciated.
    Thanks,
    Ruairi.

    Ideally, a user with Contribute permissions should be able to add folders. Not sure what is the issue there. But I can see that SPSecurity.RunWithElevatedPrivileges is not written properly. You must create a new SPSite object inside the delegate
    because SPSite objects created outside do not have Full Control even when referenced inside the delegate. Use the using keyword to ensure that the object is disposed in the delegate. Example:
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(web.Site.ID))
    // implementation details omitted
    });See this for more information about SPSecurity.RunWithElevatedPrivilegeshttps://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges%28v=office.12%29.aspx?f=255&MSPPError=-2147217396
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • Exposing complete data structure in webservice

    Hello Experts,
      I have a scenario where a Bapi functionality(server proxy) is exposed as a webservice .
    So scenario will be SOAP -> XI -> Proxy (calls a BAPI)
    In our BAPI (proxy, target structure) we are having 100+ fields. Currently the WS consumer - application making SOAP call to our webservice will send only 20 (minimum required) fields. But in near future it will be updated to send all 100 fields.
    Is it OK to include all 100 fields in source data type even though we will receive only 20 fields. (If i mark all of them as optional i.e. occurance 0..1) Or will it result in error?
    Thanks in Advance,
    XI Queries.

    Hi,
    >>Is it OK to include all 100 fields in source data type even though we will receive only 20 fields. (If i mark all of them as optional i.e. occurance 0..1) Or will it result in error?
    yes it is ok to have all 100 fields in source even if you use only 20 fields. But later when you make them as mandatory or anything, you need to regenerate the wsdl
    Regards
    Suraj

  • Exposing spring's beans as Webservices

    Hello there! We need to expose our Spring based application beans as webservices. I know how to do this using Axis, as its well documented on the Spring documentation. But how can I specify specific ServletEndpoints for my webservices on Oracle AS 10.1.2?
    Regards

    Is it possible to expose a different endpoint on Oracle? I can't find anything in the (poor) Oracle's documentation

  • How to expose a bapi as Rest webservice to consume in web applications

    Hello experts , i now seriously need your suggestion here. Is there a way to expose a BAPI as a rest webservice which can be consumed by a web application in the end.
    What is ICF ( Internet Communication Framework) ? Does this help in generating web service from BAPI ?
    Netweaver Gateway might help to generate services but may not be recommended here in our scenario.

    Please refer Real Web Services with REST and ICF for creation of rest services in sap. The BAPI will have to be called in your handler class.
    I think your best bet would be to transfer the data in the body of the http request and use simple transformation(with multiple roots) to convert the xml data to sap formats. GZIP can also be used to compress the data that is being sent. We have done this successfully in one of our projects.
    However this approach(RESTful Service) would involve more work when compared to the approach suggested by Vikram. If SOAP based services are ok, then you should go ahead with Vikram's approach.

  • Data Loader API Calls x Webservices

    Hi,
    I'm trying to use the Data Loader calls by the webservices.
    I've downloaded the OracleDataLoaderOnDemandImportServices.wsdl and I've been tested it in a C# project, but I don't know to use exactly the methods BulkOpImportCreateRequest and BulkOpImportSendData.
    I can't create a import bulk request...
    Has someone already used this before?
    Help me, please?
    Best regards,
    Herbert

    TheSilverHammer wrote:
    Thats some nice info, but what if it is not a "framework"? These are basic Darwin API calls, not Apple Frameworks.
    Last sentence on the page:
    "If you need to link to a library instead of a framework, you can use the -weak_library linker command instead of -weak_framework."
    TheSilverHammer wrote:
    I did not define printf so I can't weak link it.
    This doesn't make any sense. You didn't define any of the symbols in any of the frameworks or libraries Apple provides--that does not inhibit your ability to link against them, weakly or otherwise.

  • Can I expose existing java applications as webservices

    I have some java based applications doing functions such as datamining, visualization ... Can I expose these as webservices? How to do that? Can I directly expose it as webservices? What tools should I use? Please explain.
    Thanks

    basically, if you have a java application doing stuff, you can create a webservice by writing JSP pages and beans and/or servlets. very simple example:
    - write a jsp page for data input that access your bean
    - write a bean that routes the request/response to/from your application classes
    all you need for doing this is a webserver and a servlet container (e.g. tomcat).
    however, if youre application is doing some graphical output, you could split your application in two: a client application for the visualization, which is communication with a servlet or a full blown J2EE server (http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/WCC.html).

  • Can we invoke oracle API's from Webservice

    Hi,
    I have a requirement to invoke some oracle Api's like submitting a concurrent request etc, from a webservice.
    Is that possible? If yes, How can we do that.
    Thanks & Regards
    Puja

    Is it possible to publish a service for the api's and call this service from your own webservice by use of a webserviceproxy?
    or build some sort of composite bpel service, which calls the api's by use of a database-adapter.

  • Planning to expose additional APIs... Which ones should be top priority?

    Hi everyone,
    We are working on the plans for the next APIs to be exposed for Open Platform, and would like to get your feedback on you will like to see next in terms of APIs. Based on what we heard so far, our priority list for APIs looks like:
    Page Properties Update
    Secure Zones List
    Template Properties Update
    Assign web app items to secure zones
    CRM APIs
    List customers
    List companies ???
    List cases
    Customer detail
    Customer Create, Update, Delete
    Order detail
    Order Create, Update, Delete
    Case detail
    Case Create, Update, Delete
    List event bookings
    Event booking Create, Update, Delete
    List Mailing lists
    eCommerce APIs
    List Products
    List Catalogs
    List Discount Codes
    List Gift Vouchers
    Create, Update, Delete Products
    Create, Update, Delete Catalogs
    Create, Update, Delete Discount Codes
    Create, Update, Delete Gift Vouchers
    The first 4 have been raised after the first closed release of the APIs, while the rest are the ones currently exposed to SOAP and used to third party systems or even apps. Which ones would you like to see first? Any other APIs which are more important than these ones?
    Thank you,
    Cristinel

    Of the current SOAP APIs I think my top five would be:
    - CRM: Order Create, Update, Delete
    - CRM: Event booking Create, Update, Delete
    - Ecom: List products
    - Ecom: Create, Update, Delete Discount Codes
    - Ecom: Create, Update, Delete Gift Vouchers

Maybe you are looking for