Xpath in BPEL: How to extract from message type to string

Hi all,
I am currently trying to extract all content from a special message type to a string. The special message is really just simple XML.
However, I wish to convert the special domain specific message to a string to send to another partnerlink.
I figured that it would be a simple matter of using an assign / copy operation using the special message and the ora:getContentAsString function.
This does not work :-(
I get the following error in the domain log:
ORABPEL-05002
Message handle error.
An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: XPath expression failed to execute.
Error while processing xpath expression, the expression is "ora:getContentAsString(bpws:getVariableData('businessEventBody'))", the reason is FOTY0001: type error.
Please verify the xpath query.
Does anyone have any ideas on how to solve this?
Regards,
Aagaard

<p>
Hi,
</p>
<p>
Let me explain the scenerio:
</p>
<p>
I XSD I have is:
</p>
<p>
&lt;xs:schema xmlns:xs="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"
targetNamespace="**************"
&lt;xs:element name="OrdDesc"&gt;
&lt;xs:complexType&gt;
&lt;xs:sequence&gt;
&lt;xs:element name="ord" type="number10" /&gt;
&lt;xs:element name="ord_name" type="varchar2150" /&gt;
&lt;xs:element name=ord_add1" type="varchar2240" minOccurs="0" /&gt;<br /><br /> &lt;xs:element name="ord_add2" type="varchar2240" minOccurs="0" /&gt;<br /><br /> &lt;xs:element name="ord_city" type="varchar2120" minOccurs="0" /&gt;<br /><br /> &lt;xs:element name="county" type="varchar2250" minOccurs="0" /&gt;<br /><br /> &lt;/xs:sequence&gt;<br /><br /> &lt;/xs:complexType&gt;<br /><br /> &lt;/xs:element&gt;<br /><br />&lt;/xs:schema&gt;<br /></p><br /><p><br /><br /><br />The runtime XML I would get:<br /></p><br /><p><br /><br /><br />&lt;?xml version="1.0" encoding="UTF-8" ?&gt;<br /><br />&lt;Messages&gt;<br /><br /> &lt;Message&gt;<br /><br /> &lt;family&gt;New&lt;/family&gt;<br /><br /> &lt;type&gt;OrderCreate&lt;/type&gt;<br /><br /> &lt;id&gt;22&lt;/id&gt;<br /><br /> &lt;messageID/&gt;<br /><br /> &lt;routingInfo/&gt;<br /><br /> &lt;messageData&gt;&lt;![CDATA[&lt;!DOCTYPE *************"&gt;<br /><br /> &lt;OrdDesc&gt;<br /><br />  &lt;ord&gt;22&lt;/wh&gt;<br /><br />  &lt;ord_name&gt;Ord1&lt;/wh_name&gt;<br /><br />  &lt;ord_add1&gt;Park Avenue&lt;/wh_add1&gt;<br /><br />  &lt;ord_add2/&gt;<br /><br />  &lt;ord_city&gt;XYZ&lt;/wh_city&gt;<br /><br />  &lt;county/&gt;<br /><br /> &lt;/OrdDesc&gt;]]&gt;&lt;/messageData&gt;<br /><br /> &lt;/Message&gt;<br /><br /> &lt;Message&gt;<br /><br /> &lt;family&gt;New&lt;/family&gt;<br /><br /> &lt;type&gt;OrderMod&lt;/type&gt;<br /><br /> &lt;id&gt;22&lt;/id&gt;<br /><br /> &lt;messageID/&gt;<br /><br /> &lt;routingInfo/&gt;<br /><br /> &lt;messageData&gt;&lt;![CDATA[&lt;!DOCTYPE *************"&gt;<br /><br /> &lt;OrdDesc&gt;<br /><br />  &lt;ord&gt;22&lt;/wh&gt;<br /><br />  &lt;ord_name&gt;Ord1&lt;/wh_name&gt;<br /><br />  &lt;ord_add1&gt;Park Avenue&lt;/wh_add1&gt;<br /><br />  &lt;ord_add2/&gt;<br /><br />  &lt;ord_city&gt;XYZ&lt;/wh_city&gt;<br /><br />  &lt;county/&gt;<br /><br /> &lt;/OrdDesc&gt;]]&gt;&lt;/messageData&gt;<br /><br /> &lt;/Message&gt;<br /><br />&lt;/Messages&gt;<br /></p><br /><p><br /><br /><br />Now, the Msg type(&lt;type&gt;OrderCreate&lt;/type&gt;) I am referring to is not the part of XSD, it gets generated at the time message is created. That's why I don't see that tag in the payload. Payload shows the elements of XSD. <br /></p><br /><p><br /><br /><br /><br /><br />Please help.<br /></p>

Similar Messages

  • How to use PO message type to output 'Form' as PDF file

    Dear experts,
      I am working for a topic of how to use PO message type to output 'Form' as 'PDF file', and save to external file system automatically.
      Any one familiar to this topic, please kindly give me some guide, thank you!
    Regards,
    Joyce

    Hi,
       Go through the program RSTXPDFT4 (Converting SAPscript (OTF) or ABAP List Spool Job to PDF), you will get some idea.  Using this program you can convert spool into PDF file.
    -Alpesh

  • How outbound idoc of message type WMMBXY is created? any program or FM name

    Hello Gurus,
    How outbound idoc of message type WMMBXY is created? any program or FM name??
    basic type : WMMBID01... i checked the idoc in my system, it does not have any process code....
    also, i checked the exit : EXIT_SAPLMBMB_001. It has some code but nothing to fill the segments...
    BR,
    Ks

    got the answer in : WMMBXY and WMMBID02

  • How to extract sms messages from iphone?

    im using 3gs and im trying to extract sms messages from it. but i dunno how.
    thanks in advance!
    and btw im also using windows.. so no mac.

    Hi, I found this step by step guide explains how to backup sms from iphone to computer. You can do the extract work in a few clicks.
    Hope this can hlep.
    Good luck!

  • How to extract error message for each output type.

    Hi All,
    Need your advice on the problem that I have.
    Expected Solution:
    1. Create an extra column for displaying header output error message from VF02 into a report program.
    Steps that i have did:
    1. Go to transaction VF02.
    2. Enter a billing document number.
    3. Hit enter. Click "Goto" > Header> Output
    4. Click on the status that is red colour. Click on "processing log".
    5. Press "F1" on the red colour message type. (Found out that it is a structure).
    Need your advice on the question that I have:
    1) How do we know that which "not successfully" process output type belong to which error message class?

    Hi Brad Bohn,
    Thanks for your advice. I am so sorry about that. Thanks so much for your advice. And i have follow your advices and steps given by you. Appreciate it very much.
    But for this issue about how to extract message for each output type. I have follow your steps by using SE30 to trace VF03 and I managed to found out that they are using this function module "WFMC_PROTOCOL_SHOW". Need your advice on this, how do we know each different output type with different error message is pulled from?
    From my further research and in depth debugging into this function module, i  manage to find this global internal table "PROTO_TAB" which stores all the text messages for each output.  How does this internal table is populated?
    Thanks in advance.
    Regards
    Shawn

  • How to EXTRACT from one PHOTO to another

    How do I extract from one photo and place in another using PSE 19
    Message title was edited by: Brett N

    You probably mean PSE10 ---Typo?
    Use one of the selection tools, e.g. selection brush, lasso tool, to select the object on picture A.
    Go to Edit>copy to put it on the clipboard
    Open picture B
    Go to Edit>paste. A will be on its own layer
    Access the move tool to position A and to resize with the corner handles of the bounding box

  • How to extract SXMB_MONI message in bulk

    Hi All,
    I want to extract messages (input and output messages) for a scenario from SXMB_MONI. The volume of message is too high (more then 1k), so i would like to ask if there is any easy way to extract the message. I am on PI 7.31 dual stack.
    regards,
    Harish

    Hi Hareesh,
    For this i need to write a program and convert the Xstring to string format (SXMB_GET_MESSAGE_PAYLOAD). But i am searching for any standard option in which i do no need to write any ABAP code.
    regards,
    Harish

  • NPD Metrics - how to extract from the database in a usable format

    Metrics for NPD activities and projects are stored in the database one row for each metric in each activity or project instance. If there are multiple metrics per activity instance, for example, extraction of those metrics yeilds only a list of metrics and values. I'd like to see it in more of a table style output. Can you provide some guidance on how to extract this from the DB using sql? Thx

    Here is the SQL that should help understand the structure. There are a few ways to pull this data in more of a column based approach. This should help you get started.
    select modml.baseName as MetricName, bases.name as Basis, ph.name as Phase,
    fy.name as FiscalYear, gl.Value as Value, UOM.ID as UOM, currml.Name as Currency
    from plmFieldExchangeGlobals gl
    inner join plmFieldExchangeDefinitions fed on fed.pkid = gl.FieldExchangeDefinitionPKID
    inner join plmFieldExchangeDefModels mod on mod.pkid = fed.fkFieldExchangeDefinitionModel
    inner join plmFieldExchDefinitionModelML modml on modml.fkFieldExchangeDefinitionModel = mod.pkid and modml.langID = 0
    inner join plmFieldExchangeBases bases on fed.fkFieldExchangeBasis = bases.pkid and bases.langID = 0
    inner join plmFieldExchangePhases ph on fed.fkFieldExchangePhase = ph.pkid and ph.langID = 0
    inner join plmFieldExchangeFiscalYears fy on fed.fkFieldExchangeFiscalYear = fy.pkid and fy.langID = 0
    left outer join UOM on UOM.pkid = mod.fkCommonUOM
    left outer join commonCurrenciesML currml on currml.fkCurrency = mod.fkCommonCurrency and currml.langID = 0
    where ProjectPKID = '320219992047-072a-4698-a553-de5ec124ff9c';
    Segal

  • How to Extract From Pool Tables

    Hi All,
    Can Somebody help with the Detailed Description how to extract the Data from Pool Tables from ECC to SAP BW
    Thanks
    Sam

    Option 1
    Create Infoset SQ02  on those tables and RSO2 - create generic ds
    Option 2 :Create functional Module and create generic ds using FM
    Replicate DS to BW and Build objects and map them in transformations and create dtp and IP
    Start extraction! .. please search for detailed steps in forum

  • How is the Fault Message Type used?

    Hi,
    I have a HTTP-SOAP scenario.I want to post a request to a HTTP Server using the SOAP receiver adapter and get the ackowledgement message from the receiver, if it was successful or not. Is this possible using the Fault Message type?
    If not how else can i capture the response in the EO mode?

    Hi Sivasakthi
    Yes you can capture soap response using SOAP fault message
    Check this link for embedded soap response
    http://www.w3.org/TR/2000/NOTE-SOAP-20000508/
    With this you can refer to this blog as well
    Handling Web Service SOAP Fault Responses in SAP NetWeaver XI
    Thanks
    Gaurav

  • How to create a message type

    Hi, All
      I need to create a message type, Enter the fields change pointers eligible for key changer in this message type. Extract program needs to be created and this program accesses the key changer field’s status and the changed values on day to day basis for the message type using tables BDCPS & BDCPV.
    Can any one tell me how to do this.
    Many Thanks.

    Hello siri
    I think if you talking with respect to ALE/IDOC or EDI/IDOC..........this posting has to be entered in data transfer.........................and you can create message type using trasaction we81.
    Vj

  • Source structure of XML file as different from Message type?

    Hi,
    We are picking an xml file from the FTP server of the client.
    We have source message type 'MT_Invoice' with data type as 'DT_Invoice'.
    When we open the message mapping test tab, the source structure is as shown below.
    <ns0:MT_Invoice xmlns:ns0="urn:maxxium:nordic:invoice:inbound">
       <Invoices>
          <Invoice>
          </Invoice>
       </Invoices>
    </MT_Invoice>
    My question is "What should be the structure of the XML file that the client is depositing on to the FTP server?".
    Should it start with the tag 'MT_Invoice' with the namespace or should it simply start from    <Invoices> tag.
    I have tried various combinations for the source xml structure. But all are failing.
    (This is evident from the fact that the mapping is failing. That's why I have given the structure from the source structure of the message mapping tab.)
    Kindly help.
    Thanks,
    John

    >
    john j wrote:
    > Hi,
    >
    > We are picking an xml file from the FTP server of the client.
    >
    > We have source message type 'MT_Invoice' with data type as 'DT_Invoice'.
    >
    > When we open the message mapping test tab, the source structure is as shown below.
    >
    > <ns0:MT_Invoice xmlns:ns0="urn:maxxium:nordic:invoice:inbound">
    >    <Invoices>
    >       <Invoice>
    > .
    > .
    > .
    > .
    >       </Invoice>
    >    </Invoices>
    > </MT_Invoice>
    >
    > My question is "What should be the structure of the XML file that the client is depositing on to the FTP server?".
    >
    > Should it start with the tag 'MT_Invoice' with the namespace or should it simply start from    <Invoices> tag.
    >
    > I have tried various combinations for the source xml structure. But all are failing.
    >
    > (This is evident from the fact that the mapping is failing. That's why I have given the structure from the source structure of the message mapping tab.)
    >
    > Kindly help.
    >
    > Thanks,
    > John
    you are picking an XML file. So you should create the MT which would represent exactly the XML format of the source file.
    So ideally if your file starts with <invoice>, then name your MT as invoice

  • Finding the Message Category from Message Type ( TXN - NOTIF_CREATE )

    Dear All,
    According to my requirement , I need to find the Message Category , from the Message Type.
    As for Example :
    SLF1 is the Message Category for Message Type SLFN .
    I have got a F.M "SUP_STSUP_READ_PROCESS_TYPE" which gives the Message Type , now i need the Corresponding
    Message Category.
    We can also see the Message Type in Transaction : NOTIF_CREATE.
    Please Help.
    Thanking You All.

    Dear All,
    According to my requirement , I need to find the Message Category , from the Message Type.
    As for Example :
    SLF1 is the Message Category for Message Type SLFN .
    I have got a F.M "SUP_STSUP_READ_PROCESS_TYPE" which gives the Message Type , now i need the Corresponding
    Message Category.
    We can also see the Message Type in Transaction : NOTIF_CREATE.
    Please Help.
    Thanking You All.

  • How to assign different Message Type to different Doc. Types

    Hi,
    Can anyone tell me how can I assign different Message Type to different Doc. Types e.g. in ME21N. So that whenever the Doc Type is selected the respective Message Type is automatically assigned.
    Lucky

    hi there
    follow this path
    spro - materials management - purchasing - messages - output cntrol - message types - define message types for p/o
    then
    spro - materials management - purchasing - messages - output cntrol - message determination schemas - define message determination schemas for purchase order
    then
    go to
    mn04
    give doc type  - enter
    enter partner role & other parametrs

  • How link customize IDOC message type with FM ?

    Hi,
    I have created new IDOC message type ZCOST and FM ZMASTERIDOC_CREATE_COST. (Outbound).
    Please advise how link the message type and FM ? so everytime i am executing BD21 with message type ZCOST the program always calling FM ZMASTERIDOC_CREATE_COST to generate the IDOC.
    Thank You and Best Regards
    Fernand

    HI,
    You need to link Mssage type, IDOC type and the FM (also extension idoc type if exits) in TCODE: WE57 --> go to change mode
    --> then new entries --> even you need to gove the direction inbound/outbound.
    Also you need to create a outbound custom process code in WE41. and link the FM to the process code.
    This process code shold be assigned to the partner profile in we20 in outbound parameters -> so you FM will be picked up qutomatically.
    regards,
    Nazeer
    Edited by: N a z e e r on Jul 14, 2010 3:14 PM

Maybe you are looking for