You need to sign in to do that
Don't have an account?
sandy_salesfdc1
exposing a inbound webservice with input xml having xml attribute
In an inbound webservice if want to provide a structure like <foo bar="baz">bar</foo> ---------------- webservice string foo; will create a tag like <foo></foo> how will i introduce an attribute for this tag -bar = "baz" Is this capability available in sfdc. please advice |
Try using DomXML classes for generating the XML. It will provide you option for setting attributes and namespaces and even to parse xml.
Hi Prasanna,
Thanks for the response . But DomXML classes will help me create a request message for webservice or parse a xml response.
How can i generate the argument/metadata class which will support attribute for a tag ?.
i want to generate wsdl from this class.
so when the end system hits my service it will be able to pass xml attribute in the req message
please advice.
Regards,
Sandy
If you have written a webservice in Apex, you should be able to generate the WSDL for that.
Check if this helps: http://wiki.developerforce.com/page/Exposing_Service_and_Support_Data_using_Apex_Web_Services
i am femiliar with exposing apex class as webservice.
but i need a way in which the wsdl will have the capability of holding attribute values .