• almas mahfooz 3
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
I have a slaesforce webservice (generated from WSDL) having method UpdateStatus(data AS myObjects) as WSResponse.
On checking myObjects
public partial class myObject {
        
        private string statusField;
        
        private string strIdField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string status {
            get {
                return this.statusField;
            }
            set {
                this.statusField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public string strId {
            get {
                return this.strIdField;
            }
            set {
                this.strIdField = value;
            }
        }
    }

Now I want to know how can I call this method in C# and pass parameters to this myObjects? 
I am following the steps in this  https://celedonpartners.com/blog/calling-a-custom-salesforce-rest-endpoint-using-c/ post to login to salesforce and call an API. Getting below error. Anybody could explain why is this error comming?

User-added image
Hi All,
 Please let me know the steps what should be done for the below :
1) To send a Webservice Outbound call to another system.
2) Receive the response in XML Format
3) Parse the XML Response
4) Store the values in the system.
  • April 16, 2016
  • Like
  • 0