I want to add the following content to the Soap request body when webservice is invoked.
<foo bar="baz">bar</foo>
I tried to update the generated code by the WSDL file.
public class MyService {
public class bar {
public String bar;
private String[] bar_type_info = new String[] {'bar','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] apex_schema_type_info = new String[] {'http://schema.myservice.com', 'false', 'false'};
private String[] field_order_type_info = new String[] {'bar'};
}
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'};
}
}
I only can get this message.
<foo a="b"><bar>baz</bar></foo>
How can I change the Apex code to remove <bar>
tag from the SOAP request body?
<foo a="b"><bar>baz</bar></foo>
request. But I don't want to have<bar>
tag. Do you have a WSDL file that can get my expect Request body?