/**
          *AUTO_GENERATED
         	  */
        public BMButtonSearchResponseType BMButtonSearch(BMButtonSearchReq BMButtonSearchReq, string apiUsername)
        {
            setStandardParams(BMButtonSearchReq.BMButtonSearchRequest);

            string resp = call("BMButtonSearch", BMButtonSearchReq.toXMLString(), apiUsername);
            return new BMButtonSearchResponseType(resp);
        }
 /**
   *AUTO_GENERATED
  	  */
 public BMButtonSearchResponseType BMButtonSearch(BMButtonSearchReq bMButtonSearchReq, string apiUserName)
 {
     setStandardParams(bMButtonSearchReq.BMButtonSearchRequest);
     string response = Call("BMButtonSearch", bMButtonSearchReq.ToXMLString(), apiUserName);
     XmlDocument xmlDocument = new XmlDocument();
     xmlDocument.LoadXml(response);
     XmlNode xmlNode = xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='BMButtonSearchResponse']");
     return new BMButtonSearchResponseType(xmlNode);
 }
        /// <summary>
        /// 
        /// </summary>
        ///<param name="bMButtonSearchReq"></param>
        ///<param name="apiUserName">API Username that you want to authenticate this call against. This username and the corresponding 3-token/certificate credentials must be available in Web.Config/App.Config</param>
        public BMButtonSearchResponseType BMButtonSearch(BMButtonSearchReq bMButtonSearchReq, string apiUserName)
        {
            setStandardParams(bMButtonSearchReq.BMButtonSearchRequest);
            DefaultSOAPAPICallHandler defaultHandler = new DefaultSOAPAPICallHandler(this.config, bMButtonSearchReq.ToXMLString(null, "BMButtonSearchReq"), null, null);
            IAPICallPreHandler apiCallPreHandler = new MerchantAPICallPreHandler(this.config, defaultHandler, apiUserName, getAccessToken(), getAccessTokenSecret());
            ((MerchantAPICallPreHandler) apiCallPreHandler).SDKName = SDKName;
            ((MerchantAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion;
            ((MerchantAPICallPreHandler) apiCallPreHandler).PortName = "PayPalAPI";

            XmlDocument xmlDocument = new XmlDocument();
            xmlDocument.LoadXml(Call(apiCallPreHandler));
            return new BMButtonSearchResponseType(
                xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='BMButtonSearchResponse']")
            );
        }
Beispiel #4
0
        protected void Submit_Click(object sender, EventArgs e)
        {
            // Create request object
            BMButtonSearchRequestType request = new BMButtonSearchRequestType();
            request.StartDate = startDate.Text;
            request.EndDate = endDate.Text;

            // Invoke the API
            BMButtonSearchReq wrapper = new BMButtonSearchReq();
            wrapper.BMButtonSearchRequest = request;
            PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService();
            BMButtonSearchResponseType response = service.BMButtonSearch(wrapper);

            // Check for API return status
            setKeyResponseObjects(service, response);
        }
 /// <summary> 
 /// 
 /// </summary>
 ///<param name="bMButtonSearchReq"></param>
 public BMButtonSearchResponseType BMButtonSearch(BMButtonSearchReq bMButtonSearchReq)
 {
     return BMButtonSearch(bMButtonSearchReq,(string) null);
 }
 /**
   *AUTO_GENERATED
  	  */
 public BMButtonSearchResponseType BMButtonSearch(BMButtonSearchReq BMButtonSearchReq)
 {
     return BMButtonSearch(BMButtonSearchReq, null);
 }