/**
         * AUTO_GENERATED
         */
        public BMUpdateButtonResponseType BMUpdateButton(BMUpdateButtonReq bMUpdateButtonReq, string apiUserName)
        {
            setStandardParams(bMUpdateButtonReq.BMUpdateButtonRequest);
            string      response    = Call("BMUpdateButton", bMUpdateButtonReq.ToXMLString(), apiUserName);
            XmlDocument xmlDocument = new XmlDocument();

            xmlDocument.LoadXml(response);
            XmlNode xmlNode = xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='BMUpdateButtonResponse']");

            return(new BMUpdateButtonResponseType(xmlNode));
        }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        ///<param name="bMUpdateButtonReq"></param>
        ///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param>
        public BMUpdateButtonResponseType BMUpdateButton(BMUpdateButtonReq bMUpdateButtonReq, ICredential credential)
        {
            setStandardParams(bMUpdateButtonReq.BMUpdateButtonRequest);
            DefaultSOAPAPICallHandler defaultHandler    = new DefaultSOAPAPICallHandler(this.config, bMUpdateButtonReq.ToXMLString(null, "BMUpdateButtonReq"), null, null);
            IAPICallPreHandler        apiCallPreHandler = new MerchantAPICallPreHandler(this.config, defaultHandler, credential);

            ((MerchantAPICallPreHandler)apiCallPreHandler).SDKName    = SDKName;
            ((MerchantAPICallPreHandler)apiCallPreHandler).SDKVersion = SDKVersion;
            ((MerchantAPICallPreHandler)apiCallPreHandler).PortName   = "PayPalAPI";

            XmlDocument xmlDocument = new XmlDocument();

            xmlDocument.LoadXml(Call(apiCallPreHandler));
            return(new BMUpdateButtonResponseType(
                       xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='BMUpdateButtonResponse']")
                       ));
        }