Get the required XML format..

Hi Guru's,
I am trying to post the data to the External URL.
The scenario is asynchronous. I have done with the configuration part and able to successfully ping to the External Server.
The issue is the XML format that i am sending to the external server is :
*xml
=
< ?xml version="1.0" encoding="UTF-8"? >\n< ns1:MT_SEND_DATA_URL xmlns:ns1="http:/XXXX/XXXX/X_X_X" >
< REQUEST >
< INVITE_DETAIL >
< MSG_ID >
< /MSG_ID >
< SERVICE >
< /SERVICE >
< MAIL_LINK >
< /MAIL_LINK >
< OPT_MESSAGE > poiuyt poiuy</OPT_MESSAGE >
< RECV_EMAIL >< /RECV_EMAIL >
< SENDER_EMAIL >com< /SENDER_EMAIL >
< SENDER_NAME > < /SENDER_NAME >
< USER_ID >123456< /USER_ID >
< /INVITE_DETAIL >
< META >
< ACTION >qwerty< /ACTION >
< /META >
< /REQUEST >
< /ns1:MT_SEND_DATA_URL >*
while the required Output format should be :
*<?xml version=\"1.0\" encoding=\"UTF-8\"?>
< request >
< meta >
< action>XXXXe</action >
< /meta >
< invite_details >
< user_id>1105288</user_id >
< senders_name><![CDATA[abc]]></senders_name >
< senders_email><![CDATA[ ]]></senders_email >
< user_id><![CDATA[000000]]></user_id >
< emails><![CDATA[ ]]></emails >
< opt_message><![CDATA[]]></opt_message >
< mail_link><![CDATA[http://www.xyz.com]]></mail_link >
< service><![CDATA[abc]]></service >
< msg_id><![CDATA[def]]></msg_id >
< /invite_details >
< /request >*
Please provide the Solution for this.
Thanks,
regards,
akshay ruia.

Hi,
If you doesn't have the XSD or WSDL file.
Create a Data type structure as
< meta >
< action>XXXXe</action >
< /meta >
< invite_details >
< user_id>1105288</user_id >
< senders_name><![CDATAabc]></senders_name >
< senders_email><![CDATA ]></senders_email >
< user_id><![CDATA000000]></user_id >
< emails><![CDATA ]></emails >
< opt_message><!CDATA[]></opt_message >
< mail_link><![CDATAhttp://www.xyz.com]></mail_link >
< service><![CDATAabc]></service >
< msg_id><![CDATAdef]></msg_id >
< /invite_details >
Create a messge type as request i.e. message type name should be request and delete the namespace in XML Namespace text box
In Messge Mapping you can check the format of the message

Similar Messages

  • Since installing the last iPhoto update sharing a photo via e-mail opens a google e-mail format instead of an Apple Mail format.  How can I get the Apple Mail format to come up when I click on share?

    Since installing the last iPhoto update sharing a photo via e-mail opens a google e-mail format instead of an Apple Mail format.  How can I get the Apple Mail format to come up when I click on share?

    iPhoto preferences - set the email client to Mail
    LN

  • How to get the resulting XML as string

    Hello,
    I think my question is very simple but i'm new in this area.
    What i'm try to do is to parse a XML document with the DOM parser. Then i manipulate the DOM tree. After finishing the process i want to get the resulting XML document as an InputStream to give to another application for storing back into the database.
    Until know i print the resulting XML to System.out or I write it to a file.
    Do you know where i can find more information about this? Sample code??
    Thanks!

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jinyu Wang ([email protected]):
    You can try following code. It is not the simplest way, but it works for me:
    // Print to temp buffer
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    DataOutputStream output = new DataOutputStream(baos);
    Xml_doc.print(output);
    String outtemp=baos.toString();
    System.out.println(outtemp);
    include following line for the lib:
    import java.io.*;<HR></BLOCKQUOTE>
    Many thanks for the reply. It works!

  • How to get the system date format string?

    Hello, everybody!
    I want to create a MaskFormatter with a mask for dates. So, I could suply as the constructor parameter: "##/##/####'. However, what if the year comes first in the current system date format settings, or the month is in the second place or in the first?... So, I can't just suppose that the current locale format for dates is like the one above. So, my question is: is there a way to get the SYSTEM DATE FORMAT STRING in Java? Searching in google I saw that this was already asked in this forum:
    http://forum.java.sun.com/thread.jspa?threadID=301034&messageID=1193794
    but there was no effective answer. Does someone already know how to get this?
    Thank you.
    Marcos

    Hi, not sure, but
    import java.text.*;
    SimpleDateFormat sdf = new SimpleDateFormat();
    System.out.println(sdf.toPattern());
    will output something like dd/MM/yy HH:mm
    hthThank you very much. It worked.

  • Getting the required property of an item in a bean

    Hello all,
    is it possible to get the required property of e.g. a VTextField inside a PJC?
    I am trying to write a bean that iterates through all the components of a form a puts a red border on all fields marked as required in Forms. I cannot find an appropriate getter or ID to use with the getProperty(ID) method.
    Any help is appreciated
    Achim

    There is already a functionality which makrs all required fields:
    Open the file $ORACLE_HOME\forms\java\oracle\forms\registryregistry.dat with a texteditor
    At the end of the file you'll find two entries
    app.ui.requiredFieldVA=false
    #    The background color is specified as an RGB triple.
    app.ui.requiredFieldVABGColor=255,0,0Set the first one to true and the second one to a color of your choice, restart OC4J and check the results, maybe it fits your requirement.

  • I have purchased a G3, because I am an apple fan. I want this a clean installation software provided. Only the link no longer works. Is there a possibility  to get the required software. I Preferably, the Dutch version, but if only the English it's okey

    I have purchased a G3, because I am an apple fan. I want this a clean installation software provided. Only the link no longer works. Is there a possibility  to get the required software. I Preferably, the Dutch version, but if only the English it's okey

    What model G3 is it? An iMac, a PowerMac, a MacBook, or a PowerBook? What is the processor (machine) speed?

  • Query on sorting  XML using XSLT and getting the same XML as output !

    Hi,
    Looking for one information regarding sorting XML using XSLT , with the sorted XML as output. For eg. my XML is :
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="sort1.xsl"?>
    <levelone>
         <child ID="1" sort="5">
              <name>Paul</name>
         </child>
         <child ID="2" sort="1">
              <name>Adam</name>
         </child>
         <child ID="3" sort="2">
              <name>Will</name>
         </child>
    </levelone>
    and XSL :
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/levelone">
         <xsl:copy>
         <xsl:apply-templates>
              <xsl:sort select="@sort"/>
         </xsl:apply-templates>
              </xsl:copy>
         </xsl:template>
         <xsl:template match="child">
              <xsl:copy-of select="."/>
         </xsl:template>
    </xsl:stylesheet>
    This does the sort based on Name. But I want to get the same xml as output with the name sorted. Eg.
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="sort1.xsl"?>
    <levelone>
         <child ID="2" sort="1">
              <name>Adam</name>
         </child>
         <child ID="1" sort="5">
              <name>Paul</name>
         </child>
         <child ID="3" sort="2">
              <name>Will</name>
         </child>
    </levelone>
    Any pointers will be highly appreciated.
    - Thanks

    Don't you want <xsl:sort select="name"/> rather than <xsl:sort select="@sort"/>?

  • Can't open page documents and get The required index.xml file is missing

    I have “hundreds” of pages documents that were created with pre Pages 09 that will not open now that I have upgraded to Pages 09. In every case I get the error “The required index.xml file is missing“.
    I need a way to fix this or it will cost me many dollars since these files constitute legal backup for earlier federal jobs.
    Anyone out there that can help rather than telling me to open (which I can’t) and save in Pages 08 format!

    If a Pages '08 document doesn't open in Pages '09, the problem is not Pages '09, it's that the document is corrupted.
    I will be disconnected for a few days but if you may wait until tuesday 26th,
    on this day, send me a sample file.
    I will try to understand what is wrong with it.
    Click my blue name to get my mail address.
    Yvan KOENIG (from FRANCE mercredi 20 mai 2009 21:33:43)

  • After updates I am getting 'The required index.xml file is missing'

    I updated Pages to 5.5.1 after updating MacOS to Yosemite 10.10.1. Since then, when I click on a file I get the message 'The required index.xml file is missing' I can still open the file by dragging it to the Pages Icon in the Dock but it seems like the files should open. What is going on or what did I do wrong?

    You have two versions of Pages on your computer:
    Pages v5.5.1 - /Applications
    Pages ’09 v4.? - /Applications/iWork '09
    On Yosemite with Pages v5.5.1, its default file save format is a Single File (compressed folder with .pages extension). When you attempt to open this file with Pages '09, you get the dialog, "The required index.xml file is missing." and the document couldn't be opened.
    Pages v5.5.1 also offers a Package file format (folder) obtained via File > Advanced > Change File Type > Package. When Pages ’09 tries to open this document, you get the now familiar dialog, "You need a newer version of Pages to open this document."
    In order to access either of these documents in Pages ’09, you will need to first export to Pages '09 format from Pages v5.5.1.

  • How to fetch the data from databse table and get the required output

    Hi,
    I have made a project that connects CEP to database table but i m getting some problem in fetching the data from database.
    From the following code :
    If the where condition is removed then the application runs fine but i am still not able to fetch the data from the table because it is not showing any output.
    Can anyone please suggest me that how to write WHERE statement correctly and how i will be able to see the output.
    Following is the config.xml for processor:
    ======================================
    <?xml version="1.0" encoding="UTF-8"?>
    <wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application"
         xmlns:jdbc="http://www.oracle.com/ns/ocep/config/jdbc">
         <processor>
              <name>JDBC_Processor</name>
              <rules>
                   <query id="q1"><![CDATA[
                             SELECT STOCK.SYMBOL as symbol, STOCK.EXCHANGE as exchange
                             FROM ExchangeStream [Now] as datastream, STOCK
                             WHERE datastream.SYMBOL = datastream.SYMBOL ]]></query>
              </rules>
         </processor>
         <jms-adapter>
              <name>JMS_IN_Adapter</name>
              <jndi-provider-url>t3://CHDSEZ135400D:7001</jndi-provider-url>
              <destination-jndi-name>jms.TestKanikaQueue</destination-jndi-name>
              <user>weblogic</user>
              <password>welcome1</password>
         </jms-adapter>
    </wlevs:config>
    Following is the assembly file:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi"
         xmlns:wlevs="http://www.bea.com/ns/wlevs/spring" xmlns:jdbc="http://www.oracle.com/ns/ocep/jdbc"
         xmlns:spatial="http://www.oracle.com/ns/ocep/spatial"
         xsi:schemaLocation="
              http://www.springframework.org/schema/beans
              http://www.springframework.org/schema/beans/spring-beans.xsd
              http://www.springframework.org/schema/osgi
              http://www.springframework.org/schema/osgi/spring-osgi.xsd
              http://www.bea.com/ns/wlevs/spring
              http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd
              http://www.oracle.com/ns/ocep/jdbc
              http://www.oracle.com/ns/ocep/jdbc/ocep-jdbc.xsd
              http://www.oracle.com/ns/ocep/spatial
              http://www.oracle.com/ns/ocep/spatial/ocep-spatial.xsd">
         <wlevs:event-type-repository>
              <wlevs:event-type type-name="StockEvent">
                   <wlevs:properties>
                        <wlevs:property name="SYMBOL" type="byte[]" length="16" />
                        <wlevs:property name="EXCHANGE" type="byte[]" length="16" />
                   </wlevs:properties>
              </wlevs:event-type>
              <wlevs:event-type type-name="ExchangeEvent">
                   <wlevs:class>com.bea.wlevs.event.example.JDBC_CEP.ExchangeEvent</wlevs:class>
              </wlevs:event-type>
              <wlevs:event-type type-name="StockExchangeEvent">
                   <wlevs:properties>
                        <wlevs:property name="symbol" type="byte[]" length="16" />
                        <wlevs:property name="price" type="byte[]" length="16" />
                        <wlevs:property name="exchange" type="byte[]" length="16" />
                   </wlevs:properties>
              </wlevs:event-type>
         </wlevs:event-type-repository>
         <bean id="readConverter" class="com.bea.wlevs.adapter.example.JDBC_CEP.Adapter_JDBC" />
         <bean id="outputJDBCBean" class="com.bea.wlevs.bean.example.JDBC_CEP.OutputBean_JDBC">
         </bean>
         <wlevs:adapter id="JMS_IN_Adapter" provider="jms-inbound">
              <wlevs:listener ref="ExchangeStream" />
              <wlevs:instance-property name="converterBean"
                   ref="readConverter" />
         </wlevs:adapter>
         <wlevs:processor id="JDBC_Processor" advertise="true">
              <wlevs:listener ref="OutputChannel" />
              <wlevs:table-source ref="STOCK" />
         </wlevs:processor>
         <wlevs:channel id="ExchangeStream" event-type="ExchangeEvent" advertise="true">
              <wlevs:listener ref="JDBC_Processor" />
         </wlevs:channel>
         <wlevs:channel id="OutputChannel" event-type="StockExchangeEvent"
              advertise="true">
              <wlevs:listener ref="outputJDBCBean" />
         </wlevs:channel>
         <wlevs:table id="STOCK" event-type="StockEvent"
              data-source="StockDs" table-name="STOCK" />
         <wlevs:table id="STOCK_EXCHANGE" event-type="StockExchangeEvent"
              data-source="StockDs" table-name="STOCK_EXCHANGE" />
    </beans>
    ExchangeEvent.java:
    package com.bea.wlevs.event.example.JDBC_CEP;
    public class ExchangeEvent {
         public String SYMBOL;
         public String symbol;
         public String exchange;
         public ExchangeEvent() {
         public String getSYMBOL() {
              return SYMBOL;
         public void setSYMBOL(String sYMBOL) {
              SYMBOL = sYMBOL;
         public String getSymbol() {
              return symbol;
         public void setSymbol(String symbol) {
              this.symbol = symbol;
         public String getExchange() {
              return exchange;
         public void setExchange(String price) {
              this.exchange = price;
    Adapter Class:
    package com.bea.wlevs.adapter.example.JDBC_CEP;
    import com.bea.wlevs.adapter.example.JDBC_CEP.MyLogger;
    import com.bea.wlevs.adapters.jms.api.InboundMessageConverter;
    import java.text.DateFormat;
    import java.util.Date;
    import com.bea.wlevs.adapters.jms.api.MessageConverterException;
    import com.bea.wlevs.event.example.JDBC_CEP.ExchangeEvent;
    import javax.jms.JMSException;
    import javax.jms.Message;
    import javax.jms.TextMessage;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.Random;
         public class Adapter_JDBC implements InboundMessageConverter{
         @SuppressWarnings("unchecked")
         public List convert(Message message) throws MessageConverterException, JMSException {
              Random rand = new Random();
              int unique_id = rand.nextInt();
              DateFormat dateFormat;
              dateFormat = DateFormat.getTimeInstance();
              dateFormat.format(new Date());
              MyLogger.info(unique_id + " CEP Start Time is: " + dateFormat.format(new Date()));
              System.out.println("Message from the Queue is :"+ message);
              TextMessage textMessage = (TextMessage) message;
              String stringMessage = textMessage.getText().toString();
              System.out.println("Message after getting converted into String is :"+ stringMessage);
                   String[] results = stringMessage.split(",\\s*"); // split on commas
                   ExchangeEvent event1 = new ExchangeEvent();
                   event1.setSYMBOL(results[0]);
         List events = new ArrayList(2);
         events.add(event1);
         return events;
    Output Bean Class :
    package com.bea.wlevs.bean.example.JDBC_CEP;
    import com.bea.wlevs.ede.api.StreamSink;
    import com.bea.wlevs.event.example.JDBC_CEP.ExchangeEvent;
    import com.bea.core.datasource.DataSourceService;
    public class OutputBean_JDBC implements StreamSink{
         public void onInsertEvent(Object event) {
         if (event instanceof ExchangeEvent) {
              ExchangeEvent cacheEvent = (ExchangeEvent) event;
         System.out.println("Symbol is: " + cacheEvent.getSymbol());
         System.out.println("Exchange is: " + cacheEvent.getExchange());
         System.out.println(DataSourceService.class.getClass());
    Kindly let me know if you need further info.

    Do you have StockDs configured in your server config.xml?
    I think the query should look more like this:
    SELECT stocks.SYMBOL, stocks.EXCHANGE
    FROM STOCK as stocks, ExchangeStream [Now] as datastream WHERE stocks.SYMBOL = datastream.SYMBOL
    Thanks
    andy

  • How to get the request xml string in Business service.

    Hi
    I have following requirement
    1) XAI inbound service will get a input xml request feed and call the Business Service.
    2) Business service will do some validation and do the insert in the database.
    My BS schema is as below
    <schema pageAction="change">
    <personId mapField="PER_ID"/>
    <personOrBusiness mapField="PER_OR_BUS_FLG"/>
    <name mapField="ENTITY_NAME" mdField="C1_ENTITY_NAME"/>
    <emailAddress mapField="EMAILID"/>
    <city mapField="CITY"/>
    <county mapField="COUNTY"/>
    <postal mapField="POSTAL"/>
    <houseType mapField="HOUSE_TYPE"/>
    <taxVendorGeographicalCode mapField="GEO_CODE"/>
    <isInCityLimit mapField="IN_CITY_LIMIT"/>
    <state mapField="STATE"/>
    <version mapField="VERSION"/>
    <division mapField="CIS_DIVISION"/>
    <accessGroup mapField="ACCESS_GRP_CD"/>
    <address1 mapField="ADDRESS1"/>
    <personCharacteristic type="list" mapList="CI_PER_CHAR">
    <personId mapField="PER_ID"/>
    <characteristicType mapField="CHAR_TYPE_CD"/>
    <characteristicValue mapField="CHAR_VAL"/>
    <effectiveDate mapField="EFFDT"/>
    <adhocCharacteristicValue mapField="ADHOC_CHAR_VAL"/>
    <characteristicValueForeignKey1 mapField="CHAR_VAL_FK1"/>
    <characteristicValueFK2 mapField="CHAR_VAL_FK2"/>
    <characteristicValueFK3 mapField="CHAR_VAL_FK3"/>
    <characteristicValueFk4 mapField="CHAR_VAL_FK4"/>
    <characteristicValueFK5 mapField="CHAR_VAL_FK5"/>
    </personCharacteristic>
    </schema>
    The request XML to BS is as below_
    (support.schema.AbstractSchemaBasedDispatcher) Performing page:change of BusinessService CM_SPRDSHT_BS' (service='CMSPRDHSHTUPLD'), with input request
    <?xml version="1.0" encoding="UTF-8"?>
    <CM_Person>
    <personOrBusiness>P</personOrBusiness>
    <name>Marsh,Corporate</name>
    <emailAddress>[email protected]</emailAddress>
    <city>Tampa</city>
    <country>USA</country>
    <postal>2131</postal>
    <houseType/>
    <taxVendorGeographicalCode/>
    <isInCityLimit/>
    <state>CA</state>
    <version>1</version>
    <division>930</division>
    <accessGroup>***</accessGroup>
    <address1>Address of Khan</address1>
    </CM_Person>
    I can access the values of each xml node in BS with the help of data item.
    I wanted to know how can I get the above request xml string in my Business Service in Java.

    {color:#0000ff}http://java.sun.com/javase/6/docs/api/java/lang/Integer.html#parseInt(java.lang.String)
    http://java.sun.com/javase/6/docs/api/java/lang/Integer.html#valueOf(java.lang.String){color}

  • How to get well structured XML format in application server ?

    Hi Experts,
                    I have developed program to download XML format in application server. The below format which i am getting in
    application server :
    <?xml version="1.0" encoding="utf-16" ?> - <asx:abap xmlns:asx="http://www.sap.com/abapxml"  version="1.0">asx:values>- <TAB>- <item>  <EBELN>4151503309</EBELN>   <BUKRS>1000</BUKRS>
      <VENDOR>T-K515A09</VENDOR>   <EKORG>1000</EKORG>  <EKGRP>001</EKGRP>
    But i want the format like  below one which i am getting when i am downloading presentation server . I want it to achieve
    in application server.
    <?xml version="1.0" encoding="utf-16" ?>
    - <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
    - <asx:values>
    - <TAB>
    - <item>
      <EBELN>4151503309</EBELN>
      <BUKRS>1000</BUKRS>
      <VENDOR>T-K515A09</VENDOR>
      <EKORG>1000</EKORG>
      <EKGRP>001</EKGRP>
    Pls anyone help me out regarding this.
    Thanks
    Ramesh Manoharan

    Hi
       I am new to transformation ( strans ) .Pls send me if you have any document. Is it possible to get below format in application
    server using transaction STRANS ?
    <?xml version="1.0" encoding="utf-16" ?>
    - <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
    - <asx:values>
    - <TAB>
    - <item>
    <EBELN>4151503309</EBELN>
    <BUKRS>1000</BUKRS>
    <VENDOR>T-K515A09</VENDOR>
    <EKORG>1000</EKORG>
    <EKGRP>001</EKGRP>
    Thanks
    Ramesh Manoharan

  • Get the Required Field Element in orchetsration

    My input instance is as follows:
    <ns0:Students xmlns:ns0="http://CallTemplate_Increment.StudentSchema">
      <StudentTransactions>
        <ID>100</ID>
    <RowIndicator>H</RowIndicator>
        <FName>Prakash</FName>
        <LName>Sajwan</LName>
        <ID_Detail/>
        <Cost/>
        <GL_String/>
      </StudentTransactions>
       <StudentTransactions>
        <ID/>
    <RowIndicator>D</RowIndicator>
        <FName></FName>
        <LName></LName>
        <ID_Detail>100</ID_Detail>
        <Cost>200</Cost>
        <GL_String>300.890.830.777</GL_String>
      </StudentTransactions>
      <StudentTransactions>
        <ID/>
    <RowIndicator>D</RowIndicator>
        <FName>D</FName>
        <LName></LName>
        <ID_Detail>100</ID_Detail>
        <Cost>200</Cost>
        <GL_String></GL_String>
      </StudentTransactions>
      <StudentTransactions>
        <ID/>
    <RowIndicator>D</RowIndicator>
        <FName>D</FName>
        <LName></LName>
        <ID_Detail>100</ID_Detail>
        <Cost>100</Cost>
        <GL_String>300.890.830.777</GL_String>
      </StudentTransactions>
        <StudentTransactions>
        <ID>200</ID>
    <RowIndicator>H</RowIndicator>
        <FName>Ramesh</FName>
        <LName>Rawat</LName>
        <ID_Detail/>
        <Cost/>
        <GL_String/>
      </StudentTransactions>
       <StudentTransactions>
        <ID/>
    <RowIndicator>D</RowIndicator>
        <FName>D</FName>
        <LName/>
        <ID_Detail>200</ID_Detail>
        <Cost>700</Cost>
        <GL_String>500.890.830.777</GL_String>
      </StudentTransactions>
      <StudentTransactions>
        <ID/>
    <RowIndicator>D</RowIndicator>
        <FName>D</FName>
        <LName/>
        <ID_Detail>200</ID_Detail>
        <Cost>900</Cost>
        <GL_String>500.890.830.777</GL_String>
      </StudentTransactions>
    </ns0:Students>
    If RowIndicator is H then required field is RowIndicator,FName,ID.
    IF RowIndicator is D then required field is RowIndicator, ID_Detail,Cost,GL_String.
    Now if any required field  is empty then store the name of these Elements in a file  and send this file in the attachment in mail.And how can I uniquely identify that these information is for particular student.
    H stands for header and D stands for details.
    One Record (which RowIndicator is  H) belongs to other record (which RowIndicator is D) only when ID of 
    record (which RowIndicator is  H) equals to ID_Details of record(which RowIndicator is D).
    Any Help would be appreciated.I want to do it orchestration after getting the message by calling a c# function. I have written the attachment function for sending mail.I just want to put those information in a file.
    Prakash

    In Orchestration, you can call a helper method as the following, where you can apply the validation log and either constructs a XML-Message with error details or a simple error string message with error details appended which you can pass to your email program
    and send email.
    public static string ContractValidationMsg(XmlDocument xmlInput)
    string sErrorMessage = String.Empty;
    //Get the HeaderID
    XmlNodeList headerNodes = xmlInput.SelectNodes("/*[local-name()='Students' and namespace-uri()='http://CallTemplate_Increment.StudentSchema']/*[local-name()='StudentTransactions' and namespace-uri()=''][RowIndicator='H']");
    //Loop thur all the filtered header node
    foreach (XmlNode headerNode in headerNodes)
    string sHeaderID = headerNode.SelectSingleNode("/*[local-name()='Students' and namespace-uri()='http://CallTemplate_Increment.StudentSchema']/*[local-name()='StudentTransactions' and namespace-uri()='']/*[local-name()='ID' and namespace-uri()='']").InnerText;
    //Get the DetailID for the filtered ErrorID
    XmlNodeList detailNodes = xmlInput.SelectNodes("/*[local-name()='Students' and namespace-uri()='http://CallTemplate_Increment.StudentSchema']/*[local-name()='StudentTransactions' and namespace-uri()=''][RowIndicator='D'][ID_Detail='" + sHeaderID + "']");
    //Loop thru the DetailID
    foreach (XmlNode detailNode in detailNodes)
    string sCost = detailNode.SelectSingleNode("Cost").InnerText;
    //Check Cost in detail is empty, if so then construct the error message
    if (sCost == String.Empty)
    sErrorMessage +=sErrorMessage + " For HeaderID:" + sHeaderID + " , In its Detail node, value for Cost element is missing /n" ;
    string sGL_String = detailNode.SelectSingleNode("GL_String").InnerText;
    //Check GL_String in detail is empty, if so then append the error message
    if (sGL_String == String.Empty)
    sErrorMessage += sErrorMessage + " For HeaderID:" + sHeaderID + " , In its Detail node, value for GL_String element is missing /n";
    return sErrorMessage;
    This is just to give you an idea and you and fine-tune it to fit your requirement. The above code is a working code.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • How to get the document file format?

    Hi all,
    Im using Illustrator CS3 SDK to find the file format. In pluginhandler.cpp,the following code showing as inactive preprocessor block(disabled)
    #ifdef ADDS_FILE_FORMAT
        if ( sSPBasic->IsEqual( caller, kCallerAIFileFormat ) ) {
            if ( sSPBasic->IsEqual( selector, kSelectorAIGetFileFormatParameters ) )
                error = goGetFormatParms( ( AIFileFormatMessage* )message );
            else if ( sSPBasic->IsEqual( selector, kSelectorAIGoFileFormat ) )
                error = goFileFormat( ( AIFileFormatMessage* )message );
            else if ( sSPBasic->IsEqual( selector, kSelectorAICheckFileFormat ) )
                error = goCheckFormat( ( AIFileFormatMessage* )message );
        else
    #endif
    So the above code is not executing so im not getting the file format. Can anyone guide me regarding this... Will this cause any problem in getting file format?? Im blank regarding this. Anyone pls guide me

    The code you posted only coms into play if you have added a file format of your own for saving, exporting or opening. It shouldn't matter to getting the file format.
    If Illustrator is giving you the right results in CS3 but not in AI10, its very possible AI10's version was simply busted. Or it was subject to a limitation CS3 is not. I know at one point certain document attributes were not available until the document had been saved; could that be the problem here?

  • Is there a way to get the actual XML string when using the JAXP SAX Parser?

    Hi All,
    I am using a JAXP SAX xml parser and am looking for a way to get the actual line of xml that is being parsed from within a content handler.
    Here's my scenario. Consider the following example xml document.
    <formCollection>
       <form name="myForm">
          <text/>
          <selection/>
       </form>
       <form name="anotherForm">
          <text/>
       </form>
    </formCollection>My hope is to validate the entire document and then insert an xml string containing each "form" element (and its sub-elements) into a map for later use. My thought was to create a String as each "form" element is being parsed (begining with the form's startElement event and concatenating until the form's endElement event is reached) and then inserting this string into the map. Is there a way to get the actual line of xml that is being parsed, rather than just the element name and attribute values?

    DrClap wrote:
    YouRang wrote:
    2. The first handler would validate the entire XML document, extract the "type" attribute from each <form> element, and place each <form> element and its sub-elements into the map of Strings, using the "type" attribute as the key. The second handler would take a <form> element and parse it into a Form object for the display. This option was the impetus for my question because it relies on the first handler being able to access the entire <form> element XML String and write it to a map.I don't see why you need the raw data from the XML document here. You should already be abstracting your data into Java classes in the first handler, instead of making the second handler do the parsing all over again.Correct, I am not referring to XForms. In this case, it happens that I am using the XML to generate an SWT ScrolledForm object and, thus, the XML element name happens to be named "form." However, the concept/design problem could apply to any type of object and the XML element could be appropriately renamed.
    My experience with XSLT is limited and I haven't done anything with it for several years. With that said, it seems that it is primarily used for generating web content, which wouldn't apply in this case because this is for a client-server application. I could be off base on this one -- if XSLT applies to much broader translations and would be more appropriate for generating Java objects than my current methodology, I could certainly look into it further.
    I apologize that option two didn't make more sense; it is difficult to explain. Yes, optimally the data should be abstracted into Java classes in the first handler. This is really an elaboration that I failed to specify when explaining option one. The problem is that the user can choose to create any number of "forms" of any type. For instance, let's say that from the File -> New menu there are options for seven different types of forms and each form is used to send completely different data. The user can select form1, select form1 again, select form4, and select form7 (or any other combination) and bring up tabs that display the different forms. The user can then enter data and submit each form separately. When the user selects File -> New -> FormX, a SWT ScrolledForm object that corresponds with FormX must be given to the display. Because SWT ScrolledForm objects do not allow a deep copy, I cannot simply read the XML <form> elements at initialization, parse them into ScrolledForm objects, and pass deep copies of the ScrolledForm objects to the display each time the user clicks File -> New -> FormX. The only simple way I see of getting a new copy of a ScrolledForm object is to reparse the appropriate XML <form> element in order to create one each time the user selects File -> New -> FormX. As such, one handler would need to read the entire XML document and parse the <form> elements into a map (or some other data structure) and another handler would need to parse individual <form> elements into SWT ScrolledForm objects. The first handler would be called at initialization and the second handler would be called each time a user clicked on File -> New -> FormX. Once again, this isn't exactly my favorite implementation... but seems the simplest given that there is no way to do a deep copy of an SWT ScrolledForm object. Hopefully that makes a little more sense. No worries if it doesn't -- I just figured I'd throw this out there and see if anyone had a better idea.

Maybe you are looking for

  • Can no longer send mail from other apps

    Problem: If I go into any app (other than Mail) and try to send a message (via email) and I either get nothing or some apps will say that "Mail needs to be configured in order to do this."  After doing a restore on my iPod touch (4th Gen., running th

  • How to write Inline queries in Oracle 10g

    Hi all, The following Procedure is written in SQL Server 2005 . It uses Inline queries and executes it in the end . I want to write the same stored procedure in Oracle 10g. Could you guys please help me in doing the same . CREATE PROCEDURE [dbo].[pro

  • Bank chains /  Intermediary banks

    All, I have setup intermediary bank and tested to see if it's working.  I'm expecting see DME file generated for Intermediary bank and update the REGUH table when I do the payments.  But, neither of them seems to be working.  The DME is genereted for

  • Passing Paramters to sub-report

    I need some help with parameters between reports.  I have a master report and a sub-report which is linked to a stored procedure.  The stored procedure used in the sub-report has input parameters defined. I have a master report which has a two level

  • Picking a value dynamically in OLT

    Hi, Following is the load test scenario for which I want to pick a dynamic value:- A user login to an application, do a search and a list gets displayed. following is the list example for this:- ID Name 123 test 456 test1 789 test2 012 test3 "ID" is