0 Replies Latest reply on Mar 2, 2016 1:24 PM by alexanderrs

    https://esmIP/ws/esm?wsdl web service client creation compilation errors...

    alexanderrs

      I have only been using the SOAP/XML API for ESM for a few days, and I am having difficulty with my Web Service Client code.

       

      The two classes that contain errors are EsmSelectField and EsmFilterField.

       

      EsmFilterField generated code:

       

      public class EsmFilterField  implements java.io.Serializable {


          private com.mcafee.siem.api.v3.EsmFieldType[] esmField; // attribute

       

          public EsmFilterField() {

          }

       

          public EsmFilterField(

                 java.lang.String name,

                 com.mcafee.siem.api.v3.EsmFieldType[] param1) {

       

              super(

                  name);

       

              this.param1 = param1;

          }

       

      The super call cannot happen because the EsmFilterField does not inherit from anything other than java.lang.object.  This contradicts what is in the WSDL, which says

      EsmSelectField is an extension of EsmField (which isn't present in the imported wsdl code). Also, this.param1 doesn't exist (only esmField matches the type).

       

      This is the same deal with EsmSelectField

       

      public class EsmSelectField  implements java.io.Serializable {

       

          private com.mcafee.siem.api.v3.EsmFieldType[] esmField; // attribute

       

          public EsmSelectField() {

          }

       

          public EsmSelectField(

                java.lang.String name,

                com.mcafee.siem.api.v3.EsmFieldType[] param1) {

       

              super(

                  name);

       

              this.param1 = param1;

          }

       

      I am not sure if this is eclipse's fault, or it’s the wsdl's fault.

       

      Any and all help would be appreciated.