/// <summary>
        /// 
        /// </summary>
        ///<param name="doCancelReq"></param>
        ///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param> 
        public DoCancelResponseType DoCancel(DoCancelReq doCancelReq, ICredential credential)
        {
            setStandardParams(doCancelReq.DoCancelRequest);
            DefaultSOAPAPICallHandler defaultHandler = new DefaultSOAPAPICallHandler(this.config, doCancelReq.ToXMLString(null, "DoCancelReq"), null, null);
            IAPICallPreHandler apiCallPreHandler = new MerchantAPICallPreHandler(this.config, defaultHandler, credential);
            ((MerchantAPICallPreHandler) apiCallPreHandler).SDKName = SDKName;
            ((MerchantAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion;
            ((MerchantAPICallPreHandler) apiCallPreHandler).PortName = "PayPalAPIAA";

            XmlDocument xmlDocument = new XmlDocument();
            xmlDocument.LoadXml(Call(apiCallPreHandler));
            return new DoCancelResponseType(
                xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='DoCancelResponse']")
            );
        }
 /// <summary> 
 /// 
 /// </summary>
 ///<param name="doCancelReq"></param>
 public DoCancelResponseType DoCancel(DoCancelReq doCancelReq)
 {
     return DoCancel(doCancelReq,(string) null);
 }
 /**
   *AUTO_GENERATED
  	  */
 public DoCancelResponseType DoCancel(DoCancelReq doCancelReq, string apiUserName)
 {
     IAPICallPreHandler apiCallPreHandler = null;
      		string portName = "PayPalAPIAA";
     setStandardParams(doCancelReq.DoCancelRequest);
     DefaultSOAPAPICallHandler defaultHandler = new DefaultSOAPAPICallHandler(doCancelReq.ToXMLString(null, "DoCancelReq"), null, null);
     apiCallPreHandler = new MerchantAPICallPreHandler(defaultHandler, apiUserName, getAccessToken(), getAccessTokenSecret());
     ((MerchantAPICallPreHandler) apiCallPreHandler).SDKName = SDKName;
     ((MerchantAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion;
     ((MerchantAPICallPreHandler) apiCallPreHandler).PortName = portName;
     string response = Call(apiCallPreHandler);
     XmlDocument xmlDocument = new XmlDocument();
     xmlDocument.LoadXml(response);
     XmlNode xmlNode = xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='DoCancelResponse']");
     return new DoCancelResponseType(xmlNode);
 }
 /**
   *AUTO_GENERATED
  	  */
 public DoCancelResponseType DoCancel(DoCancelReq doCancelReq, string apiUserName)
 {
     setStandardParams(doCancelReq.DoCancelRequest);
     string response = Call("DoCancel", doCancelReq.ToXMLString(), apiUserName);
     XmlDocument xmlDocument = new XmlDocument();
     xmlDocument.LoadXml(response);
     XmlNode xmlNode = xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='DoCancelResponse']");
     return new DoCancelResponseType(xmlNode);
 }
 public DoCancelResponseType DoCancel(DoCancelReq DoCancelReq)
 {
     return DoCancel(DoCancelReq, null);
 }
        /**
         *
         */
        public DoCancelResponseType DoCancel(DoCancelReq DoCancelReq, string apiUsername)
        {
            setStandardParams(DoCancelReq.DoCancelRequest);
            string resp = call("DoCancel", DoCancelReq.toXMLString(), apiUsername);

            return new DoCancelResponseType(resp);
        }