Tuesday, January 7, 2014

Logging apache cxf Soap request/response pay load.


Hi,

   In order to log SOAP request and response payload of apache cxf we need to follow below steps.
 
   1. create a  folder structure below under src or classes package
        --WEB-INF
                ---cxf
                 
   2. create a org.apache.cxf file with extension .Logger under cxf folder.
         like org.apache.cxf.Logger. Add a code snippet org.apache.cxf.common.logging.Log4jLogger
        under Logger file.
 
   3. Add below statement in your  log4j properties file.
          log4j.logger.org.apache.cxf=info

  After completing the above steps now the request and response payload will be write into log file.


      

Wednesday, February 13, 2013

Soap Web Service – Introduction




Refer below post for webservices understanding with SOAP and RESTFUL webservices.
Follow this link  SOAP/RESTFUL WEBSERVICES


        

Monday, January 21, 2013

Create Excel Chart and Embedd in PPT/PPTX

 - CREATE EXCEL CHART AND EMBED IN POWERPOINT SLIDE.

Hi,

   You can create chart dynamically in Excel work book and embed in PPTX from excel workbook.
   Using Aspose cells Library for JAVA  above requirement will be acheived.
   For reference you can refer to url - >  Aspose.Cells for JAVA eg

regards,
Chandra Shekar.K

Friday, January 18, 2013

Five considerations for Transitioning from Flex to HTML5

Hi,

  If any body is who are working on AdobeFlex and planning or moved to HTMl5,jquery technology.
  We need to consider few things in mind :
  1) Adobe Flex - This technology has good API, good frameworks like pureMVC,Cairngorm and RobotiLEgs etc;.

 2) HTML5,Jquery - Html is world wide web standard mark up language and Jquery framework is javascript one.If the web application development is happening with HTML, Jquery(Js) we need to follow some standards in client side to seggregate code and to make application performance good.

Below is the url where you can find some top considerations while you start development of web application using HTML/Jquery technologies, which is specially useful for the developers who moved from Adobe Flex to HTML techonology. Top Considerations

Regards,
Chandra Shekar.K
Working on AdobeFlex,HTML/Jquery and Java.
Associate Consultant -
Polaris Financial Technology.

Thursday, January 17, 2013

Creating Excel Chart Using JAVA



Hi,

  If any one has requirement of creating tabledata, reports in Excel Microsoft .
  Read/write operations with PowerPoint Microsoft.
  You can go with a APACHE POI opensource Java library.
  As it has some limitations with charts, currently we can create dynamic charts in excel by template approach method..for reference you can refer to the url  ExcelChart creation using POI

After googling i found few below chart libraries .



  • the JCCKit project (LGPL);
  • the QN Plot project (BSD);
  • the OpenChart2 project (LGPL);
  • the PtPlot project (UC Berkeley copyright);
  • the JRobin project (LGPL);
  • the Java Chart Construction Kit (LGPL, works with JDK 1.1.8);
  • the JOpenChart project (LGPL);
  • the jCharts project (BSD-style);
  • the JChart2D project (LGPL);
  • the Chart2D project (LGPL);
  • the ThunderGraph project (LGPL);
  • the E-Gantt project (Q Public License);
  • the MagPlot project (GPL) previously at https://magplot.dev.java.net/;
  • the XChart project (Apache 2.0);
  • Wednesday, June 20, 2012

    Creating JAXB classes through ANT Build script

    It's just a matter of two steps.....
    1) first need to create taskdefination of xjc class of sun.
    2) Then need to generate the source code from schema  by creating a task in ant file.
         After generating source code need to do compile task in ant.

    Finally JAXB classes are ready.....


    Step one:

    creating a taskdef of xjc



    Step Two:


    Thursday, May 3, 2012

    Parsing the string by using delimeter in java


    import java.util.HashMap;
    import java.util.Map;


    public class StringParsingDemo {

    /**
    * @param args
    */
    public static void main(String[] args) {
    // TODO Auto-generated method stub

    String url = "http://localhost:8080/PrismWeb/REPORT/REPORTS_AggSectorRpt/ACCOUNT/$$BENCHMARK_CD$$/DATE/$$DATE$$/XML/TREE";
            String delims = "[/]+";

    String[] tokens = url.split(delims);

       Map mapecm = new HashMap();
    for(int i=0; i
    String value = tokens[i];
    String key = null;
    if(value.contains("$") && i > 0 ){
    key = tokens[i-1];
    mapecm.put(key, value);
    }
    }
     System.out.println("Mapis " + mapecm);

    }

    }

    Tuesday, April 10, 2012

    HTML5 vs FLEX

    HTML5 is a very hot topic now a days ...those who are working on flex html5 word is confusing because rumors are coming that flex is going to stop ...and html5 will rule the world in front end development..

    on whole post u r ideas on html5 and flex futre

    Friday, August 20, 2010

    Embedding assets

    [Embed( source="/assets/images/box.jpg", mimeType="application/octet-stream" )]
    private var jpgBytes:Class;

    Creating popup in flex using popupmanager

    var printComponent:PagesPreview = PagesPreview(PopUpManager.createPopUp(this,PagesPreview,false));
    printComponent.width = 0;
    printComponent.height = 0;
    PopUpManager.centerPopUp(printComponent);

    Thursday, July 22, 2010

    Setting Font Family in css static

    @font-face
    {
    src:url("CSSStyles/Fonts/arialbi.ttf");
    fontFamily: Arial;
    fontWeight: bold;
    fontStyle: italic;
    text-decoration: none,underline;
    advancedAntiAliasing: true;
    }
    @font-face
    {
    src:url("CSSStyles/Fonts/arialbd.ttf");
    fontFamily: Arial;
    fontWeight: bold;
    fontStyle: normal;
    text-decoration: none,underline;
    advancedAntiAliasing: true;
    }
    @font-face
    {
    src:url("CSSStyles/Fonts/ariali.ttf");
    fontFamily: Arial;
    fontWeight: normal;
    fontStyle: italic;
    text-decoration: none,underline;
    advancedAntiAliasing: true;
    }
    @font-face
    {
    src:url("CSSStyles/Fonts/arial.ttf");
    fontFamily: Arial;
    fontWeight: normal;
    fontStyle: normal;
    text-decoration: none,underline;
    advancedAntiAliasing: true;
    }
    .myPlainStyle1
    {
    fontSize: 12;
    fontWeight: bold;
    fontStyle: italic;
    text-decoration: none,underline;
    fontFamily: Arial;
    }

    Thursday, June 17, 2010

    Setting Text in Text area with styles without effect

    var tf:TextFormat = new TextFormat();
    var tfield:TextField = new TextField;
    tfield= richText.textArea.mx_internal::getTextField();
    tf = tfield.getTextFormat();
    tf.letterSpacing = letterSpace;
    richText.textArea.mx_internal::getTextField().setTextFormat(tf);