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
lzanottilzanotti 

weservice in apex which will be called by external system

I need to create a webservice in apex which will be called by external system. Everything seems to be very easy, but requirement is that we should use attribute in  xml request. So for example

<tagName xmlns:attName="value"/>

How should we map attribute to class structure that salesforce use for webservice. Class for request looks like this:

global class tagName{

        webservice String attName;
}

This doesn't work, and value from attribute isn't put into class variable.

Is there a way how to get attribute from xml request into salesforce webservice?

 

Thanks

lzanottilzanotti

Anyone? Can this be done?