/**
         * AUTO_GENERATED
         */
        public BMManageButtonStatusResponseType BMManageButtonStatus(BMManageButtonStatusReq bMManageButtonStatusReq, string apiUserName)
        {
            setStandardParams(bMManageButtonStatusReq.BMManageButtonStatusRequest);
            string      response    = Call("BMManageButtonStatus", bMManageButtonStatusReq.ToXMLString(), apiUserName);
            XmlDocument xmlDocument = new XmlDocument();

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

            return(new BMManageButtonStatusResponseType(xmlNode));
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        ///<param name="bMManageButtonStatusReq"></param>
        ///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param>
        public BMManageButtonStatusResponseType BMManageButtonStatus(BMManageButtonStatusReq bMManageButtonStatusReq, ICredential credential)
        {
            setStandardParams(bMManageButtonStatusReq.BMManageButtonStatusRequest);
            DefaultSOAPAPICallHandler defaultHandler    = new DefaultSOAPAPICallHandler(this.config, bMManageButtonStatusReq.ToXMLString(null, "BMManageButtonStatusReq"), 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 BMManageButtonStatusResponseType(
                       xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='BMManageButtonStatusResponse']")
                       ));
        }