Get the message attribute values in Orchestration without using property promotion

I have the following schema :
Now I want to get the values of FName,LName in orchestration without using any property promotion ?
Prakash

There are also multiple ways of creating the Xpath:
- Full path with namespaces - Rahul Madaan showed this one
- Full path without namespaces:
FName = xpath(InputMessage, "string(/*[local-name()='Root']/*[local-name()='IntField'])");
I think this method is handy if you have multiple schemas with similar structure  but the namespace
changes. This is also easier to read and less prone to errors if there are any changes.
If you for example wanted the node #3, then it would be
FName = xpath(InputMessage, "string(/*[local-name()='Root']/*[local-name()='IntField'][3]/*[local-name()='IntSubField'])");
- Jump directly to the field/node you need (this one works for at least xml elements):
 xpath(InputMessage, "string(//*[local-name()='IntField'])");
I find this useful when picking up key-values from the message, that can be available only once.
All the examples above are for elements. Since you are picking up value from an attribute, the actual structure
is
varFName = xpath(InputMessage,"string(/*[local-name()='StudentDetails']/*[local-name()='Student']/@*[local-name()='FName'])");
And to learn the rest of the possibilities of Xpath, like count, different types, more detailed selections
of the correct Node (Like example, I want only the one where FNAME = 'MyFName')  You can try something like: http://social.technet.microsoft.com/wiki/contents/articles/6944.biztalk-orchestrations-xpath-survival-guide.aspx
Also get DanSharp XmlViewer. It will help you quite a bit when fine tuning the xpaths.

Similar Messages

  • How to get the one attribute value in another attribute getter method

    Hi,
    I have a requirement to get one attribute's value in the another attribute getter or setter method.
    Help needed ASAP.
    Thanks,
    sreenivas.

    Check if both the attributes are under the same context node.
    If so directly call the getter method of the other attribute here like this:
    lv_customer_type = me->get_customer_type( attribute_path = 'STRUCT.CUSTOMER_TYPE' ).
    If it is under a different context node,check if it is available from some relation, if so
        lr_agr_rel = current->get_related_entity( iv_relation_name = 'TpmAgrre'l ).
         CALL METHOD lr_agr_rel->if_bol_bo_property_access~get_property_as_value
            EXPORTING
              iv_attr_name = 'EXTERNAL_ID'
            IMPORTING
              ev_result    = lv_cust_plan_id.
    Regards,
    Masood Imrani S.

  • How to get the VO attribute value by groovy?

    Hi everyone,
    I have a ItemsVO (with an entity behind it), a CompaniesVO and BusinessVO. CompaniesVO is filtered by a ExecuteWithParams, and has a type attribute, with this attribute I can filter BusinessVO used as LOV in ItemsVO. How can I pass the value using a groovy expression in the view accesor? Can I do this?
    Thanks in advance.

    Hi
    If there is a master child relation between CompaniesVO and BusinessVo, then define a viewLink and create view accessors and you can access the another view object attributes from groovy like 'view accessor name.attribute name'.
    Make sure you set the bind var value type as expression. And for example please refer to the below link by andrejus b.
    http://andrejusb.blogspot.com/2010/06/lov-description-text-with-groovy.html
    N.

  • HT1386 I received my new IPad yesterday and when I attempt to sync with Itunes I get the message that it can't be used because  I need ITunes 11.1 or later.  Here is my question.  How do I download to my IPad the most recent version of ITunes?

    Just received IPad four yesterday and am having difficulting syncing with IMac.  I receive this error message:
    The iPad “Blaine's iPad” cannot be used because it requires iTunes version 11.1 or later. Go to www.itunes.com to download the latest version of iTunes.
    When I go to www.itunes.com I am unsusseful in making the download.  Please step me through the process.
    BlaineRW

  • TS3899 Does anyone get "the message has no content." when using Yahoo mail? but i can always see the email on my Ipad, but not Iphone?

    Seemed to have started once i went to Ver 7, but when i use my Ipad i can always see the email
    in full?

    I have this same problem on my iMac since installing Mavericks. The emails download, I can see who they are from and when they came, but nothing shows up in the message pane. I can see emails I got before I installed Mavericks, although about half of them did disappear. Sure would like to find a fix--perhaps the 10.9.1 update will do it?

  • I get the message, "system infected: Adware Activity 2" using Firefox, but not using Explorer. Any ideas?

    The above message is from Symantic Endpoint Protection. I have run virus scans 2 x and I have removed Firefox, then re-downloaded and re-installed. THe message persists.

    hello, you may have malicious addons present. please perform all these steps:
    # [[Reset Firefox – easily fix most problems|reset firefox]] (this will keep your bookmarks and passwords)
    # afterwards go to the firefox menu ≡ > addons > extensions and in case there are still extensions listed there, disable them.
    # finally run a full scan of your system with different security tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] and [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner], as they are specialised in adware which common anti-virus software might not even detect as threats.
    [[Troubleshoot Firefox issues caused by malware]]

  • I just upgraded to Lion only to get the message that I can no longer use my Office (word/excel/powerpoint).  Why doesn't apple tell you these things. You'd think they wouldn't be interested in making money for their arch rival usoft. What R the options?n

    What are the options other then to re-partition the disk and run lion in one and leopard in another.  I suppose I can go over to Google and use their web tools which are compatible with Office. This *****.  So much for backward compatability.

    Apple makes the Operating System, not the 3rd party apps. In such a big step as upgrading the OS, the user would be the one responsible for making sure that any key apps that they use are compatible with the new OS before taking the step and upgrading.

  • How to get the Row and Column values in ALV (without using Objects)

    Hi All,
    I need to get the Row / Column when double click is used in ALV, I can use the double click event for this. However, I do not want to use the Object Oriented ALV. I want to implement the same functionality using general (using functions) ALV.
    Is there any way to get the row / column values for a Generia (non-OOPs) ALV report.
    Please help.
    Thanks,
    Vishal.

    Hello,
    The only think you have to do is to get the index where the user clicked, and then read the internal table you sent to the alv
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = 'prg_name'
          i_callback_pf_status_set = 'SET_PF_STATUS'
          i_callback_user_command  = 'USER_COMMAND' " this is to the click event!!
          i_callback_top_of_page   = 'TOP_OF_PAGE'
          is_layout                = alv_layout
          it_fieldcat              = alv_fieldcat
          i_save                   = 'A'
          it_events                = alv_events[]
        TABLES
          t_outtab                 = i_totmez.  ---> TOUR IT.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    " then....
    FORM user_commandUSING r_ucomm     TYPE sy-ucomm
                                    ls_selfield TYPE slis_selfield.
    " r_ucomm -> HAS THE STATUS
    " ls_selfield-tabindex  -> HAS THE SELECTED INDEX
    " THEN READ THE INTERNAL TABLE
    " HERE YOU WILL HAVE THE SELECTED ROW
    READ TABLE i_totmez INDEX ls_selfield-tabindex.
    ENDFORM.
    cheers,
    Gabriel P.

  • HT1926 I'm getting the message "This copy of itunes is corrupted or not stalled correctly. Please reinstall itunes" How do i do this without losing my music library?

    I'm getting the message "This copy of itunes is corrupted or not installed correctly. Please restall itunes" How do I do this without losing my itunes library? (I use Windows vista). Do I delete my existing itunes?

    Try this discussion...
    https://discussions.apple.com/message/20664047#20664047
    From the  More Like This section on the right

  • My phone went into recovery mode and had to be factory restored, I hadnt backed it up to either the cloud or a computer in a long time and therefore I have lost all of my messages.  Is there anyway to get the messages without a recent backup?

    My phone went into recovery mode and had to be factory restored, I hadnt backed it up to either the cloud or a computer in a long time and therefore I have lost all of my messages.  Is there anyway to get the messages without a recent backup?

    Mikeyjd7 wrote:
    My phone went into recovery mode and had to be factory restored, I hadnt backed it up to either the cloud or a computer in a long time and therefore I have lost all of my messages.  Is there anyway to get the messages without a recent backup?
    No.

  • My Seagate external 250GB hard drive ejects improperly without command.  I am trying to use Time Machine to backup my macbook via usb cable...  I keep getting the message that the disked ejected improperly...  Any solutions...

    My Seagate external 250GB hard drive ejects improperly without command.  I am trying to use Time Machine to backup my macbook via usb cable...  I keep getting the message that the disked ejected improperly...  Any solutions...

    You are not alone. Thousands have this problem, on various models of Macs. Short answer, it has something to do with the disk going to sleep (possibly?). You can't do anything about it and Apple won't address the problem. Maybe you should buy a time capsule. Just keep giving them money and use their proprietary equipment.
    For a more complete answer, see this thread (all 65+ pages of it with NO SOLUTION IN SIGHT... except for some 3rd party solutions that sometimes work, sometimes don't): Disk Drive ejecting itself

  • I just upgraded from IPhoto7 to 9.5. Now I can't open iPhoto without a downloaded tool to bridge the gap bewteen versions. I downloaded the tool and I still get the message "To prepare the library, use the iPhoto Library Upgrader available from Apple."

    I had to upgrade to Mavericks to send off the iCanendars I made in iPhoto. Then I had to upgrade my IPhoto from 7 to 9.5. Now when I go to open iPhoto I get the message "To prepare the library, use the iPhoto Library Upgrader available from Apple."  Well, I installed the Upgrader, but I still get the message and can't open iPhoto.  I have tried restarting the computer, but that didn't help.  How do I get the computer to recognize the Upgrader?

    You may get more replies in the iPhoto forum.
    https://discussions.apple.com/community/ilife/iphoto

  • I can not download the Golf digest magazine purchased from the i-tunes store, when i attempt i get the message "can not install item, restart app and down load" i have tried that without success. This started after i changed ipads

    I can  not access my Golf digest down loads from the newstand, when i try to down load purchased items i get the message "can not install item, please restart the app and down load" that piece of advice has not helped, any one else encountered this?

    chicx wrote:
    This is the third time of writing this on your Apple Support Communities!
    Not with your current user id.
    Far too much uneccesary information in your post, which only confuses things, a vast amount!
    Let's start with iTunes.
    Have you updated iTunes to 11.1.5, because the previous version did appear to have an issue about seeing iPods?
    With iTunes 11.1.5 installed, look in Edit/Preferences/Devices, (or use the ALT key, followed by the E key and then the F key) and make sure that the box named Prevent iPods, iPhones and iPads from syncing automatically does not have a tick in the box.
    Once you have doen those two things, check to see if the iPod is seen by iTunes.
    chicx wrote:
    By the way, what does IOS mean? (I thought IO stood for operating system, but am flummoxed by the S on the end.
    Really?
    OS stands for Operating System. (In computer speak, IO means Input/Output.)
    iOS originally stood for iPhone Operating System, but it now refers to the iPod Touch and iPhone. The iPod Classic, which you have listed in your profile as your iPod, does not use iOS.
    I assume that you have been listening to the Podcast in your iTunes on the computer as you cannot transfer it to your iPod. It's what I'd do.

  • The type '*', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element * could not be found

    I have a provider hosted app in sharepoint which works locally without problem. I followed this tutorial to publish it to azure
    http://blogs.technet.com/b/sharepointdevelopersupport/archive/2013/09/05/how-to-deploy-a-provider-hosted-app-as-an-azure-site.aspx
    However after publishing the webservice doesnt work I get this exception:
    [InvalidOperationException: The type 'x.IntranetWeb.Services.AppEventReceiver', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.]
    System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +62739
    System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +1429
    System.ServiceModel.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) +52
    System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +598
    [ServiceActivationException: The service '/Services/AppEventReceiver.svc' cannot be activated due to an exception during compilation. The exception message is: The type 'x.IntranetWeb.Services.AppEventReceiver', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found..]
    System.Runtime.AsyncResult.End(IAsyncResult result) +486572
    System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +174
    System.ServiceModel.Activation.ServiceHttpModule.EndProcessRequest(IAsyncResult ar) +345998
    System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +9683593
    My web.config which I didnt touch.
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=301880
    -->
    <configuration>
    <appSettings>
    <add key="webpages:Version" value="3.0.0.0" />
    <add key="webpages:Enabled" value="false" />
    <add key="ClientValidationEnabled" value="true" />
    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
    <add key="ClientId" value="xx-04e7-4caf-854a-89c20577d7da" />
    <add key="ClientSecret" value="ljguTvxHR+xx+Pl1IMg1Hjt5rsQ=" />
    </appSettings>
    <system.web>
    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
    <customErrors mode="Off"/>
    </system.web>
    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
    <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
    <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-5.2.0.0" newVersion="5.2.0.0" />
    </dependentAssembly>
    </assemblyBinding>
    </runtime>
    <system.serviceModel>
    <bindings>
    <basicHttpBinding>
    <!--Used by app for SharePoint-->
    <binding name="secureBinding">
    <security mode="Transport" />
    </binding>
    </basicHttpBinding>
    </bindings>
    <protocolMapping>
    <add binding="basicHttpBinding" scheme="https" bindingConfiguration="secureBinding" />
    </protocolMapping>
    </system.serviceModel>
    <system.webServer>
    <handlers>
    <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
    <remove name="OPTIONSVerbHandler" />
    <remove name="TRACEVerbHandler" />
    <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
    </system.webServer>
    </configuration>
    and a piece of the code of the remote event receiver
    <%@ ServiceHost Language="C#" Debug="true" Service="x.IntranetWeb.Services.AppEventReceiver" CodeBehind="AppEventReceiver.svc.cs" %>
    namespace x.IntranetWeb.Services
    public class AppEventReceiver : IRemoteEventService
    Follow me on Twitter
    levalencia Blog

    Hi,
    The issue here is the mapping of the interface to the service in question, and usually points to a possible mistype or rename of something within your service architecture.
    You need to make sure your namespace and service name here match your service name itself.
    For detailed information, you could refer to:
    https://haddicus.wordpress.com/2011/06/06/service-attribute-value-not-found-wcf-services/
    http://stackoverflow.com/questions/9557221/the-type-restservice-weddingservice-provided-as-the-service-attribute-value-i
    Regards

  • How to get the message Sender's information in MSMQ?

    Hi, everyone
    I am going to develop a Windows server to monitor the messages in MSMQ. Now I wanna get the message sender's name(that is the API of this message, like class name or function name of who send the message.) I make a simple demo and it can easy to get
    the message body. But is it possible to get the sender's info by using any MSMQ method ? Looking forward any answers. Thanks so much.
    Shuo Lei

    Hi,
    Sender object is type of object any time if you want to use any property/attribute of sender object first you need to type cast it with your desire object.
    For more information, you could refer to:
    http://blog.jsinh.in/managing-msmq/#.VPe5mnkfqM8
    http://forums.asp.net/t/343932.aspx?How+can+I+get+values+of+sender+object+in+C+
    Regards

Maybe you are looking for

  • Adobe Digital Editions 2.0 will not run

    It used to run.  I used it to download e-books, but now I am told that it is an incompatable program.  What do I need to do.  I have tried to restart it.  I uninstalled it and reinstalled it, and I installed an older version and tried up upgrade it. 

  • MBP Random Black out Screen [ONLY ONLINE]

    Hello everyone, My Macbook Pro Early 2011 15 inch i7 with 8GB RAM at the moment is experiencing some trouble. When I'm watching videos online, the screen goes black after a few minutes. I know that the Early 2011 are famous because of faulty Logic Bo

  • Help.. Pricing error: Mandatory condition 0PR0 is missing

    I've been having this warning message everytime i try to use a " zero priced" item in CRM 4.0.. Part of its effect was, the "message number" for this particular warning message contains invalid characters (such as '###' or 'CH' etc..) which gives us

  • Upgrading G4 Powerbook from 10.3.9 to Tiger.

    Hi, I haven't posted for a while, but I'm looking to upgrade my Powerbook for the last time, from 10.3.9 to Tiger. I can't afford a new machine at the moment, so I upgraded my HD and Superdrive, to the best spec I could get at the time. I don't want

  • HT1339 ipod software update does not install

    I have an ipod touch stuck in restore mode Itunes is trying to download OS6.1 in the restore process, but this is not installing and I go back to the starting point. any ideas?