You need to sign in to do that
Don't have an account?
Prajapati.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