Issue using Page Service APIs

Hi
Based on instruction provided in the document below I have created a simple java class to pull back all pages created through the Page Service API.
http://download.oracle.com/docs/cd/E14571_01/webcenter.1111/e10148/jpsdg_page_service.htm#BABFEDAH
Unfortunatelly the code keeps coming back with nothing even though I can confirm that there are few pages previously created for scope "s8bba98ff_4cbb_40b8_beee_296c916a23ed".
I need help how I can sort this issue out.
Thanks in advance
package project1;
import java.util.Iterator;
import java.util.List;
import oracle.adf.share.ADFContext;
import java.util.Map;
import oracle.mds.core.MDSInstance;
import oracle.mds.core.MDSSession;
import oracle.webcenter.page.model.PageDef;
import oracle.webcenter.page.model.PageService;
import oracle.webcenter.page.model.PageServiceFactory;
import oracle.webcenter.framework.service.Scope;
import oracle.webcenter.page.model.config.PageServiceConfig;
import oracle.webcenter.page.internal.model.PageTreeNode;
import oracle.webcenter.page.internal.model.PageServiceDC;
import oracle.webcenter.framework.service.ServiceContext;
public class Class1 {
public Class1() {
super();
public List<PageDef> getPages()
List<PageDef> pages;
List<PageTreeNode> listPageTreeNode;
String DEFAULT_SCOPE = "s8bba98ff_4cbb_40b8_beee_296c916a23ed";
PageServiceConfig config = new PageServiceConfig(mdsSess, DEFAULT_SCOPE);
PageService mPageService = PageServiceFactory.createInstance(config);
pages = mPageService.getPageList();
System.out.println("Size " + pages.size());
System.out.println("Pages 0 Name = " + pages.get(0).getName());
return pages;
public static void main(String[] args) {
Class1 class1 = new Class1();
class1.getPages();
}

I am able to create new pages using the button added by dragging dropping the Page - Create New task flow.
I can confirm that since the table shows all the pages created using the Page service.
This SR is raised to request for some example java code that is needed to redended the new pages created using the PAge service as Tabs.
I've added the followind lines to the jspx page source
Rendering Pages as Tabs Using af:navigationPane
<af:navigationPane id="tabs">
<af:forEach var="tab" items="#{MyPageServiceBean.pages}">
<af:commandNavigationItem text="#{tab.title}" id="cni1"/>
</af:forEach>
</af:navigationPane>
This relies on a Managed Bean and the POJO associated to it that uses the getPages() method available in the Page Service API to pull back all pages.

Similar Messages

  • Issue using web-service with forms9i

    using web-service with forms9i
    Hi
    I have a setup of oracle9ias release 2 on solaris machine. I have made a web-service which is deployed on nt machine on weblogic server. I have made a call from my form (forms9i) to this web-service. When i try to use that web-service after deploying my form on solaris, it initializes the web-service and performs the action successfully. Now the problem is that my form also makes a call to report server to generate a report. The problem is when i initialize the web-service and uses its function it works but after that making a call to report server will fail. Also if i make a call to report server first, it generates the report and then i make call to the web-service, then that web-service fails to run. And in both cases, the forms application stops saying session has aborted.
    Why cant i make call to both the things in one session of application? What could be the reason for that? Need help urgently.

    Sorry,
    I didn't know that this was necessary to find a solution.
    Here are the definition out of the WSDL File:
    <xsd:complexType name="ZS_EQART_RANGE_LINE">
         <xsd:sequence>
              <xsd:element name="SIGN" type="tns:char1"/>
              <xsd:element name="OPTION" type="tns:char2"/>
              <xsd:element name="LOW" type="tns:char10"/>
              <xsd:element name="HIGH" type="tns:char10"/>
         </xsd:sequence>
    </xsd:complexType>
    Thanks for Help
    Ron

  • As400 performence issue using web services

    Performance degrade while accessing as400 using web services instead of MQ Connection. Any suggestion what might cause this ?
    Edited by: indubala on Dec 16, 2009 6:26 PM

    It is not just 1 node, you will need to do several things which I have outlined here.
    In the first node set your variables.
    Here the invocation class is defined.
    Set this to the standard Native Invocation Class used in CCA.
    If this was not defined, the Campaign should use a default invocation class but I'd advise you to specify just to be sure.
    The values are:
    $invocationClass
    com.taw.web.invocation.WebServiceInvocation
    Remember that when specifying the string value single quotes (ticks) should surround the value (as with any string in CCA Campaigns).
    Next in the same node set the values for the service name.
    Set this to the default of ‘invoke’ used in CCA.
    If this was not defined, the Campaign should use the default of ‘invoke’ but again I'd advise on setting it to be sure.
    The values are :
    $serviceName
    invoke
    Next you will need to set the values that will be passed as the input objects to the invocation class.
    Recall that the two required objects are WebServiceInvocationId and KeyValue.
    The next area that would need to be defined is the Invocation wait loop.
    This is done for both testing as well as operation reasons.
    For testing this provides simple troubleshooting.
    For production use, the loop is important to handle time outs and errors.
    If the timeout value is ever reached, the return value will be set to Fail.
    First set the loop counter, then in the child nodes define the Loop counter expressions to check for a specific time to wait value.
    The external web service will need to be prepared to receive the exact objects sent by the Invocation class.
    In addition it will also expect to be instructed to process the invoke method.
    That should be enough to get you going.

  • Excel Function to query BW using Web Services API

    Hello,
    I need to write an Excel function as an .XLA that will do the following:
    It will be invoked like any other Excel function. E.g. =GetCost(param p1, param p2)
    This function queries an InfoCube and must return a single numerical value for the Cell in Excel that the function is used in.
    I have never done anything like this before. I have done a decent amount of reading to discover the best way to attack this. It seems like the best way to create this functionality is to:
    1. create a web service in a BW function group with a function module that is RFC enabled.
    2. I'm thinking the function module will use native SQL to query the InfoCube and pull the value and then somehow pass this value to a web service.
    3. The value in the web service will be accessed through it's API in Excel/VBA.
    I am not sure if this is best way to do this, or if it is even possible to do it this way. I was wondering if anyone could tell me if I am heading down the right path and possibly direct me to a tutorial or other information that would aid in accomplishing this. I have yet to find some type of proof of concept from beginning to end on how to do something like this. Any help would be greatly appreciated.
    These are the documents I have found insightful so far:
    How to build an XLA: http://www.fontstuff.com/vba/vbatut03.htm
    If you can read a table and dump it into Excel then you can query an InfoCube? https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c043d836-166c-2910-b99e-ae3633dec547
    How to view a webservice homepage: http://help.sap.com/saphelp_nw04/helpdata/en/1c/472e22c45cc94599ab3725bc9558d2/content.htm
    How to create a webservice:
    http://help.sap.com/saphelp_nw04/helpdata/en/9b/dad1ae3908ee44a5caf57e10918be9/frameset.htm
    What I am missing is how to pass data from the function module to the webservice, and from the webservice to the Excel/VBA code.
    Thanks!
    -Gary

    /bump

  • Cannot edit ACL using document services API

    I have been trying to edit the access control lists related to a particular file:
    When I try to edit the access control list using the POST method described in the document, I get the error: "BadEndpoint.
    I got a similar error message while listing the ACL, and that went away when I realized that there is a bug in the URL where the GET request to retrieve the ACL must be sent. The actual url should be:
    /webservices/api/v1/dc/[node-id]/acl
    This got my GET request to start working.
    But the same problem in the POST request does not get it to work. Without issuing a /dc for the POST, I get "BadEndpoint", while when I do /dc for the POST, then I get BadMethod.
    Any ideas?
    POST /webservices/api/v1/dc/[node-id]/acl?apikey=myKey&calltime=1245961011519&sessio nid=mySession&sig=mySig HTTP/1.1
    Content-Type: text/xml
    Host: api.share.acrobat.com
    Content-Length: 146
    Expect: 100-continue
    <request><acl><user id="[email protected]" rights="full"/><user id="[email protected]" rights="contributor"/></acl></request>

    So another 'typo' in the API Reference... hope they will update it someday...
    Regards,
    Dick Marjot
    http://www.xsdesktop.com

  • Issues using CustomerERPReplicationRequest_Out service.

    Hi,
    We are trying to use the async Services for updating data from ECC to Non-SAP systems through PI, and used CustomerERPReplicationRequest_Out to send the data from ECC to PI. The configurations as explained in the Service help of ES Workplace (http://esworkplace.sap.com/socoview(bD1lbiZjPTAwMSZkPW1pbg==)/render.asp?packageid=DE0426DD9B0249F19515001A64D3F462&id=C6AD4481D85711DB2B24000F20DAC9EF) has been done, and the initial load (first time activation of the Integration Model) worked perfectly, generating messages for all customers.
    However subsequently when we are making changes to any of the Customer records the message is not getting triggered to PI, we have to deactivate and activate the Integration Model again and again for the messages of changed records to be generated.
    According to my knowledge the Integration Model should automatically take care of changed records and needs regeneration only when a new Customer is created.
    Can anyone explain the behavior of the Integration Model for this Enterprise Service.
    Regards,
    Avishek.

    Hi,
    Under setting:
    >Configure the change transfer for master data:
    Transaction: CFC9
    IMG:
    Integration with other mySAP.com Components > Advanced Planning and Optimization > Basic Settings for the Data Transfer > Change Transfer > Change Transfer for Master Data > Configure Change Transfer for Master Data
    Change Transfer for Customers=1 ( ALE Change Transfer, periodic )
    assign value "Change Transfer for Customers=2" NOT 1 then it may work.
    Regards,
    Gourav

  • Webcenter page service add content api

    WebCenter has native page service api to create or modify page by programming. But I can not find the adding page content api.
    this url "http://docs.oracle.com/cd/E14571_01/webcenter.1111/e10149/pages_content.htm" is about page content, but there aren't api about page content.
    how to use page content api by programming?
    Thanks a lot.

    I am unclear on the usecase to programatically use an API to create a page this way.
    Can you explain why you cannot interact with the UI to develop pages?

  • Getting NoSuchElementException while using CRMOD Administrative API

    I am working on Administrative Service API for copy configuration from one CRM on Demand instance to another (i.e. from staging to production).
    As I have downloaded one of the Role Management (RoleService.wsdl) and created client for the same, for connection (logon) I am using end point https://secure-vmsomxmla.crmondemand.com/Services/cte/RoleService of RoleService.wsdl
    But getting following Exception
    java.util.NoSuchElementException
    at java.util.StringTokenizer.nextToken(Unknown Source)
    at crmondemand.ws.odesabs.accessprofile.clientsample.ClientSample.getSessionId(ClientSample.java:170)
    at crmondemand.ws.odesabs.accessprofile.clientsample.ClientSample.main(ClientSample.java:56)
    But if I use end point “https://secure-msomxmla.crmondemand.com/Services/Integration”
    Then it gets connected with CRMOD, but again while using Administrative Service API method roleRead() such as
    RoleReadInput roleReadInput=new RoleReadInput();
    RoleQuery roleQuery=new RoleQuery();
    RoleTranslationQuery roleTranslationQuery1=new RoleTranslationQuery();
    roleTranslationQuery1.setRoleName(new Empty());
    List<RoleTranslationQuery> roleTranslation=newArrayList<RoleTranslationQuery> ();
    roleTranslation.add(roleTranslationQuery1);
    ListOfRoleTranslationQuery listOfRoleTranslationQuery=new ListOfRoleTranslationQuery();
    listOfRoleTranslationQuery.setRoleTranslation(roleTranslation);
    roleQuery.setListOfRoleTranslation(listOfRoleTranslationQuery);
    // roleQuery.setRoleName("");
    roleReadInput.setRole(roleQuery);
    RoleReadOutput roleReadOutput=port1.roleRead(roleReadInput);
    for roleRead() method getting following exception.
    javax.xml.ws.soap.SOAPFaultException: Missing <wsse:Security> in SOAP Header
    at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146)
    at $Proxy28.roleRead(Unknown Source)
    at crmondemand.ws.odesabs.role.clientsample.ClientSample.main(ClientSample.java:59)
    Caused by: org.apache.cxf.binding.soap.SoapFault: Missing <wsse:Security> in SOAP Header
    Code:
    package crmondemand.ws.odesabs.role.clientsample;
    import java.net.HttpURLConnection;
    import java.net.URL;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    import java.util.StringTokenizer;
    import javax.xml.namespace.QName;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPHeader;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.ws.BindingProvider;
    import javax.xml.ws.handler.MessageContext;
    import javax.xml.ws.handler.soap.SOAPMessageContext;
    import crmondemand.ws.odesabs.role.RoleReadInput;
    import crmondemand.ws.odesabs.role.RoleReadOutput;
    import crmondemand.ws.odesabs.role.RoleService;
    import crmondemand.ws.odesabs.role.RoleService_Service;
    import crmondemand.xml.role.query.Empty;
    import crmondemand.xml.role.query.ListOfRoleTranslationQuery;
    import crmondemand.xml.role.query.RoleQuery;
    import crmondemand.xml.role.query.RoleTranslationQuery;
    public class ClientSample {
         public static void main(String[] args) {
              System.out.println("***********************");
              System.out.println("Create Web Service Client...");
              RoleService_Service service1 = new RoleService_Service();
              RoleService port1 = service1.getRoleService();
              System.out.println("Create Web Service...");
              try {
                   String jsessionid_full = logon(
                             "https://secure-vmsomxmla.crmondemand.com/Services/Integration",
                             "INFORM77/[email protected]", "crmod123!");
                   String jsessionid = getSessionId(jsessionid_full);
                   Map<String, Object> req_ctx = ((BindingProvider) port1).getRequestContext();
                   Object obj = req_ctx.get(BindingProvider.ENDPOINT_ADDRESS_PROPERTY);
                   String strEndPoint = obj + ";jsessionid=" + jsessionid;
                   req_ctx.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, strEndPoint);
                   Map<String, List<String>> headers = new HashMap<String, List<String>>();
                   headers.put(BindingProvider.USERNAME_PROPERTY, Collections.singletonList("INFORM77/[email protected]"));
                   headers.put(BindingProvider.PASSWORD_PROPERTY, Collections.singletonList("crmod123!"));
                   req_ctx.put(MessageContext.HTTP_REQUEST_HEADERS, headers);
                   System.out.println("Call Web Service Operation...");
                   RoleReadInput roleReadInput=new RoleReadInput();
                   RoleQuery roleQuery=new RoleQuery();
                   RoleTranslationQuery roleTranslationQuery1=new RoleTranslationQuery();
                   roleTranslationQuery1.setRoleName(new Empty());
                   List<RoleTranslationQuery> roleTranslation=new ArrayList<RoleTranslationQuery> ();
                   roleTranslation.add(roleTranslationQuery1);
                   ListOfRoleTranslationQuery listOfRoleTranslationQuery=new ListOfRoleTranslationQuery();
                   listOfRoleTranslationQuery.setRoleTranslation(roleTranslation);
                   roleQuery.setListOfRoleTranslation(listOfRoleTranslationQuery);
    //               roleQuery.setRoleName("");
                   roleReadInput.setRole(roleQuery);
                   RoleReadOutput roleReadOutput=port1.roleRead(roleReadInput);
                   System.out.println("roleReadOutput-"+roleReadOutput);
                   System.out.println("************End*************");
              /*     RoleReadAllOutput readOutput = new RoleReadAllOutput();
                   RoleReadAllInput readInput = new RoleReadAllInput();
                   List<RoleData> role = new ArrayList<RoleData>();
                   ListOfRoleData list = new ListOfRoleData();
                   RoleReadAllOutput out = port1.roleReadAll(readInput);*/
                   logoff("https://secure-vmsomxmla.crmondemand.com/Services/Integration",
                             jsessionid_full);
                   System.out.println("Logoff-----------------------");
                   System.out.println("Call Web Service Operation ENDSSSSSSSSSSS...");
              } catch (Exception e) {
                   e.printStackTrace();
         /*public boolean handleMessage(SOAPMessageContext context) {
              Boolean outboundProperty = (Boolean) context.get (MessageContext.MESSAGE_OUTBOUND_PROPERTY);
              SOAPMessage message =context.getMessage();
              if (outboundProperty.booleanValue()) {
              try {
                   SOAPEnvelope envelope = context.getMessage().getSOAPPart().getEnvelope();
                   SOAPHeader header = envelope.getHeader();
                   if (header == null ) {
                        header = envelope.addHeader();
                   SOAPElement security = header.addChildElement("Security", "wsse", WSSE_NAMESPACE);
                   SOAPElement usernameToken = security.addChildElement("UsernameToken", "wsse");
                   usernameToken.addAttribute(new QName("xmlns:wsu"), WSU_NAMESPACE);
                   SOAPElement username = usernameToken.addChildElement("Username", "wsse");
                   username.addTextNode(user);
                   SOAPElement password = usernameToken.addChildElement("Password", "wsse");
                   password.addTextNode(pass);
              catch (Exception e) {
                   e.printStackTrace();
              return true;
         private static String logon(String wsLocation, String userName,
                   String password) {
              String sessionString = "FAIL";
              try {
                   // create an HTTPS connection to the On Demand webservices
                   URL wsURL = new URL(wsLocation + "?command=login");
                   HttpURLConnection wsConnection = (HttpURLConnection) wsURL
                             .openConnection();
                   // we don't want any caching to occur
                   wsConnection.setUseCaches(false);
                   // we want to send data to the server
                   // wsConnection.setDoOutput(true);
                   // set some http headers to indicate the username and passwod we are
                   // using to logon
                   wsConnection.setRequestProperty("UserName", userName);
                   wsConnection.setRequestProperty("Password", password);
                   wsConnection.setRequestMethod("GET");
                   // see if we got a successful response
                   if (wsConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {
                        // get the session id from the cookie setting
                        sessionString = getCookieFromHeaders(wsConnection);
              } catch (Exception e) {
                   e.printStackTrace();
                   System.out.println("Logon Exception generated :: " + e);
              System.out.println("Finish.......");
              return sessionString;
         private static void logoff(String wsLocation, String sessionCookie) {
              try {
                   // create an HTTPS connection to the On Demand webservices
                   URL wsURL = new URL(wsLocation + "?command=logoff");
                   HttpURLConnection wsConnection = (HttpURLConnection) wsURL
                             .openConnection();
                   // we don't want any caching to occur
                   wsConnection.setUseCaches(false);
                   // let it know which session we're logging off of
                   wsConnection.setRequestProperty("Cookie", sessionCookie);
                   wsConnection.setRequestMethod("GET");
                   // see if we got a successful response
                   if (wsConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {
                        // if you care that a logoff was successful, do that code here
                        // showResponseHttpHeaders(wsConnection);
              } catch (Exception e) {
                   System.out.println("Logoff Exception generated :: " + e);
         private static String getCookieFromHeaders(HttpURLConnection wsConnection) {
              // debug code - display all the returned headers
              String headerName;
              String headerValue = "FAIL";
              for (int i = 0;; i++) {
                   headerName = wsConnection.getHeaderFieldKey(i);
                   if (headerName != null && headerName.equals("Set-Cookie")) {
                        // found the Set-Cookie header (code assumes only one cookie is
                        // being set)
                        headerValue = wsConnection.getHeaderField(i);
                        break;
              // return the header value (FAIL string for not found)
              return headerValue;
         private static String getSessionId(String cookie) {
              StringTokenizer st = new StringTokenizer(cookie, ";");
              String jsessionid = st.nextToken();
              st = new StringTokenizer(jsessionid, "=");
              st.nextToken();
              return st.nextToken();
    Please help me.
    Thanks,
    Jaysing
    Edited by: 883663 on Sep 7, 2011 10:07 PM

    Hi,
    Please check these links which discuss about the same error message:
    http://blogs.msdn.com/b/publicsector/archive/2005/10/19/482833.aspx
    http://blogs.msdn.com/b/distributedservices/archive/2009/11/10/wcf-calling-wcf-service-hosted-in-iis-on-the-same-machine-as-client-throws-an-authentication-error.aspx
    Regards,
    Azam Khan

  • Destination Service API jar

    hello experts,
    I want to use Destination Service API in my program.  but i am unable to find required jar file to use this service.  what is the required jar file for using DestinationServiceAPI. and from where can i download this required jar file?
    Thanks,
    jak

    Hi,
    Please find the below lnk that help you about DestinationService API
    http://help.sap.com/saphelp_nw04s/helpdata/en/17/d609b48ea5f748b47c0f32be265935/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/a6/e1ac1c1d25ac4d8aeb4760de5a9076/frameset.htm
    Raghu

  • The latest issue of Pages for iPad: 1. Very slow. 2. Late in reacting to typing. 3. When I go to a specific file, informs me that some images were deleted and therefore file has been changed. Then when OPEN option used, opens file slowly. Please, help!

    What I have to do to correct the following problems with Pages app. For iPad:
    Hesitates to display results of typing, some times for 5-6 characters;
    Very slow in opening files;
    Before opening of a specific file displays message: DOCUMENT DETAILS. SOME CHANGES WERE MADE TO YOUR DOCUMENT. SOME IMAGES ARE MISSING BECAUSE THEY WERE DELETED FROM YOUR DOCUMENT. We'll, nothing is missing. But it takes forever to open this file. The previous issue of Pages worked very good. But they would not let me to go back to it. Please, help!

    Tmobile did the exact same thing to me. So that is customer service at work in general. Nice try though lol.
    To the OP
    I see you said You paid for shipping, did you Insure it? Claim insurance on it. If you did not, It may not be Verizon or your fault in the sense of the phone not making it to the warehouse. There are people out in the postal world that will steal phones that are not insured. It could have been a Verizon employee, i suppose.
    But, if this was to be a bought in court, if you shipped it with out insurance, sadly your at fault.
    Do you still have the Serial number of your old phone? If so, you should be able to track where your phone is (if it is reported as a defect/damaged) If so, you may be able to use that as proof. If it does not show up as a defect or what ever they determine use as a loss, then you know it did not make it to the warehouse to be checked in. I would suspect Apple or Verizon could tell you what the Serial number came up as.

  • Using WebCenter Spaces Web Service API through JDeveloper's Data Control

    Hi,
    I'm trying to access WebCenter Spaces Web Service API (located at http://host:port/webcenter/SpacesWebService)
    using JDeveloper's Web Center Data Control.
    I created a data control in my portal project using JDeveloper's Web Service Data Control wizard.
    I also created and configured key stores (jps-config.xml) at both sides (spaces server and my portal client).
    How I created a data control:
    * First I entered the name and the URL (http://host:port/webcenter/SpacesWebService?WSDL)
    * Then I entered HTTP basic authentication details (user name and password)
    * After that I drag-and-drop the getGroupSpaces() method from the data control to a .jspx page as a ADF read-only table.
    * Then ran my portal project and navigated to this .jspx page and it worked. List of group spaces appeared well on that page.
    The problem is that I got only public group spaces and group spaces created by the user I entered on HTTP basic authentication details.
    I makes no sense to enter some static user details in a web service client (or a data control).
    So the question is; can I use identity propagation to get only group spaces created by the same user which I logged in my portal?
    Edited by: 832886 on Feb 18, 2011 3:09 AM

    Hi,
    You generally get NameError when you are executing the createCred/updateCred from a incorrect location. Are you using the wlst from oracle_common\common\bin?
    Also, In your steps I don't see what you did to populate the walllet at JDeveloper end after your updateCred failed. This is a required step. Use the wlst from the location emntioned above and you should be able to proceed.
    Thanks,
    Vishal

  • Dynamic Tabs Shell : issue with taskflows using pages

    Hi,
    We use the Dynamic tabs shell page template in our application.
    It works fine when used with taskflows with page fragments.
    However it errors when trying to render a taskflow with pages instead of fragments as:
    <FormRenderer><encodeAll> Multiple forms detected on viewId: /starter. Rich client currently has some limitations in dealing with multiple forms.
    <Jul 27, 2010 9:42:23 PM IST> <Error> <HTTP> <BEA-101020> <[ServletContext@32152418[app:calcmgr module:calcmgr path:/calcmgr spec-version:2.5]] Servlet failed with Exception
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:233)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:765)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2567)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
         at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1071)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:765)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1515)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:785)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
         at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:710)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:205)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Is this a known issue or constaint with Dynamic Tabs Shell page template?

    Actually I don't think the answer is as clear cut as the dynamic tab shell template (aka. UI Shell) doesn't support task flow with pages, as, we have an application that uses it that calls out to a BTF using pages and it works fine. The catch is that BTF itself doesn't use the UI Shell. So it really depends what you mean.
    Can you be more specific what you're attempting to achieve? Are you trying in one page that uses the UI Shell, to embed a BTF in a region where the BTF uses pages rather than page fragments? Or, do you simple want lots of pages in your overall applications unbounded task flow to include the UI Shell template? As Alex has asked, we don't really have information of what you're trying to put in what at this stage.
    For the record, the better forum to ask such questions about the dynamic tab shell template is the ADF UI Patterns & Best Practices OTN forum:
    ADF UI Patterns & Best Practices
    ...however given you've started this thread here, you might as well continue.
    CM.

  • Extracting Raw Data Using Excel Services REST API

    I am trying to create a home page in SharePoint 2013 that shows quick stats based on an Excel workbook stored in a document library. Through my research I found that I could leverage the Excel Services REST API to pull the information I need from the workbook
    via URIs and display it on a SharePoint page in a seamless manner.
    The problem I am having is pulling the data I need as raw text.
    For example, I can create a page in HTML that says "Our sales for the month grew by [X%]" and use an img src tag that points to
    http://sample.com/_vti_bin/ExcelRest.aspx/Documents/workbook.xlsx/Model/Ranges('Sheet1!A1')?$format=image to show a picture of cell A1 which contains the data I want to show inline on my page.
    I want a way to pull the data in cell A1 as raw text so that I can format it as part of the HTML page. I tried using
    $format=html, but that just takes me to a separate page where the cell is formatted exactly as it is in the workbook.
    Is there a way to do what I am trying to do? The more detailed your response can be, the better as I am fairly new to these features. And also, is there a way to perform calculations of cells in HTML? Thanks in advance.

    Hi,
    According to your description, you might want to extract text value from a specific cell in an Excel file using Excel Services REST API.
    As there is no such predefined format can be used to return text value only, I would suggest you return the value as json format, then parse it and set to your HTML
    tag using jQuery.
    Here is a <p> tag with a script which can set the value of the <p> tag with the value gets from cell “A1”:
    <p id="cell1">test</p>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
    //replace the strings below with yours
    var libName = "Shared Documents";
    var fileName = "Book1.xlsx";
    var rangeName = "A1";
    $(function(){
    var s = getCellValue(libName, fileName, rangeName);
    $("#cell1").html(s);
    function getCellValue (libName, fileName, rangeName)
    var cell = "";
    $.ajax({
    url: _spPageContextInfo.webAbsoluteUrl + "/_vti_bin/ExcelRest.aspx/"+libName+"/"+fileName+"/model/Ranges('"+rangeName+"')?$format=json",
    method: "GET",
    headers: { "Accept": "application/json; odata=verbose" },
    dataType: "json",
    async: false,
    success: function (data) {
    console.log(data.rows[0][0].v);
    cell = data.rows[0][0].v;
    error: function (data) {
    console.log(data);
    return cell;
    </script>
    You can add it into your page via a Content Editor Web Part, it will take effect after the page loaded.
    Here are two links about how to add code into page via Content Editor Web Part:
    http://blogs.msdn.com/b/sharepointdev/archive/2011/04/14/using-the-javascript-object-model-in-a-content-editor-web-part.aspx
    http://sharepointadam.com/2010/08/31/insert-javascript-into-a-content-editor-web-part-cewp/
    Best regards
    Patrick Liang
    TechNet Community Support

  • Configure hosted services verbose monitoring using REST management API

    I know how to configure verbose monitoring for my hosted services in the management portal as described in: http://www.windowsazure.com/en-us/manage/services/cloud-services/how-to-monitor-a-cloud-service/
    Is it possible to do the same using the management API? What is the REST command?
    Thanks
    Manu
    Manu

    I don't think there's a public REST API available just yet for cloud services monitoring. Given that Windows Azure Portal is built on top of Service Management API, I'm pretty sure that there's an API beneath this monitoring but is not exposed just yet for
    general consumption. I would recommend keeping an eye on Service Management API documentation page for updates:
    http://msdn.microsoft.com/en-us/library/windowsazure/ee460799.aspx
    Hope this helps.

  • Error in oim Role creation using Role Manager Service API from Standalone Java client

    Hi,
      Facing the following error when trying to create Role using Role Manager Service API from a standalone java client .
    Tried with the solution of changing ,
    Login into the Web Logic Admin Console --> Servers --> OIM Server --> Protocols --> Modify the Maximum Message from 100000000 to 1000000000, but still the problem persists.
    Exception in thread "main" org.omg.CORBA.BAD_PARAM:   vmcid: 0x0  minor code: 0  completed: No
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(Unknown Source)
    at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(Unknown Source)
    at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(Unknown Source)
    at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(Unknown Source)
    at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(Unknown Source)
    at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(Unknown Source)
    at org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source)
    at com.sun.org.omg.SendingContext._CodeBaseStub.meta(Unknown Source)
    at com.sun.corba.se.impl.encoding.CachedCodeBase.meta(Unknown Source)
    at com.sun.corba.se.impl.io.IIOPInputStream.getOrderedDescriptions(Unknown Source)
    at com.sun.corba.se.impl.io.IIOPInputStream.inputObjectUsingFVD(Unknown Source)
    at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(Unknown Source)
    at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(Unknown Source)
    at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(Unknown Source)
    at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(Unknown Source)
    at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(Unknown Source)
    at oracle.iam.identity.rolemgmt.api._RoleManager_ogut7n_RoleManagerRemoteRIntf_Stub.createx(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
    at $Proxy2.createx(Unknown Source)
    at oracle.iam.identity.rolemgmt.api.RoleManagerDelegate.create(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
    at weblogic.security.subject.SubjectProxy.doAs(SubjectProxy.java:64)
    at weblogic.security.subject.SubjectManager.runAs(SubjectManager.java:262)
    at weblogic.security.Security.runAs(Security.java:48)
    at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
    at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
    at $Proxy3.create(Unknown Source)
    at com.idm.role.CreateRole.createRole(CreateRole.java:113)
    at com.idm.role.CreateRole.main(CreateRole.java:167)
    Thanks In Advance

    Hi , I have used OIM 11g  R2.
    Please find below the code we have used,
    package com.idm.role;
    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.Hashtable;
    import java.util.Iterator;
    import java.util.Set;
    import java.util.logging.Logger;
    import javax.security.auth.login.LoginException;
    import oracle.iam.identity.exception.NoSuchRoleException;
    import oracle.iam.identity.exception.RoleAlreadyExistsException;
    import oracle.iam.identity.exception.RoleCreateException;
    import oracle.iam.identity.exception.RoleLookupException;
    import oracle.iam.identity.exception.RoleModifyException;
    import oracle.iam.identity.exception.SearchKeyNotUniqueException;
    import oracle.iam.identity.exception.ValidationFailedException;
    import oracle.iam.identity.rolemgmt.api.RoleManager;
    import oracle.iam.identity.rolemgmt.api.RoleManagerConstants;
    import oracle.iam.identity.rolemgmt.vo.Role;
    import oracle.iam.platform.OIMClient;
    import oracle.iam.platform.authz.exception.AccessDeniedException;
    public class CreateRole {
    private final static Logger LOGGER = Logger.getLogger(CreateRole.class .getName());
    OIMClient oimClient = null;
    public OIMClient connectToOIM() {
      LOGGER.info("In connectToOIM ");
      Hashtable env = new Hashtable();
      env.put(OIMClient.JAVA_NAMING_FACTORY_INITIAL,
        "weblogic.jndi.WLInitialContextFactory");
      env.put(OIMClient.JAVA_NAMING_PROVIDER_URL,
        "t3://V-hydidm1.itig.co.in:14000");
      System.setProperty("java.security.auth.login.config",
        "F:\\Projects\\IDM\\Team\\Env_setup\\OIM_Setup\\designconsole\\config\\authwl.conf");
      System.setProperty("java.security.policy",
        "F:\\Projects\\IDM\\Team\\Env_setup\\OIM_Setup\\designconsole\\config\\xl.policy");
      System.setProperty("OIM.AppServerType", "wls");
      System.setProperty("APPSERVER_TYPE", "wls");
      System.setProperty("weblogic.Name", "oim_server1");
      oimClient = new OIMClient(env);
      try {
       oimClient.login("xelsysadm", "Passw0rd".toCharArray());
      } catch (LoginException e) {
       e.printStackTrace();
      System.out.println("Connected");
      return oimClient;
    public void readRoleMetadata() {
      LOGGER.info("in readRoleMetadata ");
      RoleManager roleManagerService = oimClient
        .getService(RoleManager.class);
      try {
       Role roleVo = roleManagerService.getDetails(
         RoleManagerConstants.ROLE_DISPLAY_NAME, "API Role1", null);
       Set attributeNameSet = roleVo.getAttributeNames();
       Iterator it = attributeNameSet.iterator();
       while (it.hasNext()) {
        System.out.println("Attribute Name :: " + it.next());
       // roleVo.setAttribute("ADentitlements", "Security Admin access");
       String adEntitlements = "" + roleVo.getAttribute("ADentitlements");
       System.out.println("AD Entitlements :: " + adEntitlements);
       System.out.println("DB Entitlements :: " + ""
         + roleVo.getAttribute("DBEntitlements"));
       System.out.println("Unix Entitlements :: " + ""
         + roleVo.getAttribute("UnixWindows"));
       System.out.println("VPN :: " + "" + roleVo.getAttribute("VPN"));
      } catch (SearchKeyNotUniqueException e) {
       e.printStackTrace();
      } catch (NoSuchRoleException e) {
       e.printStackTrace();
      } catch (RoleLookupException e) {
       e.printStackTrace();
      } catch (AccessDeniedException e) {
       e.printStackTrace();
    public void createRole() {
      LOGGER.info(" in Create role ");
      RoleManager roleManagerService = oimClient
        .getService(RoleManager.class);
      HashMap<String, Object> roleCreationAttrMap = new HashMap<String, Object>();
      roleCreationAttrMap.put(RoleManagerConstants.ROLE_NAME, "API Role1");
      roleCreationAttrMap.put(RoleManagerConstants.ROLE_DESCRIPTION,
        "This Role is created using API Role1");
      roleCreationAttrMap.put(RoleManagerConstants.ROLE_DISPLAY_NAME,
        "API Role1");
      roleCreationAttrMap.put("ADentitlements", "API Role1 AD Entitlements");
      roleCreationAttrMap.put("DBEntitlements", "API Role1 DB Entitlements");
      roleCreationAttrMap.put("VPN", "No");
      roleCreationAttrMap.put("UnixWindows", "API Role1 Unix Entitlements");
      Role roleVo = new Role(roleCreationAttrMap);
      try {
       System.out.println(" Before Create role *********************************************");
       roleManagerService.create(roleVo);
       System.out.println("Role Created .. ");
      } catch (ValidationFailedException e) {
       e.printStackTrace();
      } catch (RoleAlreadyExistsException e) {
       e.printStackTrace();
      } catch (RoleCreateException e) {
       e.printStackTrace();
      } catch (AccessDeniedException e) {
       e.printStackTrace();
    public void modifyRole() {
      LOGGER.info(" in modifyRole ");
      RoleManager roleManagerService = oimClient
        .getService(RoleManager.class);
      Role roleVo;
      try {
       roleVo = roleManagerService.getDetails(
         RoleManagerConstants.ROLE_DISPLAY_NAME, "API Role1", null);
       String roleKey = roleVo.getEntityId();
       HashMap<String, Object> roleCreationAttrMap = new HashMap<String, Object>();
       roleCreationAttrMap.put("ADentitlements",
         "Updated API Role1 AD Entitlements");
       Set roleKeySet = new HashSet<String>();
       roleKeySet.add(roleKey);
       Role roleVoNew = new Role(roleCreationAttrMap);
       roleManagerService.modify(roleKeySet, roleVoNew);
       System.out.println("Role Modified ..");
      } catch (SearchKeyNotUniqueException e) {
       e.printStackTrace();
      } catch (NoSuchRoleException e) {
       e.printStackTrace();
      } catch (RoleLookupException e) {
       e.printStackTrace();
      } catch (AccessDeniedException e) {
       e.printStackTrace();
      } catch (ValidationFailedException e) {
       e.printStackTrace();
      } catch (RoleModifyException e) {
       e.printStackTrace();
    public static void main(String args[]) {
      CreateRole miscObj = new CreateRole();
      miscObj.connectToOIM();
      miscObj.createRole();
      //miscObj.readRoleMetadata();
    Thanks In Advance .

Maybe you are looking for

  • Soft links and xcode projects

    In other unix environments using soft links ("ln -s") is a handy way of "abstracting away" at the file system level what a file or directory actually contains, so that its contents can be easily changed without having to modify the original file or d

  • How can I know the route of my files?

    My files are archived in their "current location" (referenced). I have two HD for this. Sometimes I would like to know in which of them are my originals. I have tried to find the route but I can´t . Please, where is it written?

  • How to set the settings

    for such a file: to get it out in the same size? ~Karl

  • GRN Document Date / Posting Date Field Mandatory or Freeze

    Dear All, We have four Company Codes with single Chart of Accounts. we required to make GRN Document Date / Posting Date Field Mandatory or freeze on current date for only one Company Code. Can it be possible through Standard Configuration? Regards,

  • Zone Cluster: Creating a logical host resource fails

    Hi All, I am trybing to create a logical host resource with two logical addresses to be part of the resource, however, the command is failing. Here is what I run to create the resource: clrslh create -Z pgsql-production -g pgsql-rg -h pgprddb-prod,pg