I am attempting to import a WSDL into Salesforce where one of the XML element contains both an element and a string value e.g.
<foo bar="bob">baz</foo>
When I import this using the WSDL to Apex tool, the string value is not available in the generated class--just the attribute.
Here is the WSDL snippet:
<xs:complexType name="password">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="Type" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
The generated class is:
public class password {
public String Type_x;
private String[] Type_x_att_info = new String[]{'Type'};
private String[] field_order_type_info = new String[]{};
}
Is there a way I can manually modify this class to provide value without an inner element?