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
SijuSiju 

How to pass an an attribute to XML message in SOAP webservice

How to pass an an attribute to XML message in SOAP webservice callout .
Example I want to pass  mac:bar

**WSDL - Imported in SOAP UI**
<foo mac:bar="TestAttribute">Test data</foo>



**APEX Generated from WSDL**
public String bar;
private String[] bar_att_info = new String[]{'bar'};


**APEX Stub**
 dtRT.bar='TestBarData';


The request that I am passing from Apex is not having the mac:bar="TestAttribute" . SOAP UI everything is working fine . Any pointers are helpful .thanks

 
SwethaSwetha (Salesforce Developers) 
HI Siju,
This should help https://salesforce.stackexchange.com/questions/261075/how-to-pass-an-attribute-to-xml-message-in-soap-webservice-callout

If this information helps, please mark the answer as best. Thank you