Logging output would be helpful.  I'm basically trying the code below:

      ADK.initialize(SIFVersion.SIF23,SIFDTD.SDO_ETRANSCRIPTS);
      Student student = new Student();
      AgentConfig config = new AgentConfig();
      config.read("mappings.cfg",false);
      SIFVersion version = config.getVersion();
      Mappings def = config.getMappings().getMappings("Default");
      def.select("Default","",version);
      try {
        def.mapInbound(new
SIFDataObjectXML(EtranscriptsDTD.STUDENTRECORDEXCHANGE,getXML(args[0])),new
StringMapAdaptor(new BeanMap(student)));
      } catch(IllegalArgumentException x) {
        log.warn("Illegal Argument",x);
      }
      student.dump();

Which is supposed to map the data in the XML document to the Student object
through the BeanMap, but I'm not getting any debug output whatsoever, so
I'm a bit lost at this point.
  (*Chris*)
On Thu, Nov 10, 2011 at 4:40 PM, Maurizio Cucchiara
<[email protected]>wrote:

> Could you provide some more detail? Maybe some sample code.
> What kind of debug information are you referring? You mean log, etc?
>
>
>
> Twitter     :http://www.twitter.com/m_cucchiara
> G+          :https://plus.google.com/107903711540963855921
> Linkedin    :http://www.linkedin.com/in/mauriziocucchiara
>
> Maurizio Cucchiara
>
>
>
> On 11 November 2011 01:15, Chris Pratt <[email protected]> wrote:
> > BeanMap
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to