How do I expose an Apex method as a WebService that accepts the following input:
<soap:Body>
<request>
<myelement type="something">
...
</myelement>
</request>
</soap:Body>
The problem is that I am able to create the "type" as an element - a child under "myelement" like this:
<myelement>
<type>something</type>
</myelement>
But I am not able to make the "type" as an attribute to "myelement". When we consume webservices in salesforce, the stubs have the following properties to make allow attributes :
private String[] type_x_att_info = new String[]{'type'};
But when we try to publish a WebService, how do we do that ?