PO 7.4 RESTAdapter issue : Unable to parse XML message payload

Dear experts,
We are implementing the scenario Exposing a function module as Restful service with the PO RESTAdapter that's avaiable in PO 7.4 SP09 as described in the blog written by Ivo:
PI REST Adapter – Exposing a function module as RESTful service
When we test the scenario to processing messages the adapter reports the error message:
Error while sending message to module processor: senderChannel '589b39c9b91c3ae99040d9addc6a818b': Catching exception calling messaging system: Unable to parse XML message payload to extract operation for receiver determinationorg.xml.sax.SAXParseException: Premature end of file.
Anyone an idea or solution direction?
Thanks in advance.
Cheers, Luc

Hi YRV isa,
Issue solved by Ivo Kulms
"Either you use a Dummy Interface in the IFlow for the adapter or you have to specify on the Operation Determination Tab which XI Operation / Interface should be used. The table on the tab allows to specify different interface name depending on the internal variables. In the variable columns add for example the REST operation, by entering "operation", in the expression column "GET" or "POST" or "*" and in the operation/namespace columns the XI operation / interface you want to reference.
The variable "operation" has to be in curly brackets, so that it gets evaluated. So the entry should look like "{operation}" ( or like "{service}" if you want to map the XI operation by REST service name)"
Kind regards, Luc

Similar Messages

  • Unable to parse xml file

    public class DOMEcho1 {
         static Document document;
         static String FILE_NAME = "slideSample01.xml";
         public static void main(String[] args) {
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              Node node = null;
              try{
                   DocumentBuilder builder = factory.newDocumentBuilder();
                   document = builder.parse(new File(FILE_NAME));
                   node = document.getParentNode();
              catch(SAXException e) {
              catch(ParserConfigurationException e) {
              catch(IOException e) {
    }the XML file:
    <?xml version='1.0' encoding='utf-8'?>
    <!-- A SAMPLE set of slides -->
    <slideshow
    title="Sample Slide Show"
    date="Date of publication"
    author="Yours Truly"
    >
    <!-- TITLE SLIDE -->
    <slide type="all">
    <title>Wake up to WonderWidgets!</title>
    </slide>
    <!-- OVERVIEW -->
    <slide type="all">
    <title>Overview</title>
    <item>Why <em>WonderWidgets</em> are great</item>
    <item/>
    <item>Who <em>buys</em> WonderWidgets</item>
    </slide>
    </slideshow>
    I was unable to parse this xml file properly. When I called the method "getParentNode" it returns me a null value.
    Anyone out there please guide me how to parse this xml file or advice me on the additional tasks I need to perform before I can start parsing.
    Your advices will be greatly appreciated, thanks!

    The documentation for getParent Node says:
    All nodes, except Attr, Document, DocumentFragment, Entity, and Notation may have a parent.
    I think what you want is getDocumentElement to get the root element (slideshow in your case).
    Dave Patterson

  • Best way to parse XML Message ?

    Hi,
    I have to implement in PL/SQL an interface which receives for example orders in xml format. Something like this:
    <order>
    <order_no>4711</order_no>
    <order_line>
    <skuid>10001</skuid>
    <qty>34</qty>
    </order_line>
    <order_line>
    <skuid>10002</skuid>
    <qty>35</qty>
    </order_line>
    </order>
    I have to parse this xml and store it into an order_mast and order_detl table.
    I'm uncertain which would be the best approach. I read in this document http://www.oracle.com/technology/tech/xml/xdk_sample/xdksample_040602.pdf to do it with an XDK Sax Parser.
    According to this document the performance is better when using SAX then DOM for large xml message.
    But how "large" is large? In my case the xml message can have theoretically several thousand lines, is this already a performance issue for DOM ?
    Are besides the performance any good reason to use DOM instead of SAX ?
    Are there in Oracle 10g any even better possiblities to do this ?
    I read about some DMBS_XML packages, but do know them really.
    I really appreciate any hint or suggestion.
    Many Thanks!
    Peter

    I use the DBMS_XMLDOM package to parse through XML Schemas (about 2Mb in text file terms, thousands of lines (never counted them)) on my desktop, and including all of the processing I do and storing all the information in database tables, the whole lot is processed in about 30 seconds. These are fairly large schemas with lots of included schemas. I imagine it's gonna be a helluva lot faster when we put it on our server, so I don't think DBMS_XMLDOM is a slow way of doing it. Guess the best thing to do is to try different ways and do some performance testing based on your own business requirements i.e. varying size of XML messages and frequency/amount of messages being received.
    ;)

  • Need to Parse XML Message from my Message Driven Bean

    Hi
    I am using Message Driven Beans for listening to a Queue .
    I am getting a Big XML file from my Queue in form of a TextMessage .
    Now my task is to read / parse the XML Message .
    Please tell me what is the appropiate parsing technique i need to use (Should i use SAX or DOM )
    Please share your ideas .
    Thank you .

    Generally you want to use SAX if the file is so big that loading it all in memory (as DOM does) will create memory problems.
    Read about these methods on the wiki page for [JAXP.|http://en.wikipedia.org/wiki/Java_API_for_XML_Processing]

  • Parsing Soap Message Exception

    In my environment, flex looks like unable to parse soap
    message if MTOM and SWA of my web services were enabled. Can anyone
    help me?

    Which version of Flexbuilder are you using? FB2.01 just
    support SOAP 1.1,or am I wrong?
    What exactly do you mean with SWA (seems not to be any
    offical shortterm of w3c)?
    best regards
    kcell

  • Unable to parse query when using dblink in forms 4.5

    Hi,
    I have created a query that uses a DBlink because I need to do query on a table located on another dbase. I've used the query on creating my report using Reports 6i. The report needs to be called from a menu on our system, which was developed under Developer 2000 (forms 4.5). The problem is, when I tried to access the report from the menu, it returns the error 'unable to parse query'. What I did after getting error was to create a dummy module using Forms 6i, and call my report from there. It worked fine.
    By the way, the table that I'm accessing using the dblink is under Oracle 9i dbase, and the dbase of the system that I've been working at is Oracle 8i.
    I don't have any idea on what's causing this error. Is there a compatibility issue when using a dblink located in Oracle 9i database with forms 4.5?
    Thanks!

    Hello,
    Not sure if it is the good answer, but I know that Forms does not recognize dblink and owner.object syntax. You have to create a simple synomym that point to the distant object and use this synonym within Forms.
    Francois

  • ERROR ITMS-9000: "Unable to parse opf file: content.opf" at Book (MZItmspBookPackage)

    Hello,
    Here an itunes producer error for my new ibook:
    ERROR ITMS-9000: "Unable to parse opf file: content.opf" at Book (MZItmspBookPackage)
    Any help?
    Best!

    https://discussions.apple.com/message/17782799#17782799
    I thinks this link will help solve your issues. It worked for mine.

  • Exception: Unable to parse schema abc.xsd

    hi',
    I am using abc.xsd in file adapter where I am browsing for the schema file, the issue is this abc.xsd is internally referring to other
    schema files, so it is giving me this error "Exception: Unable to parse schema abc.xsd" if I manually copy paste all the XSD it requires
    inside the project BPEL folder is works, the issue is in production enviornment all this xsd will come from one shared folder so I am
    confused how to achieve this i.e. without copying all the XSD into the project BPEL folder refer it from one shared foler which is outside
    of the project.
    thanks
    Yatan

    You can enable WebDav on the Oracle HTTP Server component.
    cd $ORACLE_HOME/Apache/Apache/htdocs/dav_public
    mkdir Schemas
    cd $ORACLE_HOME/Apache/oradav/conf
    open the moddav.conf file for editing. Find the entry for the dav_public directory and modify as follows:
    <Location /dav_public>
    DAV on
    </Location>
    Restart the server
    Now the Schema can be accessed using the URL http://soahost:port/dav_public/Schemas/abc.xsd
    This way you can share the common xsd among different BPELProcesses.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • MS Access is unable to parse Oracle SQL

    I wish to execute an outer join query in Reports 3.0 using MS
    Access at back end. Since MS Access has a different syntax of
    outer query than Oracle Sql, it is unable to parse it.
    What could be the alternative or probable solution to it.
    null

    Hi,
    Unless, you are writing dynamic queries, you might want to
    define your outerj SQL in MS Access and then issue a simple
    SELECT in Reports against the outerj MS Access query (to MS
    Access this query is just another pseudo table).
    TP.
    Bramanathan K (guest) wrote:
    : Rajeev Grover (guest) wrote:
    : : I wish to execute an outer join query in Reports 3.0 using
    MS
    : : Access at back end. Since MS Access has a different syntax
    of
    : : outer query than Oracle Sql, it is unable to parse it.
    : : What could be the alternative or probable solution to it.
    : Instead of outer join why don't you try with Union, I think
    Union
    : will go with both
    null

  • "Unable to parse the opf file" of my book, what to do?

    We have created a neat little eBook with iBooks Author, following all the specifications, keeping an eye on memory limits, etc., and using some of the widgets, but we are getting an error message when we try to submit the book through iTunes Producer, so we can't cross the finish line (after which there is a beer waiting, but not yet.)
    This eBook process has taken us about one year to complete.
    This is the error message that appears on the system: "Error ITMS-9000 'Unable to parse opf file container.xml' at Book.
    I know a little bit about EPUBs, and I know this is not a playground-variety error message. So I need help.
    There are a few threads out there that address this issue (but not really, more like people drowning and crying "help" while the sea whirl drags them down to the depths).
    Here is the issue: Our file is not a standard EPUB file that you can whip up with Sigil, and then mess with the manifest; it is a fully loaded peacock authored and designed with iBooks Author, complete with sound files, widgets, etc. Hence my worry.
    Any suggestions so that I can sleep tonight? They would be much appreciated.

    Yep, i just did it again. The entire scroll-bar widget, complete with formatted text, graphics, etc., pasted itself nicely in another book. Two different files, the same widget.
    I use the scroll-bar widgets for most of my texts. (I have audio buttons on the side, and the scripts are within the widget, to the side). My only text is within widgets, and text boxes, naturally. 
    I am following your recommendation: cleaning files, etc. I am remaking the book anew. I need to convince the EPUB bot or whatever that my file looks and works nicely on all my devices. You would expect an error message when previewing the book: 'Hey Amigo, your file is flawed, stop working on it, and get back to the drawing board." Should be able to try again next Monday.

  • Unable to parse information Error while logging in to BPC 4.2 Web Excel

    Hi,
    I am not able to Log In to BPC 4.2 WebExcel. I am getting a Error Message saying that "unable to parse information".
    I am actually logging in after long time and before i use to log in successfully.
    I  checked with security and every thing is fine in terms of security.
    Any solution will be appreciated and rewarded.
    Thanks,
    Sreekanth.
    Edited by: SREEKANTH JYOTHI on Aug 26, 2008 10:52 PM

    Hi Joost,
    Thanks for your inputs, I tried reinstalling it and also all the firewall connection and settings are perfect.But, could not resolve the issue. Some other user ID is able to login on my Outlooksoft desktop.
    It looks like there is a problem with my Outlooksoft User ID.
    Regards,
    Sreekanth

  • Unable to parse the ZenWorks software dictionary files

    I'm getting this error message when I try to access the Software
    Dictionary in ConsoleOne > Inventory Service_ADMNT > Properties >
    Software Inventory Configuration > Software Configuration
    Error Loading Software Dictionary
    Unable to parse the ZENworks software dictionary files.
    Contact Novell Support (http://support.novell.com)
    I was able get into it just a few minutes before that but now,
    nothing... Thanks for your help.

    E,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Google Cloud Print setup - Unable to parse printer capabilities

    I'm trying to add my CP1525nw to Google Cloud Print as a Cloud printer, and not as a LOCAL printer, however each time I add my eprint email I get the following message; "Unable to parse printer capabilities"  - I've attempted both private and public use for eprint settings with no such luck.
    Any help would be greatly appreciated.  I've tried reseting the email with no luck...
    EDIT - 04/01/11:
    I chatted with HP support and although the representative was extremely curteous, they could not help me.  The support agent assured me the issue would be taken to the next level and looked at so hopefully we can have a resolution here shortly.
    EDIT - 04/04/11:
    Received a response from the original HP rep I chatted with online.  In summary, he/she was not able to find a solution and states the issue will be sent up to HP's highest level of technical support....  We shall see.
    EDIT - 05/25/11:
    After 2 months of waiting, HP has fixed the issue.  Remember to update to the latest firmware and check all settings before proceeding.
    This question was solved.
    View Solution.

    well, when I use google chrome to set up cloud print, it does add my HP1525nw to my google cloud print, but ONLY THE LOCAL printer. In other words, google cloud print can add both local printers and cloud enabled printers. It does add the local printers, and since while on my home network, the HP laser is a local printer, it grabs that. But it still won't allow me to add it as a cloud printer.
    The problem with being connected as a local printer is that my notebook has to be on and it has to be on my local network in order for me to print to the printer through the cloud (like using my ipod).
    The point of the HP printer being added as a direct cloud printer is so it can be printed to as a stand alone printer, even if my local computer is not on, because it is connected to my router wirelessly and not dependent on any local computer.
    and that is where it is failing. Trying to add the printer as a CLOUD printer does not work (the same problem everyone else here is having)

  • CRM Designer Unable to parse CLD XML file

    I am unable to use the CRM designer to load the CLD files from CRM. Each time I try, I get "Error retrieving and parsing XML file". I save the file locally and open using notepad and these are the contents:
    0001
    http://sethnn058.mynetwork.ds.BLAHBLAH.net:8000/sap/bc/bsp/sap/crm_bsp_bab_dis/bpserv.htm?sap-client=200&cmd=getScreen&lang=E&appl=CRMD_SALQ&blview=SLS_REP&event=ZBT_ADDITIONAL_R3&scrpos=4&scrvar=&creq=VAQK901374&wreq=VAQK901372&xchg_id=595A1E7995AC2E45BC1723BB1260BF66
    http://sethnn058.mynetwork.ds.BLAHBLAH.net:8000/sap/bc/bsp/sap/crm_bsp_bab_dis/bpserv.htm?sap-client=200&cmd=saveScreen&lang=E&appl=CRMD_SALQ&blview=SLS_REP&event=ZBT_ADDITIONAL_R3&scrpos=4&scrvar=&creq=VAQK901374&wreq=VAQK901372&xchg_id=595A1E7995AC2E45BC1723BB1260BF66
    http://sethnn058.mynetwork.ds.BLAHBLAH.net:8000/sap/bc/bsp/sap/crm_bsp_bab_dis/bpservexit.htm?sap-client=200&cmd=endSession&lang=E&appl=CRMD_SALQ&blview=SLS_REP&event=ZBT_ADDITIONAL_R3&scrpos=4&scrvar=&creq=VAQK901374&wreq=VAQK901372&xchg_id=595A1E7995AC2E45BC1723BB1260BF66
    It's definitely not a XML file. What could the issue be??
    Thanks!!

    jtahlborn wrote:
    My guess is that it is a namespace issue. The ShipmentOrder element has no namespace, but the Voyage element has the namespace "http://www.xyz.com//CDM/2009/v1.0".
    Yes, indeed. The posted error message does say that *"":Voyage* is one of the possible expected types, which must mean a Voyage element in no namespace.

  • Split Function unable to parse string correctly

    Hi,
    I'm using split function to split string into multiple rows using comma "," as delimiter. In a string I have following values which are not parsed correctly as they have comma inside the values. 
    American Dawn, Inc.
    Battalian USA, Inc.
    Fria USA, Inc.
    Lazer, Inc.
    Mexilink Inc.
    Is there any other approach to fix this issue?
    Here is the split function Im using:
    CREATE Function [dbo].[fnSplit] (
    @List varchar(MAX), 
    @Delimiter char(1)
    Returns @Temp1 Table (
    ItemId int Identity(1, 1) NOT NULL PRIMARY KEY , 
    Item varchar(MAX) NULL 
    As 
    Begin 
    Declare @item varchar(MAX), 
    @iPos int 
    Set @Delimiter = ISNULL(@Delimiter, ';' ) 
    Set @List = RTrim(LTrim(@List)) 
    -- check for final delimiter 
    If Right( @List, 1 ) <> @Delimiter -- append final
    delimiter 
    Select @List = @List + @Delimiter -- get position of
    first element 
    Select @iPos = Charindex( @Delimiter, @List, 1 ) 
    While @iPos > 0 
    Begin 
    -- get item 
    Select @item = LTrim( RTrim( Substring( @List, 1, @iPos
    -1 ) ) ) 
    If @@ERROR <> 0 Break -- remove item form list 
    Select @List = Substring( @List, @iPos + 1, Len(@List)
    - @iPos + 1 ) 
    If @@ERROR <> 0 Break -- insert item 
    Insert @Temp1 Values( @item ) If @@ERROR <> 0 Break 
    -- get position pf next item 
    Select @iPos = Charindex( @Delimiter, @List, 1 ) 
    If @@ERROR <> 0 Break 
    End 
    Return 
    End
    Another user in this forum posted a split function that
    he wrote:
    CREATE FUNCTION dbo.splitter(@string VARCHAR(MAX), @delim CHAR(1))
    RETURNS @result TABLE (id INT IDENTITY, value VARCHAR(MAX))
    AS
    BEGIN
    WHILE CHARINDEX(@delim,@string) > 0
    BEGIN
    INSERT INTO @result (value) VALUES (LEFT(@string,CHARINDEX(@delim,@string)-1))
    SET @string = RIGHT(@string,LEN(@string)-CHARINDEX(@delim,@string))
    END
    INSERT INTO @result (value) VALUES (@string)
    RETURN
    END
    GO
    Both of them are unable to parse above values incorrectly.
    FYI:  String is made of values that are selected
    by user in SSRS report. I think SSRS when combine values , put comma "," between multiple values.
    Any help or guidance would be appreciated.
    ZK

    duplicate of
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/820ac53c-ce25-4cc7-b828-5875a21d459d/split-function-unable-to-parse-string-correctly-in-ssrs-report?forum=sqlreportingservices
    please dont cross post
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

Maybe you are looking for

  • Lion, Externals and networking.

    Hey there, I'm a first time Mac User and I recently bought a MacMini. I thought buying the low-end MacMini would be a great expense to add to my collection of electronics. I'm not overly familiar with the Lion OSX. I've currently setup a network and

  • Clean Install of Preloaded Windows 8 on HDD to SSD (MSI GX60)

    Good Morning Guys!  This is my first post here so I'll try my best to explain my problem / confusion coherently. I recently ordered a MSI GX60 off ExcaliberPC. I haven't gotten it yet but my plan is to install a new 2.5" Cosair Force 3 120 GB SSD mak

  • Pages with Templates not updating?

    I made a template page (saved in templates folder), then did a SAVE AS to create my other pages. When I tried to update a template (repeating region), it does not seem to update the other pages (files updated = 0) The site is managed as well. HELP!!!

  • Solaris - USB - Mouse

    I've got some troubles using USB Mouse on my fresh installed Solaris 10. Since it was installed I can't use my Mouse and I've nothing but console to use, what makes me frustrated in the long run :) please tell me what to do to make my USB Mouse fully

  • CiscoWorks LMS 2.6: Blank page after login

    Hi, CiscoWorks LMS version 2.6 is running on Windows Server 2003. I can load the login page using Internet Explorer. However after login page is blank. I have attached the screenshot(ciscowork.jpg) and pdshow result (pdshow.zip). Also there is an err