Create proxy to an object created by a wcf service class

Hi
We are trying to develop a WCF Service which is configured as per-session.
The service object creates another object which has some data + functions, and has its own Interface which is available on both client and server.
Is it possible to somehow create a proxy of this object on the client so that the client can call the object functions directly ?
Thanks
Abhishek
PS:
The object interface is also configured as a servicecontract and the object class is also configured as a service. However if we call this service independently, it creates a new instance of the object.

Hi Amy
Many thanks for replying.
OK let me try to explain by way of example code appended after my signature.
Let us say we have a service which implements Iservice1. The service contract has an operation returning an object of type Userinfo. In addition to data, the userinfo class has a method GetHistory which returns a datatable.
Datacontract and Datamember attributes will cause the UserInfo object to be recreated on the client. But what I really want is a proxy to this userinfo object, so that the GetHistory function can be called directly rather than going through Iservice1.
In general, I want the service class to be able to create a server object and then let the client have its proxy.
Kindly advise.
Thanks
Abhishek
-----Code Begins ---------------------------------
    [ServiceContract]
    public interface IService1
        [OperationContract]
        UserInfo  SelectUserDetails(UserID as Integer);
    [DataContract]
    public class UserInfo
        int userid;
        string username;
        [DataMember]
        public int UserID
            get { return userid; }
            set { userid = value; }
        [DataMember]
        public string UserName
            get { return username; }
            set { username = value; }
        public DataTable GetHistory()

Similar Messages

  • Azure newby! Persist an object across multiple Azure WCF Service Calls.

    I have created a small .NET Library (DLL) which does custom calculations and such.
    I would like to create an Azure WCF service which basically wraps this libraries API.
    The library, by necessity, is setup like an engine that must be initialized before use, so I don't want each and every service call to instantiate its own copy of the library. Is there a way to have the first call instantiate the library
    and then persist it somewhere so that other service calls will just use the same instance?

    Hello,
    We are researching on the query and would get back to you soon on this.
    I apologize for the inconvenience and appreciate your time and patience in this matter.
    Regards,
    Azam khan

  • Register Object while creating Proxy in SPROXY

    Hi,
    In SPROXY wile trying to create a PROXY  for my outbound Message Interface, I am prompted to register my object. Is it necessary to register even for custom objects thought I donu2019t have it staring it as a Z. I was under the impression that we need to register only for SAP objects. Please advise.
    Teresa

    While click on Create proxy it will ask for package name and prefix.
    Your prefix name should start with Z.
    Gaurav Jain
    Reward Point if answer is helpful

  • Error While Creating Proxy in SPROXY

    Hi All,
    We Created one Packagewith NAme ZPACK1 in SE80.
    While Creating Proxy in SPROXY TC, it is Asking Package & Prefix
    We gave Package as ZPACK1 & Prefix as ZPREFIX.
    Then One Error is Comming Like <b>"Package ZPACK1 has no use access to package interface SAI_TOOLS"</b>
    Please let me Know the Solution for this Error.
    Regards
    Bopanna

    Hi,
    The packages that contain or use proxy objects must have a use declaration for the package interface SAI_TOOLS. In addition, the corresponding structure package must contain a use declaration for the package interface SAPPINT.
    For the proxy runtime, a use declaration must be available for the package interface SAI_SXMS.
    Generating Proxies By Using Transaction SPROXY
    1. Call transaction SPROXY in the system in which you want to generate a client or server proxy.The system displays a navigation tree on the left-hand side of the screen; it has the same structure as the interface maintenance tree in the Integration Builder. The interface objects are ordered according to software component version, namespace and object type
    If no connection to the Integration Repository exists, the system only displays
    interface objects in the tree structure for which a proxy exists in the system.
    2. Choose an interface object for which no proxy already exists. To create a proxy for this interface object, double click the context menu Create Proxy.
    3. In the dialog box, specify the name of the package where you want to create the proxy objects. You can also specify a prefix for the names of all objects to be created to avoid naming conflicts with names that already exist in the system.
    Other way.. try this :
    Generating Proxies  By Using the Object Navigator (Transaction SE80).
    1. Call the Object Navigator (transaction SE80) in the system in which you want to
    generate a client or server proxy. Select a package and call the context menu. Choose Create &#8594; Enterprise Service / Web Service &#8594; Proxy Object.
    2. In the subsequent dialog window, choose the source of the WSDL document (URL/http destination, local file, UDDI  or XI Repository).
    If you choose XI Repository as the source of the WSDL document, the hierarchy of the software component versions in the Integration Repository is displayed in the
    subsequent window. The interface objects are ordered according to software
    component version, namespace and object type . Choose an interface object for which no proxy already exists and confirm by choosing Copy.
    3. In the subsequent dialog window, enter the name of the package where you want to create the proxy objects. You can also specify a prefix for the names of all objects to be created to avoid naming conflicts with names that already exist in the system.
    Hope this will help you a bit.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • ABAP PROXY CLIENT PROBLEM TO CREATE

    Hi,
    I am trying to create an ABAP PROXY of the type OUTBOUND SYNCH in my R/3. We already made the configuration according to the manual of the page 26. When I select my interface and I click in the button to create proxy, a screen appears for me to choose the package. I select the package $TMP and a screen appears of registering object. 
    I am trying to create an ABAP PROXY for the interface Z_MI_TESTE_XI_ABAP_PROXY_OU but when I will create the proxy for the transaction sproxy the screen it appears of registering the object "CO_Z_MI_TESTE_XI_ABAP_PROXY_OU." I already researched some documents in that the proxy begins with the letter "Z." How do I do for in the generation of my abap proxy the same nominated "ZBLOGCO_Z_MI_TESTE_XI_ABAP_PROXY_OU comes? 
    How do I do to register the object above? 
    Which are the steps to create an abap proxy?

    Hi,
    Thanks for all the response.
    I followed step by step the document http://weblogs.sdn.sap.com/pub/wlg/1387. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] I created the proxy and the program abap. When I execute the same for the transaction SE38, it doesn't appear anything. No message is passed for SAP XI and it doesn't also happen any mistake. Is it necessary more some configuration type? Does creating only the proxy the same take charge of doing the communication with SAP XI? In the moment of the creation of the proxy how do I associate my R/3 to the XI? It follows the code used abap below:
    *& Report  ZCO_TESTE_XI_ABAP_PROXY_OUT
    REPORT  zco_teste_xi_abap_proxy_out.
    DATA prxy TYPE REF TO zco_mi_teste_xi_proxy_out.
    CREATE OBJECT prxy.
    DATA it TYPE  zzmt_teste_xi_proxy.
    TRY.
        it-z_mt_teste_xi_abap_proxy-empname = 'Sravya'.
        it-z_mt_teste_xi_abap_proxy-empno = '80101'.
        it-z_mt_teste_xi_abap_proxy-departmentname = 'NetWeaver'.
        CALL METHOD prxy->execute_synchronous
          EXPORTING
            output = it.
         commit work
      CATCH cx_ai_system_fault .
        DATA fault TYPE REF TO cx_ai_system_fault .
        CREATE OBJECT fault.
        WRITE :/ fault->errortext.
    ENDTRY.

  • Name Problem while creating Proxy

    Dear All,
    While creating a proxy we are getting warning with regards to NAMES PROBLEM.
    Under Names Problem tab there are 3 comments:
    1. Object Already Exists
    2. Name already exists
    3. Special Character / underscore at position 30 deleted.
    As per my understanding the objects already exists, but I have deleted those objects create earlier by deleting the proxy.
    Is there any way from where we can delete already deleted objects?
    Is it because of Cache refresh, if yes than please tell how to refresh Cache in ECC system?
    While activating any Functional Module in same ECC system, I can see all earlier created objects although I have deleted all of them while deleting proxy objects.
    Please help!!
    Regards
    Edited by: Chanakya Sharma on Jun 21, 2010 11:16 AM

    > 1. Object Already Exists
    > 2. Name already exists
    > 3. Special Character / underscore at position 30 deleted.
    >
    > As per my understanding the objects already exists, but I have deleted those objects create earlier by deleting the proxy.
    Table structures are not deleted automatically. Check in SE80 for all objects created with SPROXY.
    The issue could happen also, when name of data type, message type and message interface is equal. Then the creation ot the data type objects fails, is there is already an object related to message type.
    For proxy genaration you should name all ojects with a prefix, like DT for data type.

  • Error while creating Attribute In BPM Object

    Hi,
    I am getting error while creating attributes in BPM Object.I am not able to open BPm object. while opening I am getting Below error.
    Please suggest.
    java.lang.StringIndexOutOfBoundsException: String index out of range: 28
         at java.lang.String.charAt(Unknown Source)
         at fuego.type.TypeFactory.createFromName(TypeFactory.java:482)
         at fuego.type.TypeFactory.forNameLazy(TypeFactory.java:263)
         at fuego.lang.CollectionTypeDescription.getIndexTypeRef(CollectionTypeDescription.java:146)
         at fuego.compiler.type.TypeRenderer.renderArrayType(TypeRenderer.java:355)
         at fuego.compiler.type.TypeRenderer.renderType(TypeRenderer.java:261)
         at fuego.compiler.type.TypeRenderer.renderArrayType(TypeRenderer.java:344)
         at fuego.compiler.type.TypeRenderer.renderType(TypeRenderer.java:261)
         at fuego.compiler.type.TypeRenderer.render(TypeRenderer.java:106)
         at fuego.compiler.type.TypeRenderer.render(TypeRenderer.java:94)
         at fuego.compiler.type.TypeRenderer.render(TypeRenderer.java:78)
         at fuego.designer.XObjectComponentStructurePanel$CellTypeRenderer.getText(XObjectComponentStructurePanel.java:612)
         at fuego.designer.XObjectComponentStructurePanel$CellTypeRenderer.getText(XObjectComponentStructurePanel.java:605)
         at fuego.ui.peer.swt.SwtTable$SwtTableModel.getColumnText(SwtTable.java:956)
         at org.eclipse.jface.viewers.TableColumnViewerLabelProvider.update(TableColumnViewerLabelProvider.java:70)
         at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:135)
         at org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(AbstractTableViewer.java:386)
         at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:466)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
         at org.eclipse.core.runtime.Platform.run(Platform.java:857)
         at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
         at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
         at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2026)
         at org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:695)
         at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:633)
         at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:620)
         at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1433)
         at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1368)
         at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1330)
         at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1431)
         at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:536)
         at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1390)
         at fuego.ui.peer.swt.SwtViewer.repaint(SwtViewer.java:59)
         at fuego.ui.peer.swt.SwtColumn.setLabelProvider(SwtColumn.java:89)
         at fuego.ui.Column.setLabelProvider(Column.java:82)
         at fuego.designer.XObjectComponentStructurePanel.buildUI(XObjectComponentStructurePanel.java:299)
         at fuego.designer.AbstractEditor.build(AbstractEditor.java:542)
         at fuego.designer.AbstractEditor.init(AbstractEditor.java:133)
         at fuego.designer.XObjectComponentStructurePanel.<init>(XObjectComponentStructurePanel.java:126)
         at fuego.eclipse.studio.multipageeditor.BPMObjectMultipartEditor.createStructurePage(BPMObjectMultipartEditor.java:581)
         at fuego.eclipse.studio.multipageeditor.BPMObjectMultipartEditor.addDefaultPages(BPMObjectMultipartEditor.java:464)
         at fuego.eclipse.studio.multipageeditor.ExtendedMultiPageEditorPart.createPages(ExtendedMultiPageEditorPart.java:399)
         at fuego.eclipse.studio.multipageeditor.eclipse.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:253)
         at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
         at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
         at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
         at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:299)
         at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:179)
         at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
         at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
         at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:400)
         at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
         at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
         at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1604)
         at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
         at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
         at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
         at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
         at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
         at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
         at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
         at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:774)
         at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:673)
         at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:634)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2737)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651)
         at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643)
         at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2557)
         at fuego.eclipse.ui.DefaultEditor.open(DefaultEditor.java:65)
         at fuego.eclipse.studio.EclipseWorkbench.createEditorFromResource(EclipseWorkbench.java:529)
         at fuego.eclipse.studio.EclipseWorkbench.createEditor(EclipseWorkbench.java:297)
         at fuego.designer.action.OpenCatalogNodeAction.open(OpenCatalogNodeAction.java:91)
         at fuego.designer.action.OpenCatalogNodeAction.run(OpenCatalogNodeAction.java:55)
         at fuego.eclipse.ui.EclipseAction.run(EclipseAction.java:180)
         at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
         at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
         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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

    When you say you're having trouble "opening" the BPM Object, is it possible you instead mean you're having trouble expanding the BPM Object?
    Just a guess, but if you're having trouble expanding the BPM Object I'd suspect that the object's xcdl contents might be corrupted. You might want to consider exporting and saving a backup of the project and then try deleting the object from the Project Navigator. Rebuild the BPM Object once you've deleted it.
    Dan

  • How to find the number of references created for a given  object ??

    How to find the number of references created for a given object in a big application environment.
    That means, if i give any object name (of my application) as input, then how can i find the[b] number of references created for that particular object ??

    Please do not post the same question multiple times.
    As for your original question, there is no direct way to do it.
    Especially not the way you phrased it,
    since objects don't have "names".
    Applications also don't have "names".
    They have classes and instances.
    Also, there are 2 related issues, and I'm not sure which one is the one you asked.
    #1. Finding the number of references to the same object.
    Eg.
    Map<String,String> a = new HashMap<String,String>();
    Map<String,String> b = new HashMap<String,String>();
    Map<String,String> c = a;In this case, there are only 2 objects.
    The first object has (at least) 2 references pointing to it.
    The second object has (at least) 1 reference pointing to it.
    (There may be more, if the HashMap library keeps
    references to these things, or if the HashMap object has
    some internal cyclic references...)
    If you're asking this, then it can't be done.
    It's an active research topic in universities
    and software research labs, called "alias analysis".
    Type it in google, and you'll see people are working hard
    and having little success so far.
    #2. Finding the number of instances created from a class.
    In this case, what you have to do is to add a counter to
    the constructor of the class. Every time an object is constructed,
    you increment the counter. Like this:
       class MyClass
           public static int counter = 0;
           public MyClass( )  { counter++; }
        // Then later in your program, you can do this:
        MyClass a = new MyClass();
        MyClass b = new MyClass();
        System.out.println(MyClass.counter); // It should show 2Note: you won't be able to do this to every class in the system.
    For every class you care about, you have to modify its constructor.
    Also: when an object is deleted, you won't always know it
    (and thus you won't always be able to decrement the counter).
    Finalizers cannot always work (read Joshua Bloch's
    "Effective Java" book if you don't believe me), but basically
    (1) finalizers will not always be called, and
    (2) finalizers can sometimes cause objects to not be deleted,
    and thus the JVM will run out of memory and crash

  • Getting "An attempt is made to create or change an object ..." in one env.

    I have a colleague who wrote some JAX-WS client code using what WebLogic 10.3.3 provides out of the box. His code is creating a "wsse:Security" element by using SOAPFactory and SOAPElement and related classes. This has worked fine on a couple of dev boxes. They've now promoted the deployment to the next environment, and now the attempt to add the constructed "Security" element fails with:
    org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
    They have verified the problem environment is running the same version of the JDK and WebLogic, but they haven't yet confirmed they have the same WebLogic patches.
    I repeat, this is working fine on his development environment and on at least two development servers, and is having this problem on the next environment down the line towards production.
    I looked for some other experiences with this error, and the only substantive code suggestion I found from that was to add all the used namespaces to the envelope. He did that, but it didn't make a difference.
    The relevant block of code is the following (it fails on the last line):
                        SOAPEnvelope envelope = soapMsgContext.getMessage().getSOAPPart().getEnvelope();
                        SOAPFactory soapFactory = SOAPFactory.newInstance();
                        // WSSecurity <Security> header
                        SOAPElement wsSecHeaderElm = soapFactory.createElement(
                                  "Security",
                                  AUTH_PREFIX,
                                  AUTH_NS);
                        QName wsSecHdrMustUnderstandAttr = new QName("S:mustUnderstand");
                        wsSecHeaderElm.addAttribute(wsSecHdrMustUnderstandAttr, "1");
                        SOAPElement userNameTokenElm = soapFactory.createElement("UsernameToken",
                                  AUTH_PREFIX,
                                  AUTH_NS);
                        Name userNameTokenIdName = soapFactory.createName(
                                  "id",
                                  "wsu",
                                  "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd");
                        userNameTokenElm.addAttribute(userNameTokenIdName, "Id-8zvykuwmK8yg6dxn3632nQJB");
                        SOAPElement userNameElm = soapFactory.createElement("Username",
                                  AUTH_PREFIX,
                                  AUTH_NS);
                        userNameElm.addTextNode(userName);
                        SOAPElement passwdElm = soapFactory.createElement("Password",
                                  AUTH_PREFIX,
                                  AUTH_NS);
                        Name passwdTypeAttr = soapFactory.createName("Type");
                        passwdElm.addAttribute(passwdTypeAttr, "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText");
                        passwdElm.addTextNode(password);
                        userNameTokenElm.addChildElement(userNameElm);
                        userNameTokenElm.addChildElement(passwdElm);
                        // add usernametoken to Security header
                        wsSecHeaderElm.addChildElement(userNameTokenElm);
                        // create SOAPHeader instance for SOAP envelope
                        SOAPHeader sh = envelope.getHeader();
                        // add SOAP element for header to SOAP header object
                        sh.addChildElement(wsSecHeaderElm);
    -------------------------

    if it matters, after extensive gnarly debugging, we found the problem was this expression:
    new QName("S:mustUnderstand")
    When we changed this to properly specify the prefix and namespace, the environment it was failing on worked.
    What was odd about this is that other server environments seemingly using the same jars (we turned on verbose:class to verify this) had no problem with this code.
    What was really annoying about this problem is that the error message could have been much more informative. I'm sure the code reporting the error must have known it was this attribute that was having the problem, but it only gave us a very vague error message about the entire element we were creating, which had several sub-elements.

  • I am planning to create custom defined  DSO Object & Info cube

    Hi ,
                     i am planning to create custom defined  DSO Object & Info cube.what ratio i can calculate what is the keyfields & what are the data fields in DSO.How can i calculate.
                     2. how can i create  suitable dimensions, suitable characterstics  for dimensions.what ratio i can decide.
    Thanks,
    chandu.

    Hi Diego Garu,
                               Thanks for your fast response.i
    VBELN     VBAP     2LIS_11_VAITM                                              0DOC_NUMBER
    POSNR     VBAP     2LIS_11_VAITM                                                0S_ORD_ITEM
    KUNNR     VBAK     2LIS_11_VAHDR                                                 0SOLD_TO
    VBELN     VBRP     2LIS_13_VDITM                                                    0BILL_NUM
    FKDAT     VBRK     2LIS_13_VDHDR                                                 0BILL_DATE
    INCO1     VBRK     2LIS_13_VDHDR(INCO1FieldNot Available in Data Source)     0INCOTERMS
    ZTERM     VBRK     2LIS_13_VDHDR(Payment terms field Not Available in Data Source)                                                                                0UCPYTERMS
    NETWR     VBRP     2LIS_13_VDITM                                                           0NETVAL_INV.
                                           here data is coming from the multible tables.that why i am planning to create custom defined data source based on view. here how can i calucate dso is suitable or cube is suitable.
    suppose dso is suitable how can i decide which on is the data field and which one is the key field.
                                        how can i decide how many dimensions are needed here.and which chara are suitable for that dimensions.
    Thanks ,
    chandu.

  • Creating and Binding View Objects dynamically : Oracle Jdeveloper 11g

    Hello,
    We are trying to create and bind view objects dynamically to adf data visualization components.
    The view object is a result of multiple tables.
    We are using Oracle JDeveloper 11g Technical Preview. ( can't upgrade to TP2 or TP3 now).
    We have found this : http://radio.weblogs.com/0118231/stories/2003/07/15/creatingUpdateableMultientityViewObjectDefinitionsDynamically.html on our search for the same.
    The sample application however, is in 10g , hence required migration.
    Also, it was a standalone application with the TestClient.java having a main() method.
    Our requirement is for Web Application; we use Adf+jsf .
    Guidance of any sort is very much appreciated.
    Thanks in advance.
    -Anil Golla

    Hi,
    there also exist a forum for JDeveloper 11: JDeveloper and OC4J 11g Technology Preview
    What you are trying todo is not trivial because you need to not only dynamically create the VO, you would also dynamically need to create the binding meta data for it (assuming you use ADF). Not sure if the API to modify the binding is public, so posting it on the JDeveloper 11 forum bears a glimpse of hope for an answer
    In JDeveloper 10.1.3 you can't do this
    Frank

  • Interval 01 was not created for number range object HRTEM_REFN

    Dear expert!
    Now, I'm getting some issues in Training and event management module.
    - The first, I created business event
    - Second, I process to book for business event by tcode: PSV1 --> book --> book/payment info --> activity allocation.
    But when I was booking, the system displayed error: "Interval 01 was not created for number range object HRTEM_REFN"
    Help me, please!
    Best regards, Huy!

    Go to the customization as below
    Training and event mgt>Basic settings>Number range maintanence>Define number ranges for External operation
    and maintain number ranges as 01 Internal
    Hope ur problem will solve
    with regards
    partha

  • Possible bug when creating multiple detail view objects

    using jdev 11.1.1.0.0 to build jsf/adf applications. I wanted to report what seems like a bug in 11g. I have a parent table which has two child tables. After creating the appropriate entities, associations, views, and view links, the app module looks like this:
    MasterView
    --DetailView1
    --DetailView2
    The two detail view objects are on the same level, they are both direct children of the Master view.
    Here's what's happening:
    1) I create the master entity/view objects (MasterView)
    2) I create one of the detail entity/view objects (DetailView1).
    3) I create the association and view link to establish relationship between MasterView and DetailView1. Everything works fine.
    4) I create the entity/view objects for second detail view (DetailView2)
    5) When I attempt to create a second view link (based off an association) to establish the relationship between MasterView and DetailView2, the query clauses of the Create View Link wizard (screens 4 and 5) do not get created properly. I finish the wizard and save. Not only does this view link not get created properly, but in the process the query clauses that were defined in the first view link between MasterView and DetailView1 are wiped out. This will break any coordination between master and detail views in both the app module tester and runtime. Has anyone seen this problem?

    fyi, it looks like this issue has been resolved with jdev 11.1.1.0.2 (Update 2)

  • 500   Internal Server error while creating decision dialog type object

    Hi All
    I am working on one CAF application and creating Create an Alternative Block Type. Inside this block I am creating decision dialog type object.When i reached at 4th step [Set Configuration] and editing [Decision Options]. After giving [Option ID]  when i clicks on add button.
    Following errors occuring
    500   Internal Server Error
    Detailed Error Information
    Detailed Exception Chain
    java.lang.NullPointerException
         at com.sap.caf.eu.gp.ui.actions.decpage.VEditOption.onActionAddRule(VEditOption.java:290)
         at com.sap.caf.eu.gp.ui.actions.decpage.wdp.InternalVEditOption.wdInvokeEventHandler(InternalVEditOption.java:235)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:330)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:297)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:706)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:660)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:228)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:56)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:47)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Those who have encountered such problem please provide me some help.
    With Thanks
    Ramshanker

    Refers to issue below... there is a patch available...
    ParserException when using a Decision Dialog CO
    SAP Note Number: 990460 
    Symptom
    ParserException with the attached stack trace occurs when a Decision Dialog CO is created or executed
       com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >:(:main:, row:1, col:491)
        at com.sap.engine.lib.xml.parser.XMLParser.scanAttList(XMLParser.java:1566)
        at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1687)
        at com.sap.engine.lib.x ml.parser.XMLParser.scanDocument(XMLParser.java:2792)
    The following messages can be found:
    Failed to get Related Model Object for the object com.sap.caf.eu.gp.ui.actions.decpage.CDecisionPageInterfaceViewdecisionPageUsage1
    Or
    Failed to get Related Model Object for the object com.sap.caf.eu.gp.ui.co.exec.decision.COExecDecision
    Reason and Prerequisites
    Affected versions:
    Netweaver 04s SP 07 to SP 09
    Solution
    <b>A.) The issue is cleared in these deliveries:
    NW04s SP 09 Patch 1
    B.) Possible workaround before the release of mentioned deliveries:
    Redeploy the following component from SAP-EU SCA (if redeployment does not help undeploy and deploy again)
    caf/eu/gp/ui/actions</b>
    Header Data
    Release Status Released for Customer
    Released on 19.10.2006
    Priority Correction with high priority
    Category Program error
    Primary Component BC-GP Guided Procedure
    Release
    Soft. Component Release Track From Release To Release And Successors
    SAP-EU   7.00   7.00   7.00    
    Correction Instructions
    No correction instruction available 
    Support Packages
    No Support Packages available 
    Related notes
    No related notes available 
    Attributes
    No attributes available 
    Attachments
    No attachments available
    Reason - Side Effects
    SAP Notes / Patches corrected by this Note

  • How to create transport request in object transport

    How to create transport request in object transport from server to server
    thanks in advance
    arya

    hi,
    when ever u r creating any object in devlopment and saving it will ask for request.create request and release in se09.
    put mail to basis people to transport ,thy will transport using STMS transaction.

Maybe you are looking for

  • Oracle: PL/SQL Procedure involving two different Schema in two different Databases

    I got a scenario like this, I have an existing procedure that looks similar to this. PROCEDURE A_DATA_B( p_ID IN SCHEMA1.TABLE1.ID%TYPE,                     p_MATCH IN SCHEMA1.TABLE2.MATCH%TYPE,                     p_STATUS IN SCHEMA1.TABLE3.STATUS%T

  • Problem with dynamic table

    As users write a lot in text fields of, the table jumps to another page (it doesn't look nice) and overflows. Users can't see the rest of the table. The problem seems to be the subform below. Do you have any ideas to avoid this without changing much

  • Java on BB?

    I can't seem to figure out how to upgrade (or install?) Java on my pearl 8130. I'd like to view certain youtube videos to share with non-PC having friends, and I get the flash error message- the same message firefox users get when using noscript. Hel

  • DG physical standby

    Hi all, 11.2.0.1 Aix 6.1 I still am confused how do our DG physical standby be activated and up-to-date in case when disaster happens? My boss tasked me a service-level-agreement, to check every hour that the archivelogs should be latest updated to t

  • Human task jsp customizatioın problem...

    We customize human task jsp and add some field. We want assign a calculation result to a task variable... autogenerated HTML inbup box name is slns0_cl_task_sl_ns0_cl_payload_sl_ns1_cl_bim_Myprocessname_myparametername.. is it possible to assign a va