Problem in code to get xi payload data

Hi,
I am trying to fetch xi payload using CL_XMS_PERSIST.This is my partial code.
CALL METHOD xms_persist->READ_MSG_ALL
          EXPORTING
            IM_MSGGUID      = MSGGUID
            IM_PID                = PID
            IM_VERSION       = VERS
            IM_CLIENT          = CLIENT
            IM_READ_PAYLOAD = 'X'
          IMPORTING
            EX_MESSAGE      = ex_message.
CALL METHOD ex_message>GETATTACHMENTS
     RECEIVING
            SIZE   = SIZE.
But , i am recieving SIZE as ZERO , there by i could not execute other methods.The SIZE is ZERO as the table URES in method GETATTACHMENTS has no entries.
What could be the right solution to get payload..
Thanks
--Pradeep
Edited by: pradeep nellore on Jun 23, 2009 7:29 AM

Part of the ethos of these forums is to share information.  So please let us know what the solution was.
matt

Similar Messages

  • Problem while trying to get task payload in java client.

    Hi,
    I am working on worklist application in 10.1.3 and trying to get task payload in java client.
    In BPEL proces, assigning a XML as following:
    <copy>
    <from expression="bpws:getVariableData('inputVariable','payload','/client:ErrorHandlerBPELProcessRequest/client:inputXML')"/>
    <to variable="initiateTaskInput" part="payload"
    query="/taskservice:initiateTask/task:task/task:payload"/>
    </copy>
    And in java client:
    Element payload = (Element)task.getPayloadAsElement();
    String xml = payload.getNodeValue();
    Result is a null value for xml. I am able to see the input XML is assigned to task payload in BPEL console and payload object is as "oracle.xml.parser.v2.XMLElement@13ae670"
    I also tried with getPayload() which returns oracle.bpel.services.workflow.task.model.AnyTypeImpl object.
    Any help is appreciated.
    Thanks,
    -Vidya

    Hi,
    Thanks for the reply.
    When I checked for childnodes also, it is showing zero childnodes.
    I had tried with both getTaskQueryService().getTaskDetailsById() method and getTaskQueryService().getTaskVersionDetails() to get details about task.
    I am able to fetch all other details except payload which has been assgined in BPEL process. I don't know why payload is not available.
    Following is input for intiatetask:
    <initiateTaskInput>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
    -<initiateTask xmlns="http://xmlns.oracle.com/bpel/workflow/taskService">
    -<task xmlns="http://xmlns.oracle.com/bpel/workflow/task">
    <title>OAG XML</title>
    <payload>
         <SyncPurchaseOrder releaseID="9.0" xmlns:ccf="http://www.oracle.com/XSL/Transform/java/com.myorg.integration.xpathfunctions.xsl.LookupFunctions" xmlns:ns1="http://www.openapplications.org/oagis/9" xmlns="http://www.openapplications.org/oagis/9">
         <ns1:ApplicationArea>
         <ns1:Sender>
              <ns1:LogicalID>
                                       LogicalID
                                       OAG Server Name</ns1:LogicalID>
              <ns1:ComponentID schemeAgencyName="'Jabil'">RR
                                  </ns1:ComponentID>
              <ns1:TaskID schemeAgencyName=" ">Inbound Order Event</ns1:TaskID>
              <ns1:ReferenceID>129537</ns1:ReferenceID>
              <ns1:ConfirmationCode>Never</ns1:ConfirmationCode>
         </ns1:Sender>
         <ns1:CreationDateTime>1969-12-31T18:59:50-05:00</ns1:CreationDateTime>
         <ns1:BODID>RR~4556839~129537</ns1:BODID>
         </ns1:ApplicationArea>
         <ns1:DataArea>
         <ns1:Sync/>
         <ns1:PurchaseOrder>
              <ns1:PurchaseOrderHeader>
              <ns1:DocumentID>
              <ns1:ID>4556839</ns1:ID>
              <ns1:VariationID schemeName="Version" schemeID=""/>
              </ns1:DocumentID>
              <ns1:Note status="Comments">test Rr inbound header notes</ns1:Note>
              <ns1:DocumentReference type="Contract">
              <ns1:DocumentID>
                   <ns1:ID>OSS1</ns1:ID>
              </ns1:DocumentID>
              </ns1:DocumentReference>
              <ns1:DocumentReference type="OrderProcessType">
              <ns1:DocumentID>
                   <ns1:ID>POI</ns1:ID>
              </ns1:DocumentID>
              </ns1:DocumentReference>
              <ns1:DocumentReference type="clientRefNo1">
              <ns1:DocumentID>
                   <ns1:ID>TEST CLIENT REF1</ns1:ID>
              </ns1:DocumentID>
              </ns1:DocumentReference>
              <ns1:DocumentReference type="clientRefNo2">
              <ns1:DocumentID>
                   <ns1:ID>TEST CLIENT REF2</ns1:ID>
              </ns1:DocumentID>
              </ns1:DocumentReference>
              <ns1:Status>
              <ns1:Code>Released</ns1:Code>
              </ns1:Status>
              <ns1:Party role="TradingPartner">
              <ns1:PartyIDs>
                   <ns1:ID schemeID="Primary">HPOSS</ns1:ID>
              </ns1:PartyIDs>
              </ns1:Party>
              <ns1:SupplierParty>
              <ns1:PartyIDs>
                   <ns1:ID schemeID="SupplierEBU"/>
              </ns1:PartyIDs>
              </ns1:SupplierParty>
              <ns1:SupplierParty>
              <ns1:PartyIDs>
                   <ns1:ID schemeID="SupplierEBU"/>
              </ns1:PartyIDs>
              </ns1:SupplierParty>
              <ns1:ShipToParty>
              <ns1:PartyIDs>
                   <ns1:ID schemeID="ShipToEBU">WMXAMS_HP KITTING</ns1:ID>
              </ns1:PartyIDs>
              </ns1:ShipToParty>
              <ns1:PaymentTerm type="Primary">
              <ns1:Term>
                   <ns1:ID schemeID="Primary"/>
              </ns1:Term>
              </ns1:PaymentTerm>
              <ns1:UserArea/>
              </ns1:PurchaseOrderHeader>
              <ns1:PurchaseOrderLine>
              <ns1:LineNumber>1</ns1:LineNumber>
              <ns1:Note status="Comments">TEST LINE1 NOTES</ns1:Note>
              <ns1:Status>
              <ns1:Code/>
              <ns1:ReasonCode>BACKLIGHT INOPERATIVE</ns1:ReasonCode>
              <ns1:Reason>TEST LINE1 NOTES</ns1:Reason>
              </ns1:Status>
              <ns1:Item>
              <ns1:ItemID agencyRole="Primary">
                   <ns1:ID>71BI2532101</ns1:ID>
              </ns1:ItemID>
              <ns1:Classification type="ShipFromOwnerEBU">
                   <ns1:Codes>
                   <ns1:Code listID="Primary" sequence="1">JGS AMSTERDAM</ns1:Code>
                   </ns1:Codes>
              </ns1:Classification>
              <ns1:Classification type="Priority">
                   <ns1:Codes>
                   <ns1:Code listID="Primary" sequence="1">High</ns1:Code>
                   </ns1:Codes>
              </ns1:Classification>
              <ns1:Specification type="Warehouse">
                   <ns1:Property sequence="1">
                   <ns1:NameValue name="esb"/>
                   </ns1:Property>
              </ns1:Specification>
              <ns1:Specification type="stkLoc">
                   <ns1:Property sequence="1">
                   <ns1:NameValue name="esb"/>
                   </ns1:Property>
              </ns1:Specification>
              <ns1:Specification type="Bin">
                   <ns1:Property sequence="1">
                   <ns1:NameValue name="esb"/>
                   </ns1:Property>
              </ns1:Specification>
              <ns1:Specification type="ItemsToAdd">
                   <ns1:Property>
                   <ns1:NameValue name="esb" type="SerialNumber">101</ns1:NameValue>
                   </ns1:Property>
              </ns1:Specification>
              </ns1:Item>
              <ns1:Quantity>1</ns1:Quantity>
              <ns1:UnitPrice>
              <ns1:Amount currencyID="USD">2.3</ns1:Amount>
              <ns1:PerQuantity>1</ns1:PerQuantity>
              </ns1:UnitPrice>
              <ns1:RequiredDeliveryDateTime>2007-02-22T18:00:00-05:00</ns1:RequiredDeliveryDateTime>
              <ns1:ShipToParty>
              <ns1:PartyIDs>
                   <ns1:ID schemeID="Primary">WMXAMS_HP KITTING</ns1:ID>
                   <ns1:ID schemeID="ShipToOwnerEBU">JGS AMSTERDAM</ns1:ID>
              </ns1:PartyIDs>
              <ns1:Location type="Warehouse">
                   <ns1:ID>WMXAMS_HP KITTING</ns1:ID>
              </ns1:Location>
              <ns1:Location type="StockLocation">
                   <ns1:ID>SL1</ns1:ID>
              </ns1:Location>
              <ns1:Location type="bin">
                   <ns1:ID>Bin1</ns1:ID>
              </ns1:Location>
              <ns1:Location type="Condition">
                   <ns1:ID>Workable</ns1:ID>
              </ns1:Location>
              </ns1:ShipToParty>
              <ns1:UserArea>
              <cl:myorg.SyncPurchaseOrder.PurchaseOrderLine.UserArea xmlns:cl="http://www.myorg.com/oagis">
                   <cl:Party role="ShipFrom">
                   <cl:ID/>
                   </cl:Party>
                   <cl:ShipByDate>2007-02-22T18:00:00-05:00</cl:ShipByDate>
                   <cl:ItemDetail>
                   <cl:SubInventory>
                        <cl:SubInventoryQuantity>1</cl:SubInventoryQuantity>
                        <cl:SubInventoryStatus>AVL</cl:SubInventoryStatus>
                   </cl:SubInventory>
                   </cl:ItemDetail>
                   <cl:Flex/>
              </cl:myorg.SyncPurchaseOrder.PurchaseOrderLine.UserArea>
              </ns1:UserArea>
              </ns1:PurchaseOrderLine>
              <ns1:PurchaseOrderLine>
              <ns1:LineNumber>2</ns1:LineNumber>
              <ns1:Note status="Comments">TEST LINE2 NOTES</ns1:Note>
              <ns1:Status>
              <ns1:Code/>
              <ns1:ReasonCode>BATTERY DRAINS TOO QUICKLY</ns1:ReasonCode>
              <ns1:Reason>TEST LINE2 NOTES</ns1:Reason>
              </ns1:Status>
              <ns1:Item>
              <ns1:ItemID agencyRole="Primary">
                   <ns1:ID>71BI2532101</ns1:ID>
              </ns1:ItemID>
              <ns1:Classification type="ShipFromOwnerEBU">
                   <ns1:Codes>
                   <ns1:Code listID="Primary" sequence="1">JGS AMSTERDAM</ns1:Code>
                   </ns1:Codes>
              </ns1:Classification>
              <ns1:Classification type="Priority">
                   <ns1:Codes>
                   <ns1:Code listID="Primary" sequence="1">High</ns1:Code>
                   </ns1:Codes>
              </ns1:Classification>
              <ns1:Specification type="Warehouse">
                   <ns1:Property sequence="1">
                   <ns1:NameValue name="esb"/>
                   </ns1:Property>
              </ns1:Specification>
              <ns1:Specification type="stkLoc">
                   <ns1:Property sequence="1">
                   <ns1:NameValue name="esb"/>
                   </ns1:Property>
              </ns1:Specification>
              <ns1:Specification type="Bin">
                   <ns1:Property sequence="1">
                   <ns1:NameValue name="esb"/>
                   </ns1:Property>
              </ns1:Specification>
              <ns1:Specification type="ItemsToAdd">
                   <ns1:Property>
                   <ns1:NameValue name="esb" type="SerialNumber">101</ns1:NameValue>
                   </ns1:Property>
              </ns1:Specification>
              </ns1:Item>
              <ns1:Quantity>1</ns1:Quantity>
              <ns1:UnitPrice>
              <ns1:Amount currencyID="USD">2.5</ns1:Amount>
              <ns1:PerQuantity>1</ns1:PerQuantity>
              </ns1:UnitPrice>
              <ns1:RequiredDeliveryDateTime>2007-02-22T18:00:00-05:00</ns1:RequiredDeliveryDateTime>
              <ns1:ShipToParty>
              <ns1:PartyIDs>
                   <ns1:ID schemeID="Primary">WMXAMS_HP KITTING</ns1:ID>
                   <ns1:ID schemeID="ShipToOwnerEBU">JGS AMSTERDAM</ns1:ID>
              </ns1:PartyIDs>
              <ns1:Location type="Warehouse">
                   <ns1:ID>WMXAMS_HP KITTING</ns1:ID>
              </ns1:Location>
              <ns1:Location type="StockLocation">
                   <ns1:ID>SL1</ns1:ID>
              </ns1:Location>
              <ns1:Location type="bin">
                   <ns1:ID>Bin1</ns1:ID>
              </ns1:Location>
              <ns1:Location type="Condition">
                   <ns1:ID>Workable</ns1:ID>
              </ns1:Location>
              </ns1:ShipToParty>
              <ns1:UserArea>
              <cl:myorg.SyncPurchaseOrder.PurchaseOrderLine.UserArea xmlns:cl="http://www.myorg.com/oagis">
                   <cl:Party role="ShipFrom">
                   <cl:ID/>
                   </cl:Party>
                   <cl:ShipByDate>2007-02-22T18:00:00-05:00</cl:ShipByDate>
                   <cl:ItemDetail>
                   <cl:SubInventory>
                        <cl:SubInventoryQuantity>1</cl:SubInventoryQuantity>
                        <cl:SubInventoryStatus>AVL</cl:SubInventoryStatus>
                   </cl:SubInventory>
                   </cl:ItemDetail>
                   <cl:Flex/>
              </cl:myorg.SyncPurchaseOrder.PurchaseOrderLine.UserArea>
              </ns1:UserArea>
              </ns1:PurchaseOrderLine>
         </ns1:PurchaseOrder>
         </ns1:DataArea>
         </SyncPurchaseOrder>
    </payload>
    <taskDefinitionURI>http://localhost:80/orabpel/default/ErrorHandlerBPEL/1.0/SimpleUserActivity/SimpleUserActivity.task
    </taskDefinitionURI>
    <creator/>
    <ownerUser/>
    <ownerGroup/>
    <priority>3
    </priority>
    <identityContext/>
    <userComment/>
    <attachment/>
    -<processInfo>
    <domainId>default
    </domainId>
    <instanceId>590085
    </instanceId>
    <processId>ErrorHandlerBPEL
    </processId>
    <processName>ErrorHandlerBPEL
    </processName>
    <processType>BPEL
    </processType>
    <processVersion>1.0
    </processVersion>
    </processInfo>
    <systemAttributes/>
    <systemMessageAttributes/>
    <titleResourceKey/>
    <callback/>
    <identificationKey/>
    </task>
    </initiateTask>
    </part>
    </initiateTaskInput>
    Thanks,
    -Vidya

  • Getting today's date

    I'm too lazy to look this up right now, but what's the code to get today's date? (at least I'm honest :D)

    I'm too lazy to look this up right now, but what's the
    code to get today's date? (at least I'm honest :D)It probably would have taken you less time to look it up in the API, then to post here. :)

  • How to use GregorianCalendar to get today's date?

    I am using the following code to get today's date? I'm curious whether there is a direct way for GregorianCalendar to get today's date?
    Thanks,
    java.util.Date today = new java.util.Date();
    Calendar cal_today = new GregorianCalendar();
    cal_today.setTime(today);
    System.out.println(" month = " + cal_today.get(Calendar.MONTH));
    System.out.println(" day = " + cal_today.get(Calendar.DAY_OF_MONTH));
    System.out.println(" year = " + cal_today.get(Calendar.YEAR));

    If you mean construct it with todays date and time, sure. Just call the contructor with no arguments. According to the API...Constructs a default GregorianCalendar using the current time in the default time zone with the default locale.

  • Something about getting the current Date!

    I am using this code to get the current DATE ...
    time=time + new Date().toString();
    the out put i get looks like.......
    Wed july 18 18:37:37 EDT 2001
    But i want to include the time in it ,meaning i want the out to look like.......
    Wed, July 18,2001
    i have no clue what to do next in order to get the desired out put.
    could some body please help me!

    java.text.SimpleDateFormat and others are made for you :) enjoy .....

  • I have been exporting lightroom webgaleries to my iweb site without any problem.  Suddenly I get the error message "finder can't complete the operation because some data can't be read or written" - error code -36 - thoughts?

    i have been exporting lightroom web galleries to my iweb site without any problem.  Suddenly I get the error message "finder can't complete the operation because some data can't be read or written" - error code -36 - and the move to the sites folder on my idisk fails..... thoughts?

    Try this community: MobileMe on my Mac: MobileMe: Apple Support Communities.
    And you can continue to use iWeb for some time to come. The following will explain:
    It's now confirmed that iWeb and iDVD have been discontinued by Apple. This is evidenced by the fact that new Macs are shipping with iLife 11 installed but without iWeb and iDVD.
    On June 30, 2012 MobileMe will be shutdown. HOWEVER, iWeb will still continue to work but without the following:
    Features No Longer Available Once MobileMe is Discontinued:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Hit counter
    ◼ MobileMe Gallery
    All of these features can be replaced with 3rd party options.
    I found that if I published my site to a folder on my hard drive and then uploaded with a 3rd party FTP client subscriptions to slideshows and the RSS feed were broken.  If I published directly from iWeb to the FPT server those two features continued to work correctly.
    There's another problem and that's with iWeb's popup slideshows.  Once the MMe servers are no longer online the popup slideshow buttons will not display their images.
    Click to view full size
    However, Roddy McKay and I have figured out a way to modify existing sites with those slideshows and iWeb itself so that those images will display as expected once MobileMe servers are gone.  How to is described in this tutorial: #26 - How to Modify iWeb So Popup Slideshows Will Work After MobileMe is Discontinued.
    In addition the iLife suite of applications offered on disc is now a discontinued product and the remaining supported iApps will only be available thru the App Store from now on.
    HOWEVER, the iLife 11 boxed version that is still currently available at the online Apple Store (Store button at the top of the page) and those copies still on the shelves of retailers will include iWeb and iDVD.

  • Downloading problem::getting only partial data from the net, why ??

    hi
    i am trying to download a file using the code
    InputStream getStream(){
    try {
    URL url = new URL("http://www.etc..");
    URLConncection urlconn= url.openConnection();
    InputStream in =urlconn.getInputStream();
    return in;
    }catch(MalformedURLException ){...}
    catch(IOException ioe){...}
    the problem is it is not getting the complete data.
    i tried to download a file which is 46k but it got only 1.3k
    can any one tell what to add or modify the above code so that i will be getting the complete data
    thanks in advance
    have a nice time
    krishna
    email id:[email protected]

    Try to set the request property and usecaches like
    this:
    con.setUseCaches(false);
    con.setRequestProperty ("Content-Type",
    "application/octet-stream")
    not working, i tried to download 46663 bytes got only 1369 bytes,please suggest me another solution.
    thanks in advance
    krishna

  • Forgot entry pass codes to get onto apple devices how can I fix without loosing any data ?

    Forgot entry pass codes to get onto apple devices how can I fix this without loosing any data ?

    I backed my all my devices on the same computer: iPod touch, iPad and 4 iPhones (different generations).
    iTunes on computer has no problem separating them for backups.
    Try below:
    Forgot or Wrong Passcode
    http://support.apple.com/kb/HT1212
    Forgot Passcode use recovery mode to restore
    http://support.apple.com/kb/HT1808

  • How do i get backed up purchases from an old iphone to a new one, but the only problem is an ipod is backed up into the new phone and i cant get my iphone data on to the new phone because its under i pod

    how do i get backed up purchases from an old iphone to a new one, but the only problem is an ipod is backed up into the new phone and i cant get my iphone data on to the new phone because its under i pod?

    Thanks very much!
    Although I had to add everything again to the playlist, at least I can just copy it over in future!

  • I have a MacBook Pro and OS10.6 and am trying to log into a site that requires me to enter a code from a picture ... problem is all I get on the screen is a white '?' in a blue box. What do I need to display the picture?

    I have a MacBook Pro and OS10.6 and am trying to log into a site that requires me to enter a code from a picture ... problem is all I get on the screen is a white '?' in a blue box. What do I need to display the picture?

    Reload the page. If it doesn't load, choose Activity from Safari's Window menu, find that picture in the list, and see what it says to the right; this may reveal what the problem is.
    (91827)

  • Problem to get whole payload?

    Hi Guys,
    I need to call JDBC adapter so that I need to send the complete source XML payload as a string in just one element and not mapping each element with input variables of the store procedure.
    So i developed the java mapping like this
    import java.io.*;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import org.xml.sax.SAXException;
    import org.xml.sax.helpers.DefaultHandler;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    public class Create_JDBC_Structure
         extends DefaultHandler
         implements StreamTransformation {
              public void setParameter(Map map) {
         public void execute(InputStream iStream, OutputStream oStream)
              throws StreamTransformationException {
              // TODO Auto-generated method stub
              this.out = oStream;
              try {
                   DefaultHandler handler = this;
                   SAXParserFactory factory =
    SAXParserFactory.newInstance();
                   SAXParser saxParser = factory.newSAXParser();
                   saxParser.parse(iStream, handler);
              } catch (Exception e) {
                   e.printStackTrace();
         public void startDocument() throws SAXException {
              // TODO Auto-generated method stub
              strbfr_FirstFields.append("<Statement>");
              strbfr_FirstFields.append("<ref_bod_put action=\"\">");
              strbfr_FirstFields.append("<table></table>");
              strbfr_FirstFields.append("<param1 type=\"\"></param1>");
              strbfr_FirstFields.append("<param2 type=\"\"></param2>");
              strbfr_FirstFields.append("<param3 type=\"\"></param3>");
              strbfr_FirstFields.append("<param4 type=\"\"></param4>");
              strbfr_FirstFields.append("<param5 type=\"\"></param5>");
              strbfr_FirstFields.append("<param6 type=\"\"></param6>");
              strbfr_FirstFields.append("<param7 type=\"\"></param7>");
              strbfr_FirstFields.append("<param8>");
         public void startElement(
              String namespaceURI,
              String localName,
              String qName,
              Attributes atts)
              throws SAXException {
                   ifNewRec = true;
              if (ifNewRec) {
                   if (!(qName.equals("Records"))) {
                        strbfr_LastField.append("&lt;");
                        strbfr_LastField.append(qName);
                        if (qName.equals("SITELEVEL")) {
                             strbfr_LastField.append(" " +
    atts.getQName(0) + "=");
    strbfr_LastField.append(atts.getValue(0));
                        if (qName.equals("DATETIME")) {
                             strbfr_LastField.append(" " +
    atts.getQName(0) + "=");
    strbfr_LastField.append(atts.getValue(0));
                        if (qName.equals("AMOUNT")) {
                             strbfr_LastField.append(" " +
    atts.getQName(0) + "=");
    strbfr_LastField.append(atts.getValue(0));
                        if (qName.equals("DATE_TIME")) {
                             strbfr_LastField.append(" " +
    atts.getQName(0) + "=");
    strbfr_LastField.append(atts.getValue(0));
                        if (qName.equals("AMOUNT1")) {
                             strbfr_LastField.append(" " +
    atts.getQName(0) + "=");
    strbfr_LastField.append(atts.getValue(0));
                        if (qName.equals("OPERAMT")) {
                             strbfr_LastField.append(" " +
    atts.getQName(0) + "=");
    strbfr_LastField.append(atts.getValue(0));
                        if (qName.equals("QUANTITY")) {
                             strbfr_LastField.append(" " +
    atts.getQName(0) + "=");
    strbfr_LastField.append(atts.getValue(0));
                        if (qName.equals("CCA_GLACCT")) {
                             strbfr_LastField.append(" " +
    atts.getQName(0) + "=");
    strbfr_LastField.append(atts.getValue(0));
                        strbfr_LastField.append("&gt;");
                   } else {
    strbfr_LastField.append("&lt;!DOCTYPE SYNC_ITEM_005&gt;");
    strbfr_LastField.append("&lt;");
    strbfr_LastField.append("SYNC_ITEM_005");
    strbfr_LastField.append("&gt;");
         public void characters(char[] arg0, int arg1, int arg2)
              throws SAXException {
              if (ifNewRec) {
                   strbfr_LastField.append(data);
         public void endElement(String namespaceURI, String localName, String
    qName)
              throws SAXException {
              //          echoText();
              if (ifNewRec) {
                   if (!(qName.equals("Records"))) {
                        strbfr_LastField.append("&lt;/");
                        strbfr_LastField.append(qName);
                        strbfr_LastField.append("&gt;");
                   } else {
    strbfr_LastField.append("&lt;/");
    strbfr_LastField.append("SYNC_ITEM_005");
    strbfr_LastField.append("&gt;");
              if (qName.equals("Records")) {
                   strbfr_LastField.append("</param8>");
                   strbfr_LastField.append("</ref_bod_put>");
                   strbfr_LastField.append("</Statement>");
                   ifNewRec = false;
         public void endDocument() throws SAXException {
              // TODO Auto-generated method stub
                        outputxml.append("<?xml version=\"1.0\"
    encoding=\"UTF-8\"?>");
              outputxml.append(
                   "<ns0:JDBC_MT
    xmlns:ns0=\"http://ccamatil.com/amatil_c_ccaml/ptp/\">");
              outputxml.append(strbfr_LastField.toString());
              outputxml.append("</ns0:JDBC_MT>");
              print(outputxml.toString());
         private void print(String str) {
              try {
                   out.write(str.getBytes());
                   out.flush();
                   out.close();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (NullPointerException e) {
                   e.printStackTrace();
         String data = null;
         private OutputStream out;
         private StringBuffer outputxml = new StringBuffer();
         private boolean ifNewRec = false;
         private int int_No_Rec;
         private StringBuffer strbfr_LastField = new StringBuffer();
         private StringBuffer strbfr_FirstFields = new StringBuffer();
         private Hashtable ht = new Hashtable();
    so what are the changes i have to make to get whole payload as a sting
    Thans In advance.
    Rishi

    public void execute(InputStream in, OutputStream out) {
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder parser;
              try {
                   parser = factory.newDocumentBuilder();
                   // Erstellen eines DOM-Dokuments durch parsen des InputStream
                   Document domDOC = parser.parse(in);
                   // Ausgabe des Dokuments
                   System.out.println(domDOC.getDocumentElement());
              } catch (ParserConfigurationException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (SAXException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         }// public void execute(InputStream in, OutputStream out) {
    Regards Mario
    Edited by: Mario Müller on Jul 31, 2008 7:13 AM
    Edited by: Mario Müller on Jul 31, 2008 7:13 AM

  • Problem while trying to get meta data from entity in CRM 2011 using java

    Hi,
    I have been trying to get the meta data from entity. Below is the code what i have tried.                                 
    EntityFilters entfilter = new EntityFilters();
    EntityFilters_type0 eftypes [] = new EntityFilters_type0[]{EntityFilters_type0.Attributes};
    entfilter.setEntityFilters_type0(eftypes);
    EntityFiltersE entityFiltersE = new EntityFiltersE();
    entityFiltersE.setEntityFilters(entfilter);
    Boolean RAIP = new Boolean(true);
    OrganizationServiceStub.ParameterCollection parameterCollection = new OrganizationServiceStub.ParameterCollection();
    OrganizationServiceStub.KeyValuePairOfstringanyType entityFilters = new OrganizationServiceStub.KeyValuePairOfstringanyType();
    entityFilters.setKey("EntityFilters");
    entityFilters.setValue(entityFiltersE);
    OrganizationServiceStub.KeyValuePairOfstringanyType retAsIfPublished = new OrganizationServiceStub.KeyValuePairOfstringanyType();
    retAsIfPublished.setKey("RetrieveAsIfPublished");
    retAsIfPublished.setValue(RAIP);
    parameterCollection.addKeyValuePairOfstringanyType(entityFilters);
    parameterCollection.addKeyValuePairOfstringanyType(retAsIfPublished);
    OrganizationServiceStub.OrganizationRequest request=new OrganizationServiceStub.OrganizationRequest();
                request.setRequestName("RetrieveAllEntities");
                request.setParameters(parameterCollection);
                OrganizationServiceStub.Execute org_execute = new OrganizationServiceStub.Execute();
                org_execute.setRequest(request);
    ExecuteResponse resp  =  serviceStub.execute(org_execute);
    And getting the below error.
    [ERROR] The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter
    http://schemas.microsoft.com/xrm/2011/Contracts/Services:request. The InnerException
    message was 'Element value from namespace http://schemas.datacontract.org/2004/07/System.Collections.Generic cannot have child contents to be deserialized as an object. Please use XmlNode[] to deserialize this pattern of XML.'.  Please see
    InnerException for more details.
    Please help me if any one have an idea on this error.
    Thanks in advance.

    Hi
    Did you get this resolved ?

  • TS1559 i have problem with my iphone as it is disable and need to get all my data as the phone needs at least 40 years to enable accessing it

    I have problem with my iphone as it is disable and need to get all my data as the phone needs at least 40 years to enable accessing it

    If you have never connected the phone to iTunes and backed it up or used iCloud to backup your data, it is lost at this point.
    The only way to get back into the phone is to restore it.
    ~Lyssa

  • Keep trying to send a message and it wont go through i keep getting a message that says network problems cause code :3 what does that mean

    keep trying to send a message and it wont go through I keep getting a message pop up that says network problems cause code :3 what does this mean

    SMS Error: Cause Code 3, Error Code 2

  • Getting payload data in alert category

    Is there anyway to fetch XI payload data(IDOC number) in ALRTCATDEF along with other container variable?
    We have been sending email alerts without BPM(Alert rule and alert cat).
    Please suggest.

    Hi Rajesh,
    Check this blog:/people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    Sachin

Maybe you are looking for