DX Application Performance Management

  • 1.  HTTP Plugin XML schema parser values

    Posted Oct 19, 2015 11:18 AM

    I am trying to use the example code from CEM HTTP Plugin Development Guide, because we need to get the user and password fields from a schema.

     

    The example is very similar to what the customer needs but it shows an error when I try to create the JAR file.

     

    The error appears in the line:

    public class CemJavaPlugin implements CemPluginApi {

     

    The output is:

     

    c:\CemJavaPlugin.java:4: error: CemJavaPlugin is not abstract and does not overr

    ide abstract method terminate() in CemPluginApi

    public class CemJavaPlugin implements CemPluginApi {

    ^

    1 error

     

    -=-=-=-=-=-

    The main goal is to get the element name as parameter, example UserName and Password element name as Parameters in CEM.

     

    This is the schema:

     

    <xs:schema id="ParamData" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:x

    ml-msdata">

    <xs:element name="ParamData" msdata:IsDataSet="true" msdata:Locale="es-AR">

    <xs:complexType>

    <xs:choice maxOccurs="unbounded">

    <xs:element name="Param">

    <xs:complexType>

    <xs:sequence>

    <xs:element name="UserName" type="xs:string" msdata:targetNamespace="" minOccurs="0" />

    <xs:element name="Password" type="xs:string" msdata:targetNamespace="" minOccurs="0" />

    </xs:sequence>

    </xs:complexType>

    </xs:element>

    </xs:choice>

    </xs:complexType>

    </xs:element>

    </xs:schema>m:xml-diffgram-v1"><ParamData><Param diffgr:id="Param1" msdata:rowOrder="0" diffgr:hasChanges="inserted"><UserName>EVSUNDT</UserName><Password>SALAD123</Password></Param></ParamData></diffgr:diffgram>

     

    -=-=-=-=-=-

    I tried several forms and the problem persist.

    Do you have a basic example code (that working) similar to the guide to read an attributes from XML Schema as parameters?



  • 2.  Re: HTTP Plugin XML schema parser values

    Broadcom Employee
    Posted Oct 20, 2015 09:04 AM

    The sample file and public examples on the community are the best online examples

    Guenter_Grossberger. Adding Guenter



  • 3.  Re: HTTP Plugin XML schema parser values

    Broadcom Employee
    Posted Oct 20, 2015 01:56 PM