Save Nutrient Analysis Web Service

Hi,
I'm trying to consume the Save Nutrient Analysis v3.0 web service of the EP 3.3. And I'm getting the following error:
"RESULT_INVALID_INPUT UOM [ISOCode:GR, Abbreviation:g] not allowed for InfoodsCode:SUGAR"
The complete input I'm giving for NutrienItems is:
  <v3:NutrientItems>
  <v3:tNutrientItem>
  <v3:InfoodsCode>SUGAR</v3:InfoodsCode>
  <v3:ValuePer100Gms>0.3298</v3:ValuePer100Gms>
  <v3:UOM>
  <v33:ISOCode>GR</v33:ISOCode>
  <v33:ID>G</v33:ID>
  <v33:Abbreviation>g</v33:Abbreviation>
  </v3:UOM>
  <v3:Source>From Manufacturer</v3:Source>
  <v3:Comments xsi:nil="true" />
  </v3:tNutrientItem>
  </v3:NutrientItems>
I already tried entering different combinations of InfoodsCode and UOM, and still getting the same error message. This is the query I used to get all the possible combinations:
  SELECT
   UOM.ID
   ,UOMML.NAME
   ,UOMML.ABBREVIATION
   ,UOM.ISOCODE
   ,FCLNUTRIENT.INFOODSID
  FROM
   UOM
  INNER JOIN UOMML
   ON UOM.PKID = UOMML.FKUOM
   AND UOMML.LANGID = 0
  INNER JOIN FCLNUTRIENT
   ON UOM.PKID = FCLNUTRIENT.FKUOM
I would appreciate your help.
Thanks!
-Victoria 

The Data Admin Toolkit allows you to define the allowed UOMs for nutrient items. It is available in the Extensibility Pack.

Similar Messages

  • Save Nutrient Analysis 6.0 (api version 24)

    Hi,
    I am trouble shooting an error on our 6.0 installation. I am using the Save Nutrient Analysis API but I am getting an error.
    "FaultException'1 was unhandled" "The application config root has already been set".
    Is anyone familiar with this type of issue and any ideas on how to fix it?
    Thanks

    Hi Ron M,
    As far as I know we do not use the other service calls and do not have a webservice client set up for them, so I don't know if they work. Our web service client is running within our network. Our version 6.1 (api verision 25) works fine for the save nutrient analysis. But yes, I think something is not set up right on the 6.0 environmnent.
    Server stack trace:
    at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
    at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at ConsoleApplication1.ServiceReference1.NutritionServices.SaveNutrientAnalysis(NutrientAnalysisRequest request)
    at ConsoleApplication1.ServiceReference1.NutritionServicesClient.ConsoleApplication1.ServiceReference1.NutritionServices.SaveNutrientAnalysis(NutrientAnalysisRequest request) in E:\LIMS_WebServiceClient\ConsoleApplication\Service References\ServiceReference1\Reference.cs:line 2516
    at ConsoleApplication1.ServiceReference1.NutritionServicesClient.SaveNutrientAnalysis(tNutrientSample[] NutrientAnalysisSamples, Boolean& IsSuccessful, NutrientAnalysisResult[]& Results) in E:\LIMS_WebServiceClient\ConsoleApplication\Service References\ServiceReference1\Reference.cs:line 2522
    at ConsoleApplication2.Program.Main(String[] args) in E:\LIMS_WebServiceClient\ConsoleApplication\Program.cs:line 678
    ----- here is the code that the debugger navigates to on the error  ---
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    ConsoleApplication1.ServiceReference1.NutrientAnalysisResponse ConsoleApplication1.ServiceReference1.NutritionServices.SaveNutrientAnalysis(ConsoleApplication1.ServiceReference1.NutrientAnalysisRequest request) {
    return base.Channel.SaveNutrientAnalysis(request); *<---- Line 2516 in Reference.cs* }
    Edited by: 949004 on Oct 2, 2012 10:24 AM

  • Can't Save settings in Web Service

    Strange: Recently, I neeeded to change a few trivial things in the Web Service. But when I click Save, the list of Sites disappears, and if I click back on the Sites button I see that the change I wanted wasn't saved. It doesn't matter what I change -- any setting for any site in Web Service is not Saveable.
    Anyone else run into this? Know of a way to solve it?
    ...Rene

    Yes, thanks. I've been editing httpd.conf anyway, and whenever I run apachectl configtest, there are no problems with the configuration. So I know that what I've done is okay, and shouldn't cause Server Admin to refuse to cooperate -- but for some reason it does. I mean, at this point, I can't use Server Admin at all for the Web Service, which is starting to make the Xserve feel like nothing more than a pretty Linux box.
    ...Rene

  • CUP 5.3: risk analysis in workflow impossible due to web service performance?

    Hello experts,
    We are facing a huge challenge within a AC 5.3 implementation.
    Here, AC has been used successfully with CUP and RAR for quite some time now. However, the RAR analysis has not yet been integrated into the CUP workflow. We would like to integrate the RAR analyis in CUP now.
    Based on the existing role concept (that uses functional master roles and derived roles per company code, with ca. 30 company codes in place) and the shared service operations in some areas such as FI, there is a large number of users with many roles and consequently, many SoD risks (of course, they are all "repeat" risk per company code).
    This leads to a long RAR analysis run time, but it's still acceptable. Analysis on permission level for such "power users" runs about 1 minute, on action level about 5-6 seconds.
    However, the web service between RAR und CUP is a problem and cannot cope with our violations. We have currently set the threshold to 75000. In this case, the analysis + web service runs 1-2 minutes. However, we have some users with 200-300.000 violations. In this case, if we deactivate the threshold, we will experience a web service time-out eventually, even with analysis on action level because the amount of violations the web service has to process is the same (or even higher with some false positives).
    We also have compensating controls in place for these power users, which will of course reduce the web service run-time considerably. However, this is not applicable to NEW user requests because for those, the compensating controls will be assigned only AFTER the risk analysis has taken place and the risk manager receives the workflow item.
    Has anyone experienced this in the past and found a viable solution or work-around? We are basically short of options and considering dropping the project.
    Note: An upgrade to 10.X is not (currently) a solution because this upgrade is scheduled and budgeted only for later.
    Thanks a lot and best regards
    Patrick

    Any opinions on this?
    Cheers and thanks
    Patrick

  • VO object error while calling Web Service.

    Hi,
    I created one page with 5 text field and one choice list with three buttons.
    Functionality is :
    1. As page loads I am calling Web Service to set the values in fields.
    2. When user enters new values or changed the old values and click on "Save" button, again web service is called to store that values.
    Problem is when changing message choice value. For message choice I created one VO for lookup_code and meaning.
    When I click on "Save" Button it showing me error
    Attribute set for LookupCode in view object EncryptionModeVO1 failed
    Regards,
    Ajay

    Hi,
    This is working fine locally. But when I Deployed to apps and running from there it giving me following error.
    Exception Details.
    oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:612)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1166)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2513)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1894)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:538)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:426)
         at _OA._jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
         at _OA._jspService(_OA.java:221)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
         at _RF._jspService(_RF.java:225)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)
    ## Detail 0 ##
    java.lang.NullPointerException
         at oracle.apps.xxios.dashboardadmin.webui.DashboardAdminControllerCO.processRequest(DashboardAdminControllerCO.java:55)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:596)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1166)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2513)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1894)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:538)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:426)
         at _OA._jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
         at _OA._jspService(_OA.java:221)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
         at _RF._jspService(_RF.java:225)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)
    java.lang.NullPointerException
         at oracle.apps.xxios.dashboardadmin.webui.DashboardAdminControllerCO.processRequest(DashboardAdminControllerCO.java:55)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:596)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1166)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2513)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1894)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:538)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:426)
         at _OA._jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
         at _OA._jspService(_OA.java:221)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
         at _RF._jspService(_RF.java:225)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)Regards,
    Ajay

  • Java web Service and Tomcat

    Hello,
    how can I set where service save files. Becouse when I save file in web service running on Tomcat 6.0, it is in directory Tomcat\bin.

    Well how do you tell it which file/directory to save it in?
    Just with new File("myFileName.txt") ?
    In that case it just uses the current working directory which normally just happens to be the Tomcat/bin directory.
    Better way is to use the constructor for File which takes two arguments - a directory and a filename
    File saveDirectory = new File("c:/data/webservicefiles/");
    File saveFile = new File(saveDirectory, "myFileName.txt");
    Of course the directory for saving should be configurable somewhere. In a properties file most likely.

  • Applying report filter when using OBIEE web services

    Hi
    Would like to know if it's possible apply report filter when using the web serivce ? Read from Oracle doc that there's this applyReportParams() method in ReportEditingService that could do the job. Can anyone confirm this ?
    Currently we've tried to access the report using the WebCatalogService, read the xml and retrieve the result using the XMLViewService successfully. However there's an additional requirement to pass in the report filter on the fly.
    Thanks in advance

    Hi Gerardnico,
    I have a question regarding the OBIEE Web Services,
    We are using C # for Automation code to test Obiee Analysis Web Services,while designing filter in C # to call report we are facing difficulty with Presentation Variable using Variable value. Where as it is working fine for Column value.
    Note: The choice list has 2 custom values.
    So please guide me in this regard.
    Regards,
    Pj

  • Ssrs report web service to save report as pdf throws error Soap exception unhandeled by user code

    I am creating a C# web application to save  an SSRS report as a pdf file on my local machine.
    I added the ReportService web reference as RS2005 and ReportExecution2005 web reference as RE2005.
    http://myServer/ReportServer_DEVPROJECT/ReportExecution2005.asmx?WSDL
    http://myServer/ReportServer_DEVPROJECT/ReportService2005.asmx?WSDL
    I created the following function SaveReport that is called on button click. My report can be accessed on the report server with the following url:
    http://myServer/Reports_DEVPROJECT/Pages/Report.aspx?ItemPath=%2fData+Mgmt%2fSample+Letter
    On the Report Manager home page the report link appears as "SAMPLE LETTER".
    It is deployed in the DataMgmt folder on the Report Manager.
    It uses a data source called "DS Letter" with option "Credentials stored securely in the report server"
    My application gets compiled, but I get the following run time error:
    Error: Soap exception unhandeled by user code. The item '/DataMgmt/Sample Letter' cannot be found. ---> Microsoft.ReportingService
    s.Diagnostics.Utilities.ItemNotFoundException: The item '/DataMgmt/Sample Letter' cannot be found.
    Please check my code and let me know what I can do to run this successfully. Once this is done, I would like to get help with passing a parameter (memberID) to the generate report for that member, through this application.
    Thank You in advance for your help.
    public static void SaveReport()
    RS2005.ReportingService2005 rs;
    RE2005.ReportExecutionService rsExec;
    // Create a new proxy to the web service
    rs = new RS2005.ReportingService2005();
    rsExec = new RE2005.ReportExecutionService();
    // Authenticate to the Web service using Windows credentials
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rsExec.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rs.Url = "http://myServer/ReportServer_DEVPROJECT/ReportService2005.asmx";
    rsExec.Url = "http://myServer/ReportServer_DEVPROJECT/ReportExecution2005.asmx";
    string historyID = null;
    string deviceInfo = null;
    string format = "pdf";
    Byte[] results;
    string encoding = String.Empty;
    string mimeType = String.Empty;
    string extension = String.Empty;
    RE2005.Warning[] warnings = null;
    string[] streamIDs = null;
    string fileName = @"c:\temp\samplerHAPeport.pdf";
    string _reportName = @"/DataMgmt/Sample HAP Letter";
    string _historyID = null;
    bool _forRendering = false;
    RS2005.ParameterValue[] _values = null;
    RS2005.DataSourceCredentials[] _credentials = null;
    RS2005.ReportParameter[] _parameters = null;
    try
    _parameters = rs.GetReportParameters(_reportName, _historyID, _forRendering, _values, _credentials);
    RE2005.ExecutionInfo ei = rsExec.LoadReport(_reportName, historyID);
    RE2005.ParameterValue[] parameters = new RE2005.ParameterValue[1];
    if (_parameters.Length > 0)
    //parameters[0] = new RE2005.ParameterValue();
    //parameters[0].Label = "";
    //parameters[0].Name = "";
    //parameters[0].Value = "";
    rsExec.SetExecutionParameters(parameters, "en-us");
    results = rsExec.Render(format, deviceInfo,
    out extension, out encoding,
    out mimeType, out warnings, out streamIDs);
    using (FileStream stream = File.OpenWrite(fileName))
    stream.Write(results, 0, results.Length);
    catch (Exception ex)
    throw ex;
    protected void BtnGenReport_Click(object sender, EventArgs e)
    SaveReport();

    Hello Devster,
    Thank you to post your question on TechNet forum.
    After reviewing the whole post, I have a question to you. You can access the report via the link, http://myServer/Reports_DEVPROJECT/Pages/Report.aspx?ItemPath=%2fData+Mgmt%2fSample+Letter.
    From the URL, I can see that the report is located at: /Data Mgmt/Sample Letter, instead of /DataMgmt/Sample Letter. In addition, I found that the target report is "/DataMgmt/Sample HAP Letter" instead of "/DataMgmt/Sample Letter" as the error described. I
    am not sure whether you post out the correct code segment.
    Please check the above things on your side, and hope it is helpful to you.
    Regards,
    Edward
    Edward Zhu
    TechNet Community Support

  • How to save web service request key and response value in cache to reduce calling the service for same type of requests

    Hi
    I have a web service which return the response based on the request key.
    I need to save the key and the response value in cache for around 30mins
     to reduce the web service calls for better performance.
    Appreciate if any once can share a sample code

    using System.Runtime.Caching;
    public List<string> cachingwebserviceresponse()
    {//Create a cache key
    string strParameters = "1234";//Create a cache value holding object
    List<string> results = new List<string>();//Create a cache
    ObjectCache cache = MemoryCache.Default;//Assign key for the cache
    string cacheKey = strParameters;//Check whether the key exists in the cache//If exists assign the values from the cache instead of calling the webservice//else call the web service and add the response to the cache
    if (cache.Contains(cacheKey))
    results = cache.Get(cacheKey);
    else
    { //calling the web service client
    using (service.webservice fd = new service.webserviceContractClient())
    { //Call the web service function to get the results
    results = fd.DataSearch(strParameters);
    } //Create the cache expiration policy. I have created for 30 minutes.
    CacheItemPolicy cacheItemPolicy = new CacheItemPolicy();
    cacheItemPolicy.AbsoluteExpiration = DateTime.Now.AddMinutes(30); //Add the response to the cache based on the key
    cache.Add(cacheKey, results, cacheItemPolicy);
    return results;

  • Web Service do not work after save in Designer ES2 SP1

    Dear all,
    I am trying to migrate 8.2.1 process to ES2.
    Although it have some bugs, but the process are working fine when using ES2 without any SP.
    One day we installed SP1 for ES2 and hopeing for some bugs we found fixed, but find none of them fixed... oh well, so we continue the migration.
    And the problem happen when we try to modify the form for some testing, we find that even we *did not* modify anything in the form, if we pressed the save button and deploy the form, all the web service related code in the form will stop working.
    Anyone have any idea about this?
    Thanks in advance.
    Regards
    Bill

    Hi Paul,
    Thanks for the suggestion.
    Already tried to update the dataconnection by right click at data view, and choice "Refresh Data View", but that doesn't help, would like to know are there any others way to do so?
    I already open a case with the support, but it seem that the engineer in APAC region have a very slow response time...
    Just wonder if I can send the case to others support center with better response time.
    I tried to compare the form before and after save and find that some information may missing in the post-SP1 form.
    In the pre-SP1 from, I can find a <dd:dataDescription> section for every web service used in the form, but in the post-SP1 form they are missing.
    I tried to add that section back and it will make the web service usable again, but the problem is I need to do that every times I modify anything, and I also need to create this section for a every new web service added to the form...
    Regards
    Bill

  • Best option to save data populated from a web service?

    I have manage to made a windows form that uses a web service to populate the data into a DataGridView. Then I have a column for adding comments next to each row. So a user could add some comments about this data for each row. Also I have a drop down list
    to select some options for each row.
    Actually everytime when connecting to this web service there are 7 DataGridViews that are populated with data, one for each TabPage added to a TabControl. So 7 tabs then.
    If I close this form and reopen it then it's all gone.
    What is the simpliest way if I want to store the settings (comments and selected option in drop down list). The idea is that I want to store this as a project under a name like "Project1", "Project2" etc. So every project would
    have their own settings. Then when starting the application all over again, instead of populate it from the webservice, I then load it from wherever it's stored. So I can pick the particular project I want for example "Project1".
    So what is the easiest options here? Would it be best to store it in a database or could it be stored in different datasets (one for each project)? Also if I use a dataset every TabPage with it's own unique DataGrid would then be represented as DataTable
    I suppose. But then I don't know if the data in a dataset would still be there the next time - if it only stores temporarily?
    As for now my only intention is to build this for myself, so I don't need to have any end user in mind. 

    Hello,
    Here is one idea which may  be implemented in several ways.
    The data stored locally that is not available in the web service (let's look at the web service as read-only) could be stored in a xml file then read into your project via DataSet.ReadXml and DataSetWriteXml to save changes.
    For this to work you need to utilize primary keys to identify data coming from the service to match up with locally saved data.
    That is the concept which as stated above can be implemented in many ways. I would suggest using a class dedicated to the above and not place the bulk of the code into your forms.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Save cookie/session after login on web service client

    I am calling a web service that has a login method. It sets a session id in
    a cookie. Every subsequent call fails and says I'm not logged in. How do I
    save their cookie or session ID such that the server thinks I'm logged in?
    Here's the client code (I used clientgen to create jar from wsdl);
    DatashareManager dsm = new DatashareManager_Impl();
    WebServiceContext wsContext = dsm.context();
    WebServiceSession session = (WebServiceSession)wsContext.getSession();
    DatashareManagerSoap dsmsoap = dsm.getDatashareManagerSoap();
    String result = dsmsoap.login("username", "password"); // this works
    EResult result2 = dsmsoap.deleteReusableList(1, "bob"); // this fails 'Not
    logged in'

    That sounds like a difficult one to implement because you'll essentially need to intercept the AppsLogin servlet (or AppsLocalLogin.jsp) to conditionally redirect the user somewhere else - and that would be an intrusive (and not recommended) customization.
    Some possible alternatives:
    1. Rather than publish http://hrlive.myintranet.local:8000/OA_HTML/AppsLogin as the URL that you users connect to, publish something like http://hrlive.myintranet.local:8000/OA_HTML/XxLogin.jsp instead. That could be a custom JSP that asks the user to agree to the disclaimer and, when they agree, store that agreement in a cookie and then redirect to AppsLogin.
    That's not quite the same because you're asking the user to agree before they login. It also means that they can navigate direct to AppsLogin and bypass the disclaimer (unless you customize AppsLogin to verify the cookie).
    2. Assign all users a default 'Disclaimer' responsibility with a single function (such as an EIT, or a custom OA Framework page) that allows the user to agree to agree to the disclaimer. Then once they've agreed to it have some process that automatically grants them their real responsibilities and revokes the Disclaimer responsibility. For example, if you used an EIT that could be an API User Hook.
    One problem with this approach is that you'll need to clear cache through Functional Administrator before the new responsibilities are visible so you'll either need to find a way of doing that programatically or ask the user to wait until tomorrow (assuming you do a nightly web server bounce).

  • Save SMP 2.3 web service call to log

    Is there any way to save to SMP log  web service call when SMP load MBO data?
    Message was edited by: Michael Appleby

    Hi Daniel,
    I guess you should set the log level in SCC.
         Configuration>Log settings
    You may set "Domain" level logs as well.
    Domains>Yourdomain>Log>General>Connections
    Follow this guide for additional information.
    Rgrds,
    JK

  • While doing risk analysis for profiles the web service is taking 20 minutes

    Hi All
    Iam using SAP GRC 5.2 ( As per clients requirement)
    Iam using  VirsaCCRiskAnalysisService web service
    For roles it is working fine
    But when iam doing risk analysis for profiles( S_A.DEVELOP and  S_CUS_CMP)  it is taking upto 20 minutes to give results back
    Is there any way in which we can reduce the time taken to fetch the results
    Thanks

    Hello Mph,
    This is mainly bcz these profiles are a bit heavy and have huge number of authorizations in each of them. Also since these are critical, these would be having a large number of risks which explains the reason for the delay.
    Now, besides what Harleen mentioned, what I would also recommend to you is to check the number of threads etc in the config you have done. These are the parameters which you can often change and update as per your requirements and have a great impact on the performance as well, without the need to deploy extra hardware, which is usually a pain for most organizations.
    Regards,
    Hersh.
    http://www.linkedin.com/in/hersh13

  • Risk Analysis thru Web Service

    I'm trying to get Risk Analysis (SoD violaions) for roles using web service. Current approach we are using is to first use web service SubmitRequest to create service and then use web service RiskAnalysis for SoD checks for that request. However, is there any web service which gives Risk analysis directly without creating request in GRC? If i give 2 conflicting roles then can i get risk analysis without actually creating request in GRC?
    Thanks,

    Hi Alpesh, Ankur,
    Thaks for your answer. As you said, the web service which you mentioned works for existing users with assigned roles/profiles. I was more looking for web service which will give me Risk Analysis before i assign Roles/Profiles.
    I found one service VirsaCCRiskAnalysisService which allows me to do risk analysis before assigning any roles/profiles. Of course, the condition is that User should exist in back-end system.
    Thanks,
    Sanjay shah

Maybe you are looking for