XML not well formed - Java Mapping, Webservice to RFC Scenario

Hello All Experts,
I have facing a strange type of error. I have written a Java Mapping which implements a DOM parser to take a request from a Webservice and validate it on the basis of some prerequisites. i.e. If data in the incoming request is valid, it creates a message of the same structure type as the input. If the incoming data is incorrect or incomplete; It generates an Error response structure.
When I run and test the same mapping program using Editplus Java editor for the error scenario; it executes perfectly and creates the correct error XML structure. (I checked it by importing the structure in the XI Message mapping test tab). But when I create jar of my java mapping program and test it in my interface mapping, it gives me "XML not well formed error" (Problem while building the tree).
Any idea as to why is it behaving in such a way? There are 2 reasons which come to my mind as of now:
1. The initilization of my input and output streams in the public static void main:
            InputStream in = new FileInputStream(new File("Input.xml"));
           OutputStream out = new FileOutputStream(new File("Output.xml"));
           validateXML myMapping = new ValidateXML();
            myMapping.execute(in, out);
The Output.xml has the xml structure for the correct case, do I have to initialize my outputstream for the error file? say error.xml
2. My Webservice interface is a sychronous interface (Request / Response) and output of the Java mapping program are two asynchronous interface. (I'll use a synch-asynch bridge when this works) - Is that causing a problem?
Please help.
Best regards,
Varun

Hello Varun,
it gives me "XML not well formed error" (Problem while building the tree).
I have come across the same error message while testing in interface mapping. My problem was when an exception occured in java mapping, the execution terminates with the messages XML not well formed error". In order to solve this issue what i did was catch the exception type TransformerException and in that catch block throw StreamTransformationException exception in main methos of mapping program i.e execute().
eg:-                                                                               
catch (TransformerException e) {
               throw new StreamTransformationException("Can not write XML.", e);
By doing this you will see the exception raised , because some times when you execute your mapping with mail() method, though it create the file, when you try to open it will give error if any exceptions occured in mapping. By using the above notation you can handle those in java mapping.
Hope you have gone through this blog.
[Handling and Tracing Exceptions in java mapping|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417700)ID1055371050DB01666765031379427182End?blog=/pub/wlg/15061]
Regards,
Prasanna

Similar Messages

  • XML not well formed in - XSLT mapping

    Hi,
    I am doing a simple xslt mapping wherein my Source data structure is
    MT
    |__ details
            |__ Records
                      |_emp_no
                      |_ emp_name
                      |_emp_dno
    In XSL file i hv specified <xsl:template match="MT">
    and I am using <for-each select="details/Records">
    when I m testing it in Interface mapping, it is giving me error "XML not well formed"
    can anybody please suggest whats the problem in the code??
    Thank you,
    Anu Singhal

    Hi Anu,
        I think in the select query in xslt mapping u have to mention the expression "//"  so that for each iteration it can go according the path.
      < for-each select = " //details/records">
      I have some sample code of same type...just check it..
    <xsl:template match="/">
    <MT_EMP_TARGET>
         <xsl:for-each select="//EMP_DATA">
              <EMP_DATA>
                            <xsl:variable name="fname" select="//EMP_DATA/First_Name"/>
                            <xsl:variable name="lname" select="//EMP_DATA/Last_Name"/>     
                   <Emp_Code><xsl:value-of select="//EMP_DATA/Emp_Code"/></Emp_Code>
                   <Name><xsl:value-of select="concat($fname,' ',$lname)"/></Name>
                   <Join_Dt><xsl:value-of select="//EMP_DATA/Join_Dt"/></Join_Dt>
                   <Designation><xsl:value-of select="//EMP_DATA/Level"/></Designation>
                   <Dept><xsl:value-of select="//EMP_DATA/Dept"/></Dept>
              </EMP_DATA>
         </xsl:for-each>
    </MT_EMP_TARGET>
    </xsl:template>
    For more info:
    http://www.w3schools.com/xsl/el_for-each.asp
    Cheers,
    Prasanthi.
    Reward marks  if helpful.

  • XML Not well formed, Mapping error

    Hi All,
    I'm trying a simple file to file scenario..
    Following is the structure of source and target file..
    Source structure
    ===============
    <?xml version="1.0" encoding="UTF-8"?>
    <ns:SourceMT xmlns:ns="urn:tmp:workshop:file2file">
      <Src1>1</Src1>
      <Src2>2</Src2>
    </ns:SourceMT>
    Target Structure
    ===============
    <?xml version="1.0" encoding="UTF-8"?>
    <ns:TargetMT xmlns:ns="urn:tmp:workshop:file2file">
      <Tgt1>1</Tgt1>
      <Tgt2>2</Tgt2>
    </ns:TargetMT>
    I did a one to one mapping for the two fields and tested the same using the test tool in IR and it works fine..
    However when I put the same source xml structure in the Input file it gives me the below error..
    Also when I copy the payload from the sxmb_moni and paste the same in the test tool in IR it throws an error saying
    "XML not well-formed"
    Error
    =====
    <SAP:Stack>During the application mapping com/sap/xi/tf/_FileMM_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Payload
    =======
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns:SourceMT xmlns:ns="urn:tmp:workshop:file2file">
      <Src1>1</Src1>
      <Src2>2</Src2>
      </ns:SourceMT>
    Any inputs are greatly appreciated..
    Thanks and Regards,
    Nazim

    Hi ,
    <i>During the application mapping com/sap/xi/tf/_FileMM_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</i>
    It is clearly saying that exception in mapping....Check your mapping correcly with one to one mapping.Dont do any mapping to the root node and check it...
    And also check this...
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    Sekhar

  • "XML not well-formed" error while testing Interface mapping.

    Hello Experts,
      I have a simple Interface mapping test, where a single input field of type string is mapped to a target Interface.
    The content of a string actually will be a XML. I am using a XSLT mapping to convert string XML to XML. The XSLT mapping used by me is as :
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:output omit-xml-declaration="yes" />
    <xsl:template match="@*|node()">
    <xsl:copy>
      <xsl:apply-templates select="@*|node()" />
      </xsl:copy>
      </xsl:template>
    <xsl:template match="/">
      <xsl:value-of select="//string" disable-output-escaping="yes" />
      </xsl:template>
      </xsl:stylesheet>
    Test data to be used is :
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <string>
    <catalog>
         <cd>
              <title>Empire Burlesque</title>
              <artist>Bob Dylan</artist>
              <country>USA</country>
              <company>Columbia</company>
              <price>10.90</price>
              <year>1985</year>
         </cd>
         <cd>
              <title>Unchain my heart</title>
              <artist>Joe Cocker</artist>
              <country>USA</country>
              <company>EMI</company>
              <price>8.20</price>
              <year>1987</year>
         </cd>
    </catalog>
    </string>
    My Target structure is like:
    catalog
      CD
        title
        artist
        country
        company
        price
        year
    No matter what I input as a test data , I get the error as "XML not well-formed" while testing Interface mapping.  
    Please suggest what could be the reason for this error?
    Regards,
    Abhi.

    Hi check your XSLT mapping in XMLY spy with test data,the out of the XSLT Mapping should be valid XML , then only you can see output in interface mapping.
    Regards,
    Raj

  • Re: XML NOT WELL FORMED??

    Hi all I have the 8520 curve. All was well till today And now I'm also getting XML NOT WELL FORMED Its not on all sites as yet But its so annoying. I've also done all that's been Sujested here and still have the Problem. The only thing I have done Today is update the blackberry Messenger as I was fed up with the Update message. oh how I wished I hadn't. But maybe this would Have happened anyway by seeing how Many are having the same problem. Anyone got any other ideas or know Of a number in the uk I could call For advice. Or should I call o2 Can anyone help us all. Bless you all for trying. Thanks. Ps please go easy on tec stuff as I'm New to blackberry and feel like A right dummy, which I feel like Spitting out every time the xml message appears lol
    Solved!
    Go to Solution.

    Hello,
    In this case we can try to reload the software on the BlackBerry smartphone to make sure it is running the latest version and there are no issues with the OS.
    To do this we would need to back up the BlackBerry smartphone. Please open the BlackBerry Desktop Manager and connect your BlackBerry smartphone. Click on the Backup and Restore button and select Back Up. Please note the location where the backup is being saved as we will need to access it later to restore the BlackBerry smartphone.
    Once you have backed up your BlackBerry smartphone please follow the link below to complete a clean reload of the BlackBerry smartphone software.
    Link: http://www.blackberry.com/btsc/KB11320
    Please test the BlackBerry smartphone prior to restoring your data.
    Thank you
    -DrP
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • Error using XML Loader: XML not well-formed

    Hi all,
    I am facing a problem using the XML loader in xMII 12.0 when trying to load the following XML file:
    <?xml version="1.0" encoding="UTF-8"?>
    <Users>
      <User>
        <UserID>IMXOO</UserID>
        <CWID>IMXOO</CWID>
        <Prename>Michael</Prename>
        <Surname>Otto</Surname>
        <CreatedOn>2001-12-31T12:00:00</CreatedOn>
        <CreatedBy>IMXOO</CreatedBy>
      </User>
    </Users>
    I also tried a most basic XML file which shows the same error:
    <?xml version="1.0"?>
    <ausgabe>
      <anzeige>Testausgabe</ausgabe>
    </ausgabe>
    To my understanding both files are well-formed, however xMII shows the error:
    "The markup in the document following the root element must be well-formed."
    Do I break any rules concerning the markup? IE loads the files without showing any errors.
    Best Regards
    Michael

    Jeremy,
    again you gave the key to the solution. When the error occured, I have set up the following path within the xMII workbench:
    "Catalog-Tab"
    <server>
      > Sandbox
            > XML
                myFile.xml
    When I tried to load the mxFile.xml with the XML Loader, I got the error described above (XML not well-formed). I also cannot drag the file into a transaction in the workbench. I have manually configured the XML Loader with "http://<server:port>/XMII/CM/Sandbox/XML/mxFile".
    Now using your hint I have changed to the "Web-Tab":
    "Web-Tab"
    <server>
        > Sandbox
            > WEB
                > XML
                    myFile.xml
    Then all works fine, when I now drag the file into the transaction. As you described, an XML Loader action is created with configuration "db://Sandbox/WEB/XML/myFile.xml" and the XML is loaded correctly.
    Thanks for your help!
    Best regards
    Michael

  • XML Not well formed

    I have an XSLT mapping as described below:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/biztalk_1">
    <ns0:biztalk_1 xmlns:ns0="urn:biztalk-org:biztalk:biztalk_1">
    <ns0:header>
    <ns0:delivery>
    <ns0:message>
    <ns0:messageID><xsl:value-of select="header/delivery/message/messageID"/></ns0:messageID>
    </ns0:message>
    </ns0:delivery>
    </ns0:header>
    <ns0:body>
    <ns0:FinancialTransaction.CreateFromData>
    <ns0:CompanyCode><xsl:value-of select="body/FinancialTransaction.CreateFromData/CompanyCode"/></ns0:CompanyCode>
    </ns0:FinancialTransaction.CreateFromData>
    </ns0:body>
    </ns0:biztalk_1>
    </xsl:template>
    </xsl:stylesheet>
    however when I execute this mapping I keep getting the error saying that the XML is not well formed...
    I have looked at it but really cant see where I am going wrong.. Could someone take a look at the above xslt and let me know where this error could be coming from....

    ok this is the xslt again
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/biztalk_1">
    <ns0:biztalk_1 xmlns:ns0="urn:biztalk-org:biztalk:biztalk_1">
      <ns0:header>
          <ns0:delivery>
             <ns0:message>
                <ns0:messageID><xsl:value-of select="header/delivery/message/messageID"/></ns0:messageID>
             </ns0:message> 
          </ns0:delivery>
       </ns0:header>
       <ns0:body>
          <ns0:FinancialTransaction.CreateFromData>
             <ns0:CompanyCode><xsl:value-of select="body/FinancialTransaction.CreateFromData/CompanyCode"/></ns0:CompanyCode>
          </ns0:FinancialTransaction.CreateFromData>
       </ns0:body>
    </ns0:biztalk_1>
    </xsl:template>
    </xsl:stylesheet>
    and the source will look something like this
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:biztalk_1 xmlns:ns0="urn:biztalk-org:biztalk:biztalk_1">
       <ns0:header>
          <ns0:delivery>
             <ns0:message>
                <ns0:messageID/>
                <ns0:sent/>
             </ns0:message>
          </ns0:delivery>
       </ns0:header>
       <ns0:body>
          <ns0:FinancialTransaction.CreateFromData>
             <ns0:CompanyCode/>
          </ns0:FinancialTransaction.CreateFromData>
       </ns0:body>
    </ns0:biztalk_1>
    There are actually more fields but this is a toned down version...

  • How is DW-generated XML not well-formed?

    <ASP:Repeater DataMember="<%#
    DataSetScheduleByDate.FieldValue("", Container) %>"
    DataSource='<%# DataSetScheduleByDate.DefaultView %>'
    runat="server">
    This was generated by DW. When I run the page, its telling me
    that line 116 is not well formed. Since this was generated, I'm
    curious what's wrong? This is part of a datagrid and perhaps I'm
    just not assigning things correctly?

    What does the xml page around line 116 look like?
    Dave
    "dl0haus" <[email protected]> wrote in
    message
    news:fqkebl$mf9$[email protected]..
    > <ASP:Repeater DataMember="<%#
    DataSetScheduleByDate.FieldValue("",
    Container)
    > %>" DataSource='<%#
    DataSetScheduleByDate.DefaultView %>' runat="server">
    >
    > This was generated by DW. When I run the page, its
    telling me that line
    116
    > is not well formed. Since this was generated, I'm
    curious what's wrong?
    This
    > is part of a datagrid and perhaps I'm just not assigning
    things correctly?
    >

  • XML - writing file #1088 (xml not well formed)

    Hi,
    What could cause the IO Error #1088 within the code below? All I can think of is white space issue. It prints to the screen AND saves to the xml file correctly, just keeps throwing up the code.
    Also, writing it this way wont' allow me to add <?xml version='1.0' encoding='utf-8'?> is it required?
    Thanks for any help.
    var authors:XML;
    authors =<authors>
                    <author>
                    <firstname>Rich</firstname>
                    <lastname>Shupe</lastname>
                    </author>
                    <author>
                    <firstname>Zevan</firstname>
                    <lastname>Rosser</lastname>
                    </author>
                    </authors>;
    var xml =authors;
    var book:XML = new XML(xml);
    var xmlResponse:XML;
    var xmlURLReq:URLRequest = new URLRequest("saveXML.php");
    xmlURLReq.data = book;
    xmlURLReq.contentType = "text/xml";
    xmlURLReq.method = URLRequestMethod.POST;
    var xmlSendLoad:URLLoader = new URLLoader();
    xmlSendLoad.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
    xmlSendLoad.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
    xmlSendLoad.load(xmlURLReq);
    function onComplete(evt:Event):void {
        try {
            xmlResponse = new XML(evt.target.data);
            respTxt.text = xmlResponse;
            removeEventListener(Event.COMPLETE, onComplete);
            removeEventListener(IOErrorEvent.IO_ERROR, onIOError);
        } catch (err:TypeError) {
            respTxt.text = "An error occured when communicating with server:\n" + err.message+" "+xml;
    function onIOError(evt:IOErrorEvent):void {
        respTxt.text = "An error occurred when attempting to load the XML.\n" + evt.text;

    Answered it myself....
    The PHP script was adding additional<tags></tags> so the file I was outputing read:
    <root>
    <teams>
    <team1></team1>
    <team2></team2>
    </teams>
    </root>
    <phpaddedInfo></phpaddedInfo>
    so just a good idea to look in both places when you get an IO error #1088

  • DI Webservice - Response not well-formed XML & OBServer.dll failed extract

    Hi,
    My company just implement SAP B1 this year.
    So far, we encounter 2 issue :
       1. Every month we encounter "Response is not well-formed XML" using DI Server Webservice.
       2. Failed to extract OBServer.dll from CAB file (encounter also once a month)
    For issue 1, restart DI Server service will not help.
    I need to reboot the Windows OS to make it work again.
    For issue 2, restart DI Server service will help to solve the problem.
    But the question why this happening ?
    Please help.
    Thanks.

    Hi,
    To begin troubleshooting, you may check any monthly applications' running like update or anti-virus.
    Thanks,
    Gordon

  • Not well formed  XML data in XI

    HELLO !!
    Can XI handle a non welll formed XMl messages as an input  ?
    THANKS
    ~Peeru

    Hey
    >>we can use java mapping to make it well formed XMl.
    What exactly you mean by "not well formed XML" ?
    >>Does it mean that java mapping can take the value as a stream of data and then at the next step the XML parser is va;idating the msg ?
    Yeah thats the way Java mapping works,it takes input in the form of Input stream and gives output as an output stream.
    Bottom line is XML structure should be valid,you can't handle a invalid XML structure with any mapping,once you get the message  then you can use graphical message mapping for simple structures or use Java for complex ones(i guess by non-well formed you mean the ones which can be handled only by Java mapping)
    Thanx
    Aamir

  • Got "Reponse is not well-formed XML" error when calling FormDataIntegration web service

    Hi,
    I'm using Windows Server 2008 + LiveCycle Server ES2 (Reader Extensions) + ASP.NET
    This problem only happened when I run the ASP.NET program with the licensed version of the server, (which i installed form the CD provided)
    However, there is no problem in my development environment with the trial version downloaded from Adobe website, the import data was successful and a correct PDF form can be returned.
    My question is that whether there is a problem within the LiveCycle services? or there is missing component that needs to be installed?? Thanks
    After call the importData of FormDataIntegration, I got below error
    Response is not well-formed XML.
    System.InvalidOperationException: Response is not well-formed XML. ---> System.Xml.XmlException: Root element is missing.
    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
    at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
    at System.Xml.XmlTextReaderImpl.Read()
    at System.Xml.XmlTextReader.Read()
    at System.Xml.XmlReader.MoveToContent()
    at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
    --- End of inner exception stack trace ---
    I checked in LiveCycle's jboss log, I found below errors:
    2011-02-17 14:16:37,086 ERROR [org.apache.axis.encoding.ser.BeanSerializer] Exception:
    java.lang.NullPointerException
    at com.adobe.idp.dsc.provider.impl.soap.axis.ser.ArraySerializer.serialize(ArraySerializer.j ava:76)
    at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1 504)
    at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980)
    at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:707)
    at com.adobe.idp.dsc.provider.impl.soap.axis.ser.AdobeAxisBeanSerializer.serialize(AdobeAxis BeanSerializer.java:281)
    at java.lang.Thread.run(Thread.java:619)
    2011-02-17 14:16:37,087 ERROR [org.apache.axis.encoding.ser.BeanSerializer] Exception:
    java.io.IOException: java.lang.NullPointerException
    at com.adobe.idp.dsc.provider.impl.soap.axis.ser.AdobeAxisBeanSerializer.serialize(AdobeAxis BeanSerializer.java:326)
    at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1 504)
    at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980)
    : at java.lang.Thread.run(Thread.java:619)
    2011-02-17 14:16:37,088 ERROR [org.apache.axis.SOAPPart] Exception:
    java.io.IOException: java.io.IOException: java.lang.NullPointerException
    at com.adobe.idp.dsc.provider.impl.soap.axis.ser.AdobeAxisBeanSerializer.serialize(AdobeAxis BeanSerializer.java:326)
    at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1 504)
    at java.lang.Thread.run(Thread.java:619)
    2011-02-17 14:16:37,088 WARN  [org.apache.axis.attachments.AttachmentsImpl] Exception:
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error.
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}hostname: XXXX
    ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error.
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:333)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
    ... 33 more
    Caused by: java.lang.NoClassDefFoundError: com/adobe/formServer/utils/LogUtils
    at com.adobe.formServer.utils.CommonGibsonUtils.PDFDocumentFromDocument(CommonGibsonUtils.ja va:122)
    at com.adobe.livecycle.formdataintegration.server.FormData.importData(FormData.java:64)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)
    ... 74 more
    2011-02-17 14:16:37,090 ERROR [org.apache.axis.encoding.ser.BeanSerializer] Exception:
    java.lang.NullPointerException
    at com.adobe.idp.dsc.provider.impl.soap.axis.ser.ArraySerializer.serialize(ArraySerializer.j ava:76)
    at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1 504)
    at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980)
    at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:707)

    it's base64, here's the codes i called, any hints?
                FormDataIntegration.FormDataIntegrationService dataIntClient = new FormDataIntegration.FormDataIntegrationService();
                dataIntClient.Url += "?blob=base64";
                dataIntClient.Credentials = new System.Net.NetworkCredential(account, password);
                FormDataIntegration.BLOB inXMLData = new FormDataIntegration.BLOB();
                inXMLData.binaryData = xmlData;
                FormDataIntegration.BLOB inPDFForm = new FormDataIntegration.BLOB();
                string pathPDF = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin\\ReplySlipByEmail.pdf");
                FileStream fsPDF = new FileStream(pathPDF, FileMode.Open);
                int lenPDF = (int)fsPDF.Length;
                byte[] bytePDF = new byte[lenPDF];
                fsPDF.Read(bytePDF, 0, lenPDF);
                inPDFForm.binaryData = bytePDF;
                FormDataIntegration.BLOB result = dataIntClient.importData(inPDFForm, inXMLData);
                return ApplyUsageRightsToPDF(result.binaryData, account, password, LCCertName);

  • Assembler Service API Quick Starts Web service API, Response is not well-formed XML

    Hi,
    I am trying to get the "Assembler Service API Quick Start" webservice api example to work in a asp.net application.
    The following line produces the exception below.
    // Send the request to the Assembler Service
    AssemblerResult result = asOb.invoke( ddxDoc, inputMap, assemblerSpec );
    "Response is not well-formed XML. at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at AssemblerServiceService.AssemblerServiceService.invoke(BLOB inDDXDoc, mapItem[] inputs, AssemblerOptionSpec environment)"
    Any help would be greatly appreciated.
    Thanks
    cheeves
    (the code is exactly as it is in the example, except for adding "?blob=base64" to the url of the AssemblerServiceService obeject, and I have the 3 files in the root of my c drive)

    after looking at the example more closely I discovered that there is a key name called "optionsLink.pdf" that doesn't match the source in the DDX file.

  • Could not initiate the BPEL process :the input xml is not well formed err

    Hi
    I am calling a bpel process from the bpel console. It is a syncronous process and just fetches values from the database. I see that when ever i call this for some inputs i get the following error , in the response.
    Could not initiate the BPEL process because the input xml is not well formed, the reason is :
    Error parsing envelope: (1, 6168) Invalid char in text. Please correct the input xml.
    When i see the log i have the following message
    fault.collaxa.cube.ws> <AdapterFramework::Outbound> Returning outbound XMLRecord for OutputParameters
    Exception: Error parsing envelope: (1, 6168) Invalid char in text.
    e.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:103)
    e.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
    e.ws.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:935)
    ate__ws._jspService(_ngDoInitiate__ws.java:455)
    erver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    .runtimev2.JspPageTable.service(JspPageTable.java:453)
    .runtimev2.JspServlet.internalService(JspServlet.java:591)
    .runtimev2.JspServlet.service(JspServlet.java:515)
    let.http.HttpServlet.service(HttpServlet.java:856)
    nd.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    urity.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    ity.AccessController.doPrivileged(Native Method)
    rity.auth.Subject.doAsPrivileged(Subject.java:517)
    I understand that the error is coming with parsing the output from the database values. Further i see the process is completed successfully when i see the flow and log and the out is present in the output response. Has any body faced this issue. What is that character that it is nto able to parse as the error says.
    Thanks
    -Pradip

    hi
    I have tried it using both xml and the initiate tab. I get the same error every time i do it for a particular value. i further think that this is occuring for the out put response that is got from the data base as the log says. ( given in the initial post). I can surely paster the input xml for you
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/top/InputXXESIOEHEADERSIFACE">
    <ns1:XxesiOeHeadersIfaceCollection>
    <ns1:XxesiOeHeadersIface>
    <ns1:orderSource></ns1:orderSource>
    <ns1:originalsystemreference></ns1:originalsystemreference>
    <ns1:customerNumber></ns1:customerNumber>
    <ns1:Country></ns1:Country>
    </ns1:XxesiOeHeadersIface>
    </ns1:XxesiOeHeadersIfaceCollection>
    </soap:Body>
    </soap:Envelope>

  • The XML generated by the Lotus servlet component is not well formed

    Hello Experts,
    While integrating EP7 to Lotus Domino 7 we are facing some problem with XML parser.
    We have following configuration
    EP7 SP 13
    Lotus Domino 7
    All configurations related to SSO are done. SSO is working fine.
    All transports are created properly. All services active
    Please suggest some solution
    The error is displayed when i try to access the calendar related objects, like calendar, appointments etc.
    Here is error detail:
    The XML generated by the Lotus servlet component is not well formed com.sap.ip.collaboration.gw.impl.transport.lotus.exception.XMLParserException: The XML generated by the Lotus servlet component is not well formed
         at com.sap.ip.collaboration.gw.impl.transport.lotus.LotusCalendarTransport.getXmlDocument(LotusCalendarTransport.java:997)
         at com.sap.ip.collaboration.gw.impl.transport.lotus.LotusCalendarTransport.readResponse(LotusCalendarTransport.java:1922)
         at com.sap.ip.collaboration.gw.impl.transport.lotus.LotusCalendarTransport.getLotusServerTz(LotusCalendarTransport.java:405)
         at com.sap.ip.collaboration.gw.impl.transport.lotus.LotusCalendarTransport.getItemList(LotusCalendarTransport.java:377)
         at com.sap.ip.collaboration.gw.impl.framework.groupware.GroupwareManager.getItemList(GroupwareManager.java:263)
         at com.sap.ip.collaboration.gw.impl.manager.calendar.ContentManager.getChildren(ContentManager.java:237)
         at com.sapportals.wcm.repository.CollectionImpl.internalGetChildrenManager(CollectionImpl.java:1538)
         at com.sapportals.wcm.repository.CollectionImpl.internalGetChildren(CollectionImpl.java:1555)
         at com.sapportals.wcm.repository.CollectionImpl.doGetChildren(CollectionImpl.java:144)
         at com.sapportals.wcm.repository.CollectionImpl.getChildren(CollectionImpl.java:124)
         at com.sap.ip.collaboration.gwui.api.GWUtils.getAllCalendarItems(GWUtils.java:180)
         at com.sap.ip.collaboration.gwui.api.htmlb.component.day.DayControlDynPage.doProcessBeforeOutput(DayControlDynPage.java:65)
         at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:123)
         at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Waiting for replies
    Regards
    Kedar Kulkarni
    Do Not worry for points.

    Hello Michael Sambeth and all Lotus experts,
    I read about a tool for Lotus Domino Ticket Verifier that is delivered by SAP.
    Can you please send it to kedar.c.kulkarni @ gmail.com
    I actually posted a thread, but could not get any reply for SAP standard error: GW-LOT-014
    regards
    Kedar Kulkarni
    Edited by: Kedar Kulkarni on Apr 9, 2008 12:11 PM

Maybe you are looking for

  • Windows 8 Add Features to Windows 8 Pro

    Hi, I have Windows 8 64-bit that was preinstalled on my laptop, now I want to upgrade to Windows 8 Pro 64-bit, I already have the license from my dreamspark account. My questions are, upgrading from Windows 8 to Windows 8 Pro, from the "add features"

  • Crystal Reports Software Installation Issue

    When I try to install Crystal reports on my Dell Optiplex 780 running Win XP SP3, 3.5 GB ram, with Adobe 9 installed and License accepted I get Error 1713 unable to intall one of it's required products. What do I need to do to complete the installati

  • Cell Text Annotations of Hyperion Planning on Hyperion Financial Reporting

    Hello, There is a business requirement to show Cell text entered as annotation on each cells in data form to be reported using Hyperion Financial Reporting. Also there is a case of some of the data types being text. Some of the forms also have suppor

  • Document warning

    Hi, Can I turn off document warning? I open some file .xls and numbers open before open file Documents warning. I want this option turn off, but I can't find some option, where I turn off. Do you know, how I can turn off document warning? Thanks Jan

  • FC Crashes and enjoys using 1 GB of RAM

    Hello All, I am creating an interactive timeline and have imported artwork from Illustrator, optimized many of the vector graphics (still need to edit some of the vectors, so I do not want to optimize all yet), and I keep the size of the resulting SW