How to specify pairs of variabel names and values in OdiInvoke

Hi,
If you start the scenario from a web service, you are invoking the service OdiInvoke. When you look at the WSDL for this Web Service, you will notice that beyond the scenario name, version and the execution context, you can specify pairs of variable names and values. The WSDL for the web service as following:
<xsd:complexType name="SessionRequestType">
<xsd:sequence>
<xsd:element minOccurs="0" default="true" type="xsd:boolean" name="Synchronous"/>
<xsd:element minOccurs="1" type="xsd:long" name="SessionId"/>
<xsd:element minOccurs="0" default="true" type="xsd:boolean" name="KeepVariables"/>
<xsd:element minOccurs="0" type="VariableType" name="Variables" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="VariableType">
<xsd:all>
<xsd:element type="xsd:string" name="Name"/>
<xsd:element type="xsd:string" name="Value"/>
</xsd:all>
</xsd:complexType>..........
If i call this OdiInvoke web service from BPEL, From BPEL assign activity, how can i specify pairs of variable names and values? Example: i have variable 1 and value1, variable 2 and value2, how to assign them to pairs if variable names and values. so that after the assignment, the payload for assign activity in BPEL can be become as following:
<Variables>
<Name>variable1</Name>
<Value>value1</Value>
<Name>variable2</Name>
<Value>value2</Value>
</Variables>
Thanks!
Susan

Try this way,
In the expression builder copy the xml fragment to the target node. This will result in the below assign action in the bpel code
<assign name="Assign1">
<copy>
<from expression="&lt;Variables>&lt;Name>variable1&lt;/Name>&lt;Value>value1&lt;/Value>&lt;Name>variable2&lt;/Name>&lt;Value>value2&lt;/Value>&lt;/Variables>"/>
<to variable="outputVaribable"/>
</copy>
</assign>

Similar Messages

  • How to get all property names and values of an bean instance at runtime?

    How can I get all property names and values of an bean instance at runtime?
    (The class of the bean instance is dynamic and I can not know before I write the code .)

    Look at Class. It has a way to get at all public methods and attributes.
    If you need to get to private attributes you can do what the Introspector does and expect the methods to follow the Bean pattern and pull the attributes out based upon that. Privates are all hidden from direct access but through the Bean Pattern they can be figured out.

  • How do I find the image name and media_link for an ubuntu image in the Gallery?

    I am trying to create VM using Python API.  
    I have a custom Linux image:
    image_name = 'cloudN-Azure-20150205-os-2015-02-05'
    media_link = 'https://portalvhds10ssz63zgvb9g.blob.core.windows.net/vhds/cloudN-Azure-20150205-os-2015-02-05.vhd'
    When I used this image to create VM, it failed.
    I would like to use the ubuntu 1204 image in the Gallery.
    How do I specify the image_name and media_link in my Python code?  Basically, where and how do I find the image name and media_link for an image in the Azure image Gallery?
    Thanks in advance...

    hi sir,
    Did you try to use "List OS Image"? we can get the property form the results:
    result = sms.list_os_images()
    for image in result:
    print('Name: ' + image.name)
    print('Label: ' + image.label)
    print('OS: ' + image.os)
    print('Category: ' + image.category)
    print('Description: ' + image.description)
    print('Location: ' + image.location)
    print('Affinity group: ' + image.affinity_group)
    print('Media link: ' + image.media_link)
    print('')
    Please try it. Any questions or it doesn't work, please let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to get the name and value of an attribute on a node/element that is not a child

    Hello,
    Can someone shed some wisdom on how I can compare 2 xml nodes for differences.
    My main challenge is I need to use the attributes/values of 'ProductDescription' and 'Features' as 'key' to identify the same node in
    another doc with the same layout, but different content.
    I am having trouble getting the name of the attribute on the node, 'ProductDescription' and 'Features'.  I can only seem to get the node names, but not the attributes on the node.  I need the name, because it can be different from doc to doc, so
    I can't hardcode this.
    Can someone please help with how to retrieve an attribute name/value on a node that is not a child.  Here's an example of what
    my xml looks like:
    DECLARE
    @myDoc1 xml
    ,@mydoc2 xml
    DECLARE
    @ProdID int
    SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <features featureID = "2" featureName = "seat">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>
    SET @myDoc2 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>2 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <features featureID = "2" featureName = "wheel">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>
    I need to compare the attributes of 'ProductDescription' and 'Features' from @mydoc1 against @mydoc2 to see if they are the same based on those 2 nodes first.  If they are, then i want to show the difference in the child elements. 
    This will eventually be an outer join to give me the differences betw the 2 docs based on those key values (node attributes).
    I used node('//*') for the path, and value('local-name(../.)', 'varchar(50)') as element
    ,value('.[not(@xsi:nil = "true")]','VARCHAR(255)') AS new_value
    ...etc...
    but that only gives me the node names, and the child elements.  It does not give me back the attribute names and values from the node itself.
    Thanks in advance for your help.
    cee

    Are you looking for something like this:
    DECLARE @myDoc1 xml
    SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <Features featureID = "2" featureName = "seat">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>'
    SELECT T.c.value('local-name(.)', 'nvarchar(50)') AS name,
           T.c.value('.', 'nvarchar(50)')  AS value
    FROM   @myDoc1.nodes('ProductDescription/@*') AS T(c)
    Erland Sommarskog, SQL Server MVP, [email protected]

  • TA38622 how do you delete a contact name and phone number from this?  i have deleted it from my regular contacts, but it remains in a text memory when i begin to type the beginning of a name

    How do I delete a contact name and phone number from my texting memory?  I have deleted this contact from my regular contact information; however when I text and begin to text a contact beginning with the 1st letter of the name I had deleted, it brings up the old, deleted contact information in my texting history only.

    You would have to restore as new.

  • HT5539 how do i pair my wireless keyboard and mouse to a new mac mini

    how do i pair my wireless keyboard and mouse to a new mac mini

    First you have to unpair them from their previous devices.
    Troubleshooting wireless mouse and keyboard issues

  • How to pass tag name and value dynamically in the output of PCo notification?

    Hi,
    I have a requirement to develop such a scenario where there can be multiple no of tags in PCo (Say 10) but there will be single notification to push the tag name when the value got changed and the changed value to MII. for any value change for any of the tag, the notification will be trigger. So As per my knowledge I have to pass the tag name and value dynamically in the "output" tab of the notification. But need your support to find out how to pass them dynamically.
    Thanks in advance.
    Regards,
    Suman

    Hi Suman/Jeedesh,
    As per Pco notification, it will trigger whenever any of the tag value changes in Agent instance subscription items.
    For above issue, My suggestion
    1. Create DB table name TAGLIST with 200 tags as rows in columns (Tagname, TagValue)
    2. Based on notification trigger, create a transaction and update values w.r.t TagNames in above table
    3. Next time, when notification trigger with fresh value for any of the tag, cross check with existing TagName with Value and update in DB table.
    4. And in the mean time, send those Tag details vie mail trigger or as per requirement
    Instead of creating 200 notification, above is a just alternate way suggestion to achieve dynamic tag value change notification.
    Hope it might solve your problem
    Regards,
    Praveen Reddy

  • How to find PG.xml file name and path associated with a FUNCTION

    Hi,
    I am having a function:IRC_VIS_HOME_PAGE with Web HTML value as below:
    OA.jsp?akRegionCode=IRC_VIS_HOME_PAGE&akRegionApplicationId=800&OAPB=IRC_BRAND
    How to find PG.xml file name and path assoicated with above funtion.
    Thanks,
    ashok

    Ashok,
    Function IRC_VIS_HOME_PAGE will have 2 parameter defined for it which are OASF and OAHP where
    OASF=<SelectedFunctionName> - this tells the Framework to select this function in the given "Home Page" menu context.
    OAHP=<HomePageMenuName> - this is used ONLY with the OASF parameter, and it is used to establish the current menu context. It should point to a "Home Page" menu.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Failed to connect to the server, specify a valid server name and ID and pw

    I am trying to install business one on a clients application server, where their sql server software is installed on a different server. When I get to the point of the installation where it asks for connection information: sql type, sql server name, logon and password, it fails after entering the correct info. I have double checked this info, typed it repeatedly and correctly and I continue to receive the following error: Failed to connect to the server, specify a valid server name and ID and password and try again. Can anyone lead me in the right direction to determine what my issue is? I can connect to sql server with the sa logon, on the sql server and I can access/ping the sql server from the application server, I just can't connect to sql server through the installation. I checked the sql server settings that I know of, so I don't know if it is an issue there or if it is a port issue or what.
    Thanks for any help.

    Following is whjat the customers IT team reported they did to get the install running:
    RIGHT!  Worked it out!    It wasn't firewall in the end at all, it was that the SAP B1 installation isn't aware of SQL Server 2008 R2 (version 10.50.x.x).
    The vbscript was looking for the presence of SQL Server 2008 (version 10.0.x.x) in the registry and not by scanning ports or suchlike.
    If you use the autorun installation from this folder; E:\BusinessEvolution\Software\SAP_Extract_via_WINZIP it should work fine - I've modified the checksql.htm to look for SQL 2008 R2 and now autorun goes past that first problem.
    Not sure if that will be any help to you? In that instance I think we were installing 8.8 PL17...
    The upgrade frpm there to 8.81 PL07 worked fine

  • HT201240 I have a new macbook pro that did not have a disk, OS X was pre installed  so how can i change the administrators name and password, it did not migrate properly from my hard drive.., so how do i

    I have a new macbook pro that did not have a disk, OS X lion 7.3.4 was pre installed  so how can i change the administrators name and password, it did not migrate properly from my hard drive.., now there is some mysterious administrator name and or password??

    See #5
    Step by Step to fix your Mac

  • How do I change my user name and password if I can't logon to the computer?

    how do I change my user name and password if I can't logon to the computer?

    What Mac is this with what version of OS X?

  • How do I export the 600 names and address in Address Book v5.0 to Palm Desktop 4.2.1

    How do I export the 600 names and address in Address Book v5.0 to Palm Desktop 4.2.1  I have tried both importing and exporting to no vil.

    How do I export the 600 names and address in Address Book v5.0 to Palm Desktop 4.2.1  I have tried both importing and exporting to no vil.

  • How do i change the administrator name and password when i forgot both of them

    how do i change the administrator name and password when i forgot both of them?

    Find the user name and then reset the password.
    Start the computer,then press and hold down command and R keys to start into recovery partition.
    When you see the Apple logo, release the keys.
    Wait until  OS X Utilities window shows up.
    Move the mouse to the menubar at the top and click "Utilities", then select "Terminal"
    from the drop down.
    Terminal window will appear.
    Type in   resetpassword   and press enter on the keyboard.
    Leave the Terminal window open.
    Reset Password Utility window will open with Macintosh HD selected.
    Select the user account from the popup menu box under “Select user account”.
    Note down the user account name.
    Enter a new password.
    Reenter the new password for the user.
    Note it down.
    Enter a hint.
    Click the "Save" button.
    Click  in the menubar and select Restart.
    Log in.
    If Keychain dialog box appears, select “Create New Keychain”.

  • How can i recover my admin name and password from my i mac. i could not get through to it.

    how can i recover my admin name and password from my i mac. i could not get through to it.

    What do you mean "I could not get through to it" Are you trying to login remotely?

  • How do I get the user name and password for the Apple Extreme Router to connect to a Slingbox

    How do I get the user name and password for the Apple Extreme Router to set up my Slingbox?  It will not accept the Apple Extreme Name and password.

    The AirPort Extreme does not have a User Name, but it does have a device name and device password, which you may have already tried.
    There is also a Wireless Network Name and Wireless Network Password for the AirPort Extreme, which might be what the Slingbox is looking for if you are trying to connect it to your wireless network.
    There are no other "user names" or "passwords" on the AirPort Extreme.
    You established the device name, device password, wireless network name and wireless network password when you originally configured the AirPort Extreme.
    If you cannot remember these, you will need to perform a Soft Rest to reset everything. Follow the instructions in this Apple support document:
    Resetting an AirPort Base Station or Time Capsule FAQ

Maybe you are looking for