Mapping of classes N to 1

Hello,
I am still new to QVTo and learning.
I am trying to transform a model SRC to DST.
Description of the mapping:
The attributes from SRC:Block are being mapped to the DST:Blocks, DST:Diagram and DST:Props
While trying to map SRC class 'Block' to DST classes Blocks I have tried to constructors and intermediate classes (I have attached the ecore diagrams). However, I am getting errors while doing so. Kindly help.
The code I tried:
-- Declaration with a condition: the instance may differ from the metamodel,
-- but should have exactly one Project object. Location specific reference.
modeltype SRC uses "com.example.src" where
{ self.objectsOfType(Model)->size() = 1 };
-- Strict declaration, using a package namespace URI
modeltype DST "strict" uses "com.example.dst";
transformation SRCTransformation(in Source: SRC, out Target: DST);
main() {
Source.rootObjects()[Model] -> map ModelToSciMod();
constructor Props::Props (id:String,val: String) { Id:=id; Value:=val; }
mapping Model::ModelToSciMod(): SciMod {
Name := self.Name;
Version := "4.4";
-- objects:=self.newEReference ->new(x) Props(x.id, P()) ;
var s := self.newEReference ->map ObjToSys();
mapping Systems::ObjToSys(): Objects {
blocks:=self.blocks -> map BlkToBlk();
links:=self.links -> map LnToLn();
--constructor Props::Props (id:String,val: String) { Id:=id; Value:=val; }
constructor Diagram::Diagram (d:Props) { P:=d }
constructor Graphs::Graphs (att:Sequence(Props)) { }
mapping Block:: BlkToBlk(): Blocks {
Name:=self.Name;
var type:= self.BlockType;
var sid:= self.SID;
var ports:=self.Ports;
var prop1:= new Props("BlockType", type);
var prop2:= new Props("SID", sid);
var prop3:= new Props("Ports", ports);
var di := new Diagram(prop1) ;
dia:=intermediateDia -> map BlkToDia() ; -- ERROR showing here
intermediate class IntermediateBlk2 {
vars: OrderedSet(Block);
intermediate class IntermediateDia {
vars: OrderedSet(Block);
intermediate property IntermediateBlk2::intermediateDia :IntermediateDia ;
intermediate property IntermediateDia::intermediateP :Block ;
mapping IntermediateBlk2:: BlkToDia(): Diagram {
intermediateP
mapping Line:: LnToLn(): Links {
Kindly help.
Also, kindly let me know if there are any tutorials/reference documents explaining the keywords.
Thank you,
Abhishek

Hello Abhishek,
For documentation about QVTo check the WIKI:
https://wiki.eclipse.org/QVTo
Especially the EclipseCon 2009 presentation.
If you want a complete overview off all keywords, check the QVTo specification.
http://www.omg.org/spec/QVT/1.2/PDF/
If you want help with your error, please list the error as well. Also providing minimal examples of your problem in your question instead of listing everything will help in getting answers.
As a start, adding intermediate properties to intermediate classes is strange (and maybe not well supported by the implementation). Add those attributes directly to the intermediate class.

Similar Messages

  • Mapping java classes to XML files

    Hi Friends !!
    Please I need your help.
    Does somebody out there know any framework or API that helps me to map Java classes to XML files.
    Something like:
    public class Test {
        public int x;
        public int y;
        public int sum(){}
    }to something like:
    <?xml version="1.0" encoding="UTF-8"?>
    <class>
    <className>Test</className>
    bla
    bla
    bla
    </class>
    Any tips?
    Thanks in advance
    Cleverson

    JAXB will create classes from an XML schema, SAX is a parser library and JAXP is a library of XML a bunch of XML tools.
    I don't care for JAXB too much. I would skip it and go right to the JAX-RPC spec (WebServices).

  • BIC mapping names / classes

    Anyone out there using Seeburger BIC converter...Do you know where the mapping names / classes are stored in XI. We think we deployed the mapping libraries but not sure where this is stored for reference. Any help in this matter is greatly appreciated.
    We have an oss message sitting out there for the last 3 days.
    We just need to know the mapping name to use to go from ANSI 856 to 856 XSD (seeburger definition).
    Thank you,
    Pam

    Hi!
    The mapping name from ANSI to XML (1:1 mapping) should be:
    "See_E2X_ANSIX12_856V4030" where "V4030" is the version of the message.
    Chris

  • Horizontal mapping base class query

    Greetings,
    I have a class hierarchy which looks like the following:
    abstract class A {
    int num;
    class B extends A
    class C extends A
    class D extends A
    This hierarchy is horizontally mapped. Say I want to run the following query. Give me the 10 objects of type A (either B,C or D practically) with the highest num. I would run the following query:
    Query query = pm.newQuery("select from A.class range 0, 10");
    query.setOrdering("num descending");
    I would expect this query to return a maximum of 10 results. It in fact returns up to 30 results, i.e. 10 per subclass type. What is wrong in the structure of the query or my classes? Is this expected behaviour and does anyone know how I may remedy this situation?
    Thanks in advance,
    Adam.

    David-
    Did I understand that correctly?You are correct.
    If so, why does this limitation exist?It is because a proper relation cannot exist in the database if the
    target table is unknown (which it is for horizontally mapped classes),
    and joins would become tremendously complex or, in some cases, simply
    impossible to accomplish with a single SQL statement.
    We are considering adding some support for querying across horizontal
    relations that are using non-composite primary keys, but it is currently
    not possible.
    In article <d3eig3$ssb$[email protected]>, David Ezzio wrote:
    Hi guys,
    Suppose that we have the following inheritance structure:
    Class: LegalEntity
    Field: LegalEntity relatedTo
    Field: String name
    Class: Person extends LegalEntity
    Field: String ssn
    Class: Corporation extends LegalEntity
    Field: String location
    Class: CollegeStudent extends Person
    Field: String school
    Class: Employee extends Person
    Field: Corporation company
    If a flat mapping is used throughout, then we end up with one table
    (LEGALENTITY) with the columns: relatedTo, name, ssn, location, school,
    and company, plus the Kodo created jdo columns.
    If we wanted to create several tables, we could map LegalEntity and
    Person horizontally, making the base tables COLLEGESTUDENT, EMPLOYEE,
    and CORPORATION.
    If I understand section 7.6.4.3 correctly, the value stored in the
    relatedto column will be a stringified object identity, and Kodo does
    does not support queries across this relation. Thus, the query find all
    CollegeStudent objects that satisfies the filter "relatedTo.name ==
    \"Sally\"" is not supported.
    Did I understand that correctly?
    If so, why does this limitation exist?
    David
    Marc Prud'hommeaux
    SolarMetric Inc.

  • Mapping inner class in mapping workbench

    A project needs to work with inner classes and map these inner classes using TopLink Mapping Workbench. Is this supported? Thanks.
    Haiwie

    Karen,
    Thanks for your response.
    I tried with 9.0.4.4, and it worked. I had to use 'Use Factory' option for Instantiation; the mapping workbench complains about the default instantiation setting, i.e. 'Use Default Constructor'.
    Haiwei

  • How CLOB Oracle maps to class in Java?

    How does CLOB data type
    of Oracle database table column
    maps to
    Java class
    of instance variable of EJB Bean class?
    For instance:
    In Oracle
    column BABUSHKA is of CLOB type
    in EJB bean class
    instance var baBushka is of ??????? class
    Can ???? be:
    java.lang.String
    java.sql.Somethingelse
    Viktor
    Please help - I'm on brink of bursting in tears!

    Hi,
    I do not believe CLOB is supported yet. JDBC 3.0, I think.
    I think you have to go through the same process as with BLOBs. I know this
    is how you would read them, but do not recall an InputStream method on the
    weblogic....OracleCLOB object.
    sorry could not help more.
    Slava
    "Viktor Gritsenko" <[email protected]> wrote in message
    news:8ists6$ptl$[email protected]..
    How does CLOB data type
    of Oracle database table column
    maps to
    Java class
    of instance variable of EJB Bean class?
    For instance:
    In Oracle
    column BABUSHKA is of CLOB type
    in EJB bean class
    instance var baBushka is of ??????? class
    Can ???? be:
    java.lang.String
    java.sql.Somethingelse
    Viktor
    Please help - I'm on brink of bursting in tears!

  • I'd like to do this mapping: one class=one tables !!!

    Hello,
    I am a new user of kodo, in my application all classes extend my
    YOBaseObject class, so when I generate the schema of my msql database
    using the mappingTool (as: mappingTool -a refresh package.jdo) only the
    table yobaseobject is created.
    My gaol is the get one table for a class.
    thank you,
    smail

    Smail-
    By default, Kodo uses the "flat" class mapping, which stores all of the
    subclasses in the table of the top-level persistent class.
    You may want to use "vertical" (one table per class in the hierarchy) or
    "horizontal" (one table per concrete subclass, no table for abstract
    superclass). Take a look at the documentation for the different class
    mappings at:
    http://docs.solarmetric.com/manual.html#ref_guide_mapping_classmapping
    Let us know if you have any questions about any of this.
    In article <cc0gr4$iv7$[email protected]>, ouhmmou wrote:
    Hello,
    I am a new user of kodo, in my application all classes extend my
    YOBaseObject class, so when I generate the schema of my msql database
    using the mappingTool (as: mappingTool -a refresh package.jdo) only the
    table yobaseobject is created.
    My gaol is the get one table for a class.
    thank you,
    smail
    Marc Prud'hommeaux
    SolarMetric Inc.

  • Mapping Workbench Class Refresh

    This is a really annoying problem. I create an attribute in a class, recompile the java project and refresh the class in mapping workbecnh. The attribute appears. Great. But i decide that in fact I don't want that attribute after all. I remove the attribute from the .java in Jdeveloper and any references to that attribute anywhere else. I CLEAN the classes output directory and then rebuild. I refresh the class in MW and the attribute is still there! I even verified that the classes build directory is clean by simply cleaning it all out and trying refresh whereupon the MW gives me an appropriate error that no classes found. Then, I rebuild but MW continues to see an "attribute" that simply is not there. I have closed MW, rebooted etc... and it simply will not recognize that the attribute is gone. WHERE IS MW getting its class info or storing it? This is most annoying. And don't tell me its somewhere in my .class directory because it isn't.

    I have just tried, and I am unable to reproduce this. When I remove an attribute and refresh it disappears as I would expect.
    Did you have the attribute mapped at any time? (perhaps what you are seeing is a bug related to a mapping that doesn't get cleaned up properly). Let me know what you might have had mapped and I'll try it...
    Sorry to say, but it really does seem like some sort of classpath problem...
    - Don

  • GL a/c mapping valuation class

    How can I get the GL account to which service master is attached ( or how can we find the corresponding GL a/c for the valuation class of the service master)?
    Regards
    VS

    Hi
    You can find in transaction code OBYC. click on transaction FRL (External activity).
    regards
    Srinivas

  • Mapping of class file in Main

    Hi All,
    i have written my class file and main class separately, so how to call the class file from main which is written separately.
    If possible provide quick response!

    i have written my class file and main class
    separately, so how to call the class file from main
    which is written separately.By instantiating it in the your main-method.
    Example:
    // inside main(...)
    ClassFile anInstanceOfClassFile = new ClassFile();
    // ...

  • Error while mapping a Java class for a Search Dialog Box component

    Hi,
    Scenario : There is PAR which I have developed for the sorting options for a Search Component set to be used in Km Search Iview.
                   I have copied this PAR from a similiar search functionality and customised the same.
    Problem: When I deploy the PAR and then map this class for the sort options while creating a New Search Dialog box :
    I get the following "Class not found error" ... Please can you let me know what could be the problem.
    Any help would be appreciated here as I have tried all the possibilities to solve the problem.
    Regards,
    Vaishali.

    I modified the xml file as described in the forum.But the error persists.
    One interesting thing is:
    When I create model after restarting the NDS,I get the following error:
    org.eclipse.swt.SWTException: Failed to execute runnable <i>(java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library librfc. Found version "620.0.1237" but required at least version "620.0.1374".)</i>
    I get the NoClassDef found error next time onwards,
    Where do I get the 620.0.1374 version of librfc?
    thanx.
    Bhupesh

  • Java Error in RFC Lookup in XSLT Mapping usinf Java helper class

    Hi All,
    I am doing RFC Lookup in XSLT Mapping using Java Helper class.
    The Lookup works fine when called one RFC at a time However my requirement is I want to do 2 Lookups.
    Both Lookups works when done individually however when I call both lookups in one mapping I get following error "javax.xml.transform.TransformerException: DOMSource whose Node is null."
    Following is the code I have written in XSLT for the lookup:
         <xsl:template name="Lookup_1">
              <xsl:param name="STDPN"/>
                   <rfc:RFC_READ_TABLE>
                        <QUERY_TABLE>KNA1</QUERY_TABLE>
                        <OPTIONS><item><TEXT>
                                  <xsl:value-of select="$STDPN"/>
                             </TEXT></item>
                        </OPTIONS>
                        <FIELDS>
                             <item>
                                  <FIELDNAME>KUNNR</FIELDNAME>
                             </item>
                        </FIELDS>
                   </rfc:RFC_READ_TABLE>
              </xsl:variable>
              <xsl:variable name="response" xmlns:lookup="java:urn.mt.pi" select="lookup:execute($request, 'BS_D, 'cc_RfcLookup', $inputparam)"/>
              <xsl:element name="STDPN">
                   <xsl:value-of select="$response//DATA/item/WA"/>
              </xsl:element>
         </xsl:template>
         <xsl:template name="Lookup_2">
              <xsl:param name="BELNR"/>
                   <xsl:variable name="Query">AGMNT = '<xsl:value-of select="$BELNR"/>'</xsl:variable>
                   <xsl:variable name="request1">
                        <rfc:RFC_READ_TABLE>
                             <QUERY_TABLE>ZTABLE</QUERY_TABLE>
                             <OPTIONS><item><TEXT>
                                  <xsl:value-of select="$Query"/>
                                  </TEXT></item>
                             </OPTIONS>
                             <FIELDS>
                                  <item>
                                       <FIELDNAME>KUNAG</FIELDNAME>
                                  </item>
                             </FIELDS>
                        </rfc:RFC_READ_TABLE>
                   </xsl:variable>
                   <xsl:variable name="response1" xmlns:lookup="java:urn.mt.pi" select="lookup:execute($request1, 'BS_D','cc_RfcLookup', $inputparam)"/>
                   <xsl:element name="BELNR">
                        <xsl:value-of select="$response1//DATA/item/WA"/>
                   </xsl:element>
         </xsl:template>
    My Question: Am I doing anything wrong? Or Is it possible to call multiple lookups in one XSLT?
    Thanks and Regards,
    Atul

    Hi Atul,
    I had the same problem like you had.
    The main Problem is that with the example code the request variable is created as NodeList object. In XSLT a variable is somekind of a constant and can't be changed. As the request object is empty after the first request the programm fails at the following line:
    Source source = new DOMSource(request.item(0));
    So I've created a workaround for this problem.
    In the call of the template I've put the request as a parameter object at the template call:
    <xsl:with-param name="req">
    <rfc:PLM_EXPLORE_BILL_OF_MATERIAL xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
      <APPLICATION>Z001</APPLICATION>
      <FLAG_NEW_EXPLOSION>X</FLAG_NEW_EXPLOSION>
      <MATERIALNUMBER><xsl:value-of select="value"/></MATERIALNUMBER>
      <PLANT>FSD0</PLANT>
      <VALIDFROM><xsl:value-of select="//Recordset/Row[name='DTM-031']/value"/></VALIDFROM>
      <BOMITEM_DATA/>
    </rfc:PLM_EXPLORE_BILL_OF_MATERIAL>
    </xsl:with-param>
    With this change the request will be provided as a String object and not as a NodeList object.
    Afterwards the RfcLookup.java has to be changed to the following:
    package com.franke.mappings;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.PrintWriter;
    import java.io.StringWriter;
    import java.util.Map;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.Source;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import com.sap.aii.mapping.lookup.Channel;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    import com.sap.aii.mapping.api.AbstractTrace;
    import com.sap.aii.mapping.lookup.RfcAccessor;
    import com.sap.aii.mapping.lookup.LookupService;
    import com.sap.aii.mapping.lookup.XmlPayload;
    * @author Thorsten Nordholm Søbirk, AppliCon A/S
    * Helper class for using the XI Lookup API with XSLT mappings for calling RFCs.
    * The class is generic in that it can be used to call any remote-enabled
    * function module in R/3. Generation of the XML request document and parsing of
    * the XML response is left to the stylesheet, where this can be done in a very
    * natural manner.
    * TD:
    * Changed the class that request is sent as String, because of IndexOutOfBound-exception
    * When sending multiple requests in one XSLT mapping.
    public class RfcLookup {
         * Execute RFC lookup.
         * @param request RFC request - TD: changed to String
         * @param service name of service
         * @param channelName name of communication channel
         * @param inputParam mapping parameters
         * @return Node containing RFC response
         public static Node execute( String request,
                 String service,
                 String channelName,
                 Map inputParam)
              AbstractTrace trace = (AbstractTrace) inputParam.get(StreamTransformationConstants.MAPPING_TRACE);
              Node responseNode = null;
              try {
                  // Get channel and accessor
                  Channel channel = LookupService.getChannel(service, channelName);
                  RfcAccessor accessor = LookupService.getRfcAccessor(channel);
                   // Serialise request NodeList - TD: Not needed anymore as request is String
                   /*TransformerFactory factory = TransformerFactory.newInstance();
                   Transformer transformer = factory.newTransformer();
                   Source source = new DOMSource(request.item(0));
                   ByteArrayOutputStream baos = new ByteArrayOutputStream();
                   StreamResult streamResult = new StreamResult(baos);
                   transformer.transform(source, streamResult);*/
                    // TD: Add xml header and remove linefeeds for the request string
                    request = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+request.replaceAll("[\r\n]+", ""); 
                    // TD: Get byte Array from request String to send afterwards
                    byte[] requestBytes = request.getBytes();
                   // TD: Not used anymore as request is String
                    //byte[] requestBytes = baos.toByteArray();
                    trace.addDebugMessage("RFC Request: " + new String(requestBytes));
                    // Create input stream representing the function module request message
                    InputStream inputStream = new ByteArrayInputStream(requestBytes);
                    // Create XmlPayload
                    XmlPayload requestPayload =LookupService.getXmlPayload(inputStream);
                    // Execute lookup
                    XmlPayload responsePayload = accessor.call(requestPayload);
                    InputStream responseStream = responsePayload.getContent();
                    TeeInputStream tee = new TeeInputStream(responseStream);
                    // Create DOM tree for response
                    DocumentBuilder docBuilder =DocumentBuilderFactory.newInstance().newDocumentBuilder();
                    Document document = docBuilder.parse(tee);
                    trace.addDebugMessage("RFC Response: " + tee.getStringContent());
                    responseNode = document.getFirstChild();
              } catch (Throwable t) {
                   StringWriter sw = new StringWriter();
                   t.printStackTrace(new PrintWriter(sw));
                   trace.addWarning(sw.toString());
              return responseNode;
         * Helper class which collects stream input while reading.
         static class TeeInputStream extends InputStream {
               private ByteArrayOutputStream baos;
               private InputStream wrappedInputStream;
               TeeInputStream(InputStream inputStream) {
                    baos = new ByteArrayOutputStream();
                    wrappedInputStream = inputStream;
               * @return stream content as String
               String getStringContent() {
                    return baos.toString();
              /* (non-Javadoc)
              * @see java.io.InputStream#read()
              public int read() throws IOException {
                   int r = wrappedInputStream.read();
                   baos.write(r);
                   return r;
    Then you need to compile and upload this class and it should work.
    I hope that this helps you.
    Best regards
    Till

  • XML mapping inheritance problem; missing class indicator field

    Hi!
    I am currently working on a project which involves mapping a large domain model on a XSD schema. For this we use Toplink 10.1.3.1 which is mostly great. But now I have a problem while wanting to use class inheritance.
    In my XSD I have the following defined
    <xs:complexType name="Traject">
         <xs:sequence>
              <xs:element name="SoortTraject" type="SoortTraject"/>
         </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SpecialTraject">
         <xs:complexContent>
              <xs:extension base="Traject">
                   <xs:sequence>
                                 [some elements] 
                   </xs:sequence>
              </xs:extension>
         </xs:complexContent>
    </xs:complexType>My XML is an implementation of this XSD and looks like this
    <Trajecten>
            <Traject xsi:type="SpecialTraject">
                     [implementation of the elements]
             </Traject>
    </Trajecten>My domain model corresponts to the XSD, so there is a Traject object and an inherited SpecialTraject object.
    In the mapping I used the Advanced properties->inheritance on both descriptors telling the Traject descriptor that it was the 'Root Parent Descriptor' ('Use class indicator field' -> 'use XML Schema Type attribute', 'Use class indicator dictionary') and the SpecialTraject what it Child Descriptor was ('Traject').
    When I test my mapping it always results in the same error (no matter how I configure this inheritance mapping). It says :
    [TOPLINK-44] missing class indicator field
    Descriptor: XMLDescriptor(Traject --> [])What am I doing wrong? Does anybody know a sollution?
    Best regards,
    Jouke Stoel
    Developer

    This is the changed XML descriptor file. When I deploy the file it automaticly overrides the old file so it ain't possible that I was still using the wrong file
    <toplink:class-indicator-mappings>
        <toplink:class-indicator-mapping>
            <toplink:class>Traject</toplink:class>
            <toplink:class-indicator xsi:type="xsd:string">Traject</toplink:class-indicator>
        </toplink:class-indicator-mapping>
        <toplink:class-indicator-mapping>
            <toplink:class>SpecialTraject</toplink:class>
            <toplink:class-indicator xsi:type="xsd:string">SpecialTraject</toplink:class-indicator>
        </toplink:class-indicator-mapping>
    </toplink:class-indicator-mappings>I have posted the stacktrace but I had to translate a bit because my exception was in Dutch :)
    Locale is a great invention
    Exception [TOPLINK-44] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.DescriptorException
    Exception description: Missing class indicator field of database row [UnmarshalRecord()].
    Descriptor: XMLDescriptor(Traject --> [])
         at oracle.toplink.exceptions.DescriptorException.missingClassIndicatorField(DescriptorException.java:887)
         at oracle.toplink.internal.ox.QNameInheritancePolicy.classFromRow(QNameInheritancePolicy.java:84)
         at oracle.toplink.internal.ox.XMLRelationshipMappingNodeValue.processChild(XMLRelationshipMappingNodeValue.java:13)
         at oracle.toplink.internal.ox.XMLCompositeCollectionMappingNodeValue.startElement(XMLCompositeCollectionMappingNodeValue.java:62)
         at oracle.toplink.ox.record.UnmarshalRecord.startElement(UnmarshalRecord.java:352)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1288)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:205)
         at oracle.toplink.internal.ox.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:189)
         at oracle.toplink.internal.ox.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:147)
         at oracle.toplink.ox.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:228)
    .

  • Mapping existing actionscript class (mx.collections.SortField) to java

    Hi,
    I would like to map the existing SortField actionscript class on a SortField class on my java backend.
    Is it possible to map an actionscript class from standard flex API to a java class? If so, how?
    Thanks

    Yeah, there is something awry with your mapped classes.  You don't use the java source files to map your classes, you use AS3
    classes that are designated to which classes they map to on the backend.  Observe..
    package shared.servicevos
       import flash.events.EventDispatcher;
       import flash.events.IEventDispatcher;
       [Bindable]
       [RemoteClass(alias="amf.ShopperVO")]
       public class ShopperVO
           public var shopperId:int;
           public var shopperLocation:String;
           public var shopDate:Date;
           public var shopperAddress:Address
    If you notice the the metadata beginning with "RemoteClass", I am telling Flex "when you see an object that comes in with this type "alias" it is should be made into a ShopperVO".  On the backend, I have a folder with a directory structure of /amf and it contains a ShopperVO.java class.
    P.S This isn't exactly the setup I am working with cause I am using php, but the ideas are the same.

  • The class-default class map

    According to Cisco dumentation (http://www.cisco.com/en/US/docs/security/asa/asa81/config/guide/mpc.html)
    , the ASA is equipped with two default class-maps
    class-map inspection_default
    match default-inspection-traffic
    and
    class-map class-default
    match any
    The first makes perfect sense, but what is the class-default used for? Cisco says
    "This class map appears at the end of all Layer 3/4 policy maps and essentially tells the adaptive security appliance to not perform any actions on all other traffic. You can use the class-default class map if desired, rather than making your own
    match any class map. In fact, some features are only available for class-default."
    But I see stuff like this:
    policy-map MyPolicy
    class class-default
      inspect tfp MyFTPpolicy
    Obviously it is being used here to act on traffic! So I am confused.
    I also noticed that when you upgrade from 8.2 to 8.4, all default class-maps are removed from the configuration: you have to re-create everything (strange)

    Hello Collin,
    This is Mike. I dont think it is well documented. Basically it is just a class map (that does not appear on the configuration unless an action is specified) that will match all traffic passing through the ASA firewall. Some features like NSEL (Netflow) and Traffic shaping are only allowed to use this kind of class maps because they dont support any other match command.
    The one that you currently have (and God I hope its not applied)  will look for tftp traffic on every IP packet passing across the ASA.
    This specific type of policy you have there can only be applied on the interface (as it is not a layer 7 inspection policy) you can check if it is applied or not by running the show "run service-policy command"
    Mike

Maybe you are looking for