function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Prajapati.LakhanPrajapati.Lakhan 

Customize WSDL generated classes

Hi,,

Salesforce didnot provide good documentation for WSDL2Apex. In my case security header information cannot be included in WSDL so i have to modify generated apex classes . e.g.- If we want to deliver following soap element- 

<foo a="b"><bar>baz</bar></foo>

  then you will have to create followin mapping class -

public class foo {
      public MyService.bar bar;
      public String a;
      private String[] bar_type_info = new String[] {'bar','http://schema.myservice.com','bar','0','1','true'};
      private String[] a_att_info = new String[] {'a'};
      private String apex_schema_type_info = new String[] {'http://schema.myservice.com','false','false'};
      private String[] field_order_type_info = new String[] {'bar'};
   }

 

Have somebody figured out how to create mapping class for the following xml ?

<foo bar="baz">bar</foo>

 Thanks,

Lakhan