How to transform response xml according to user defined xsd?

Hi all,
In my use case I should invoke a webservcie which gives the employee details. For that I have a business service which returns the response in an xml which format is some thing like given below:
*<output>*
*<Name>Sample<Name>*
*<Id>231231<Id>*
*</output>*
But I want the response in the format given below:
*<output>*
*<Employee Attribute = 'Name' Value = 'Demo'/>*
*<Employee Attribute = 'Id' Value = '231231'/>*
*</output>*
Kindly help me in achieving this.
Thanks,
Phanindra.

in your process you start is the proxy service, after that you will arrive in the pipeline pair, and after this you route to your business service (this is just a guess of how the flow will look like)
in the request pipeline you transform the input of your proxy service to the input of your business service (right?)
in assume you do something like replace ./* in body ( send this to your xquery) and replace the result of the xquery to $body.
after this your ready to call your business service and this will result in a response.
at this time $body got replaces by the response of your business service (uses log $body) to see the content.
the only thing you need to do now is the same as you did in the request pipeline
use a second xquery which will transform $body (output of the business service) to the output of your proxy service (wsdl + xsd ?)
replace ./* in body with (your xquey response creator)
a bit clear i hope ?

Similar Messages

  • How to retrieve password character according to user logged on ?

    Hi,
    Can anybody help on this issue .
    How to retrieve password character according to user logged on ?
    I have a program will runs on multiple logins.I like restrict so that only an admin can  retrieve the password.
    How to do it ?

    > I have a report program which uploads sensitive information to presentation server.The program is also used by multiple users for other use.(billing info on excel sheet)
    That is the bugger with generic (executable) functionality. When used for multiple requirements which are too far from each other then they break or the "lowest common denominator" calls the shots.
    If this data is being uploaded from the application server, then why don't you just protect it there. The S_DATASET for that program context will not be very usefull, because it is generic.... so you can look into using S_PATH.
    > Since a user might have already logged on to system i can only ask a password as a authorization to run the program.
    Again, this means that anyone who knows the generic password (or can display / debug the code) will be able to access the data.
    A better variant of the same would be to create a symbolic service user, and prompt for that user's password before the data is downloaded. You can then use standard functions for prompting for passwords, which also update the lock counter.
    => If the password is locked due to incorrect logins, then the program is locked for this functionality as well.
    => You can periodically lock / unlock / change the access to the program, by administrating the service user in SU01.
    => Do not give this service user any authority at all - you only want to prompt for knowledge of the password, but not actually log the user itself onto the system. (see report RDDPWCHK for some example coding)
    In German this is called "von hinten durch die brust", which means something like "unusual approach but still works anyway".
    > I like to restrict access of retrieving the password  only to a  basis team.(others user can run the program)
    I would still protect the source data itself using unique authority to access it, and then control that.
    Cheers,
    Julius

  • How to make a reading implausible in user define validations?

    Hi all,
    Can any1 tell me how to make a reading implausible
    in user define validations.
    Regards,
    Darshana.

    I don't have an example at hand right now, but I've done this in the past.
    If my memory doesn't fail me, one of the return parameters of the user-exit in which you have to make your validations has a parameter that let's you define (im)plausibility.
    Edit: the user exit has:
    EXCEPTIONS
           PLAUSI_ERROR
    So, raise this exception to get an implausible reading.
    Hope this helps!
    Kevin
    Edited by: Kevin De Wilde on Jul 8, 2008 11:09 AM

  • How can 1 make an object of user defined class immutable?

    Hi All,
    How can one make an object of user defined class immutable?
    Whats the implementation logic with strings as immutable?
    Regards,

    Hi All,
    How can one make an object of user defined class
    immutable?The simple answer is you can't. That is, you can't make the object itself immutable, but what you can do is make a wrapper so that the client never sees the object to begin with.
    A classic example of a mutable class:
    class MutableX {
        private String name = "None";
        public String getName() {
            return name;
        public void setName(String name) {
            this.name = name;
    }I don't think it's possible to make this immutable, but you can create a wrapper that is:
    class ImmutableX {
        private final MutableX wrappedInstance;
        public ImmutableX (String name) {
            wrappedInstance = new MutableX();
            wrappedInstance.setName(name);
        public String getName() {
            return wrappedInstance.getName();
        // Don't give them a way to set the name and never expose wrappedInstance.
    }Of course, if you're asking how you can make your own class immutable then the simple answer is to not make any public or protected methods that can mutate it and don't expose any mutable members.
    Whats the implementation logic with strings as
    immutable?
    Regards,I don't understand the question.

  • How to find Responsibility through which the user has logged in to Disco.

    Hi All,
    I have got a requirement to create a "Usage Report Summary by Responsibility" for all Oracle user having an Access to Oracle Disco Viewer.
    In the report, I need to show the list of Oracle Users and the Responsibilities through which an User has logged in to Disco Viewer.
    Kindly help me in finding the corresponding Disco tables to full-fill this requirement.
    Available Information/queries in my Hand:
    1. Query to find the list of Workbook and its shared Responsibilities
    2. Query to find number of times an Oracle Disco Report has been run.
    Thanks a ton in Advance
    Arun

    Hi Arun
    The first place to look is to try running one of the pre-built workbooks created by Oracle for this purpose.
    I see you are working in Apps mode. Therefore, you'll need to run both of these scripts when logged in as the owner of the EUL:
    1. EUL5.SQL
    2. EUL5_APPS.SQL
    You will find both scripts in the $ORACLE_HOME/Discoverer/Util folder where your Discoverer Administrator tool is located.
    Next, you will need to log into the Administrator tool and import this EEX file: EUL5.EEX
    You will find the EEX file located in $ORACLE_HOME/Discoverer, again on the PC where Discoverer Administrator tool is located.
    After you have imported the EUL, log into Desktop or Plus and open up the EUL5 workbook that you will now see in the list and work through the various worksheets. You should find one or two that will give you what you want.
    Let us know how you get on
    Best wishes
    Michael
    http://ascbi.com

  • How to resolve the error while using user defined function.

    EPN Assembly file
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:osgi="http://www.springframework.org/schema/osgi"
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
    xmlns:jdbc="http://www.oracle.com/ns/ocep/jdbc"
    xmlns:spatial="http://www.oracle.com/ns/ocep/spatial"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd
    http://www.oracle.com/ns/ocep/jdbc
    http://www.oracle.com/ns/ocep/jdbc/ocep-jdbc.xsd
    http://www.oracle.com/ns/ocep/spatial
    http://www.oracle.com/ns/ocep/spatial/ocep-spatial.xsd">
         <wlevs:event-type-repository>
              <wlevs:event-type type-name="TestEvent">
                   <wlevs:class>com.bea.wlevs.event.example.FunctionCEP.TestEvent</wlevs:class>
              </wlevs:event-type>
         </wlevs:event-type-repository>
         <wlevs:adapter id="InputAdapter"
              class="com.bea.wlevs.adapter.example.FunctionCEP.InputAdapter">
              <wlevs:listener ref="inputStream" />
         </wlevs:adapter>
         <wlevs:channel id="inputStream" event-type="TestEvent">
              <wlevs:listener ref="processor" />
         </wlevs:channel>
         <wlevs:processor id="processor">
              <wlevs:listener ref="outputStream" />
              <wlevs:function function-name="sum_fxn" exec-method="execute">
              <bean>com.bea.wlevs.example.FunctionCEP.TestFunction</bean>
              </wlevs:function>
         </wlevs:processor>
         <wlevs:channel id="outputStream" event-type="TestEvent">
              <wlevs:listener ref="bean" />
         </wlevs:channel>
         <bean id="bean" class="com.bea.wlevs.example.FunctionCEP.OutputBean">
         </bean>
    </beans>
    Event class
    package com.bea.wlevs.event.example.FunctionCEP;
    public class TestEvent {
         private int num_1;
         private int num_2;
         private int sum_num;
         public int getSum_num() {
              return sum_num;
         public void setSum_num(int sumNum) {
              sum_num = sumNum;
         public int getNum_1() {
              return num_1;
         public void setNum_1(int num_1) {
              this.num_1 = num_1;
         public int getNum_2() {
              return num_2;
         public void setNum_2(int num_2) {
              this.num_2 = num_2;
    Adapter class
    package com.bea.wlevs.adapter.example.FunctionCEP;
    import com.bea.wlevs.ede.api.RunnableBean;
    import com.bea.wlevs.ede.api.StreamSender;
    import com.bea.wlevs.ede.api.StreamSource;
    import com.bea.wlevs.event.example.FunctionCEP.TestEvent;
    public class InputAdapter implements RunnableBean, StreamSource {
    private StreamSender eventSender;
    public InputAdapter() {
    super();
    public void run() {
         generateMessage();
    private void generateMessage() {
         TestEvent event = new TestEvent();
         event.setNum_1(10);
         event.setNum_2(20);
         eventSender.sendInsertEvent(event);
    public void setEventSender(StreamSender sender) {
    eventSender = sender;
    public synchronized void suspend() {
    Output Bean class
    package com.bea.wlevs.example.FunctionCEP;
    import com.bea.wlevs.ede.api.StreamSink;
    import com.bea.wlevs.event.example.FunctionCEP.TestEvent;
    import com.bea.wlevs.util.Service;
    public class OutputBean implements StreamSink {
         public void onInsertEvent(Object event) {
              System.out.println("In Output Bean");
              TestEvent event1 = new TestEvent();
              System.out.println("Num_1 is :: " + event1.getNum_1());
              System.out.println("Num_2 is :: " +event1.getNum_2());
              System.out.println("Sum of the numbers is :: " +event1.getSum_num());
    Function Class
    package com.bea.wlevs.example.FunctionCEP;
    public class TestFunction {
         public Object execute(int num_1, int num_2)
              return (num_1 + num_2);
    config.xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application"
    xmlns:jdbc="http://www.oracle.com/ns/ocep/config/jdbc">
         <processor>
              <name>processor</name>
                   <rules>
                   <view id="v1" schema="num_1 num_2">
                        <![CDATA[
                             select num_1, num_2 from inputStream     
                        ]]>
                   </view>
                   <view id="v2" schema="num_1 num_2">
                   <![CDATA[
                   select sum_fxn(num_1,num_2), num_2 from inputStream // I am getting error when i am trying to call this function
                   ]]>
                   </view>
                   <query id="q1">
                        <![CDATA[
                             select from v2[now] as num_2*     // Showing error while accessing the view also               ]]>
                   </query>
              </rules>
         </processor>
    </wlevs:config>
    Error I am getting is :
    Invalid statement: "select >>sum_fxn<<(num_1,num_2),age from inputStream"
    Description: Invalid call to function or constructor: sum_fxn
    Cause: Probable causes are: Function name sum_fxn(int,int) provided is invalid, or arguments are of
    the wrong type., or Error while handling member access to complex type. Constructor sum_fxn of type
    sum_fxn not found. or Probable causes are: Function name sum_fxn(int,int) provided is invalid, or
    arguments are of the wrong type., or Error while handling member access to complex type.
    Constructor sum_fxn of type sum_fxn not found.
    Action: Verify function or constructor for complex type exists, is not ambiguous, and has the correct
    number of parameters.
    I have made a user defined function in a java class and configured this function in the EPN assembly file under the processor tag.
    But when i am trying to access the function in the config.xml file , it is giving me an error in the query.
    Please provide urgent help that how to write the exact query.

    Hi,
    In the EPN Assembly file use
    <bean class="com.bea.wlevs.example.FunctionCEP.TestFunction"/>
    instead of
    <bean>com.bea.wlevs.example.FunctionCEP.TestFunction</bean>
    Best Regards,
    Sandeep

  • How to fill the records from a User Define Table to PO item Grid

    Hi To all,
    I need to fill data from User Define table records into Purchase Order Item Grid.
    I created an UDF Filed in PO - Header Part - "PRS"(Filed Name)
    By using Formatted Search in itemcode column, i called a query,
    "Select itemcode, qty from (@user define tablename) where PRS = $http://OPOR.U_PRS"
    For eg:
    Output from querry
    ItemCode Qty
    ABC 1
    DEF 2
    DFG 7
    SDGD 9
    By using formatted search it is filling only first data in to itemcode column in PO Grid.
    Please help, how can i fill ALL the data in to my PO Grid?
    Thanks in Advance
    SAGAR

    The easisest way is to create datasource and the result bind to grid.
    Datasource:
               oDBDataSource = oForm.DataSources.DBDataSources.Add("@usertablename")
                Dim xoConditions As SAPbouiCOM.Conditions
                Dim xoCondition As SAPbouiCOM.Condition
                xoConditions = New SAPbouiCOM.Conditions
                xoCondition = xoConditions.Add
                xoCondition.BracketOpenNum = 1
                xoCondition.Alias = "u_zn"
                xoCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                xoCondition.CondVal = "cond"
                xoCondition.BracketCloseNum = 1
                oDBDataSource.Query(xoConditions)
    binding (example for matrix, in grid is simillar)
                oMatrix.Clear()
                Dim cols As SAPbouiCOM.Columns
                Dim column As SAPbouiCOM.Column
                cols = oMatrix.Columns
                column = cols.Item("colX")
                column.DataBind.SetBound(True, "@usertable", "u_x")
    oMatrix.LoadFromDataSource()
    hoep it helps
    Petr

  • How to change the text of a user defined field in dynamic selections?

    Logical Database PSJ is used by t code CJI3 - we added a couple of user fields into the dynamic selections of CJI3.
    Now - how to change the text of this user filed (USR01 of structure PRSP_R in logical database PSJ)?
    Found an OSS note - 86980 - that tells that this is not possible.
    But when we read the documentation on the user field (CJI3 - dynamic selections  - double click on user field - F1), it shows the following text:
    User-defined field in which you can enter general information with a length of up to 20 characters.
    Dependencies
    The names (key words) for  user-defined fields depend on the field key.
    Now the question is where to change the field key..
    Thanks,
    Ven

    Madhu - you did not get the question I think.
    Anyways - I found an OSS note 1266643 - this code change should take care of the issue - it will then reflect the details maintained in custoizng at transaction code OPS1..
    Thanks,

  • How to check empty idoc fields in user defined function

    Dear All,
    I am working on an IDOC to file scenario. In my user defined function, I want to check whether a particular field of the idoc is populated. I can perform this test in message mapping by comparing the field with an empty constant.
    How can I do the same test in an advanced user defined function? I have tried all the following, but none has worked so far
    If (a.length == 0) ….
    If (a[0].length == 0) …
    If (a[0] == “”) …
    If (a[0] == “ “)…
    Am I doing something wrong?
    Thx/Farshad

    To check whether an element is not available:
    if (a.length == 0)
    but you have to set cache to context. If you set cache to queue, it will not work, as in this case the context changes are part of the array a.
    To check whether an element is empty:
    if (a[0].equals(""))
    Regards
    Stefan
    Message was edited by: Stefan Grube
    Message was edited by: Stefan Grube

  • How do I change frame sizes to user-defined frame sizes

    Hi,
    I hope someone can help me. I dont know how to change my project frame size to a user-defined frame size.
    ( like from 1920x1080p to 575x900p ) Ive found nowhere a answer to this question.

    You can try this workaround:
    http://library.creativecow.net/payton_t/FCPX_Custom-Resolution-Timelines/1

  • How to execute a transaction in specified user defined screen.

    Hi,
    I have created an alv tree in that I'm calling a transaction after double click on node of that tree. Please help me for to show the called transaction in user defined specified screen.
    Thanks in advance.

    i have  a program in production system if i type the request and execute its sends a mail to my admin saying to transport the request to production system.....thats y??????
    just tell me ur idea.............

  • How to get the tag of the User Defined Variables using the Get Tag method%3F

    For the cRIO modules under a cRIO Chasis, a tag value can be obtained using the Get Tag method with crio.Type to the TagName input of the method. When it comes to the User Defined Variables, what should be fed to the TagName input?

    For the cRIO modules under a cRIO Chasis, a tag value can be obtained using the Get Tag method with crio.Type to the TagName input of the method. When it comes to the User Defined Variables, what should be fed to the TagName input?

  • How to change role tabs according to users?

    I'm sure somebody else asked this question before but I could not find any answer yet.
    I always design roles and check "Entry point" mark to make it one of portal main tabs. Sometimes what I need is creating restricted pages for some groups under the same role. What I mean is, I want to show same role to same groups of users but for some of them I need to restrict access - or make invisible - to some pages or worksets under the role. So is it possible? Or do I need to prepare same copy of role for different needs?
    Thanks...

    Hi,
    You can achieve this by grouping the Users,
    Suppose a role has two worksets A & B.
    Create a group of users who only need access to Workset A, and another group for Workset B.
    Now open your workset and give the eu permission only to the respevetive group.
    (Content Admin->Portal Contnet->(You folders)/Your Workset->right click the workset and open permissions)
    If users require to access both the worksets, assign them to both groups. Groups can be created and adminstered by User Administration->Identity Management.
    You cn use similar settings at page and iView level.
    Hope this helps.
    Thanks,
    Vamshi

  • How to bind dynamic xml with Java objects without xsd

    have a question, and hope someone here can help me.
    In my current project, I will get a xml file, containing some information of each user, and map them into a set of user objects.
    For each user, there are some fixed attributes, such as name, phone#, age, position, etc. The problem is, client can customize, and add new attibutes, such as address, favorite color, so there will be no xsd for the xml.
    What I want to do, is map fixed attributes to user object attributes, for example, name attribute to User.name, and they will have corresponding getters, and setters, but for custom attributes, I want to add them to a HashMap in User object, for example, use string "ADDRESS" as the key, and address as the value.
    Is there any way I can do this? Thank you very much for any help you can provide.

    It would not be too hard to do in regular code.
    First, make a HashSet with the Strings for the names of the known attributes that will be processed with setters.
    Then, get the NamedNodeMap via getAttributes(). That will give you all attributes -- both the ones you will handle with your setters and the ones you will handle via a HashMap.
    Then, loop through the NamedNodeMap. For each attribute, get the name and value. If the name is in the HashSet of known values, process it with a list of
    if ( attName.equals( "name" ))
        whatever.setName( value );
       continue;
    }If it is not in the HashSet, then set the value into your HashMap with the name and value.
    There is no standard way to do this.
    Dave Patterson

  • How to change list's column to user defined type in sharepoint2013?

    In my SharePoint Site Collection has a one list, it contains some column of the following type text, date, multiline  etc, so here i want to change the number field into range filed(like slider <input type="range" min="0" max="100"/>
    ) so i don't know, how to do this...? 
    and I am using sharepoint2013, visual studio 2013 and SharePoint Designer

    Not sure what you mean by slider field, However, create a custom field with custom type. Refer to the following posts for more information
    https://sp2013fieldsamples.codeplex.com/
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/5c9ffbe9-122f-4afa-a910-281926e6b2c9/how-to-create-custom-field-types-for-sharepoint-2013?forum=sharepointdevelopment
    --Cheers

Maybe you are looking for

  • How to send quiz results to a web page?

    Okay, this should have taken 2 minutes, not 2 hours. Very frustrating. Here is the situation: * Downloaded Captivate 5 Trial Version * Created based quiz (which took forever to figure out how to set the correct answers -- HORRIBLE user interface for

  • Text Message Forwarding Not Displaying MacBook Pro

    I am having an issue in which one of my MacBook Pros no longer appears in the menu for "Text Message Forwarding" on my iPhone 6. I have two MacBook Pros (named MBP Old and MBP New), I only see MBP Old in the "Text Message Forwarding" menu. Yesterday,

  • Settlement rule does not exists in order number.

    Hi All, I have been recieving a error while trying to save the Production order. The error reads as "Settlement rule does not exixts in order". But fact is that order has settlement rule. Also there is a default setting done in order type settlement

  • Issue with removing attachments in mail

    Since my update to Yosemite i have been experiencing a problem when removing attachments from email messages. At random a few seconds after removing the attachment the rest of the message becomes unreadable - just a bunch of random symbols and letter

  • Is the music I play from iTunes Match taking up storage space on my iPad?

    I'm a bit confused. I have about 9000 songs in my laptop iTunes. I signed up for iTunes Match. As I play songs from those 9000 is it bringing them into my iPad and using storage there, or do they stay in my iCloud storage area and simply play from th