ToXMLString() public method

public ToXMLString ( string prefix, string name ) : string
prefix string
name string
return string
 /**
   *AUTO_GENERATED
  	  */
 public DoCaptureResponseType DoCapture(DoCaptureReq doCaptureReq, string apiUserName)
 {
     IAPICallPreHandler apiCallPreHandler = null;
      		string portName = "PayPalAPIAA";
     setStandardParams(doCaptureReq.DoCaptureRequest);
     DefaultSOAPAPICallHandler defaultHandler = new DefaultSOAPAPICallHandler(doCaptureReq.ToXMLString(null, "DoCaptureReq"), 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()='DoCaptureResponse']");
     return new DoCaptureResponseType(xmlNode);
 }
        /// <summary>
        /// 
        /// </summary>
        ///<param name="doCaptureReq"></param>
        ///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param> 
        public DoCaptureResponseType DoCapture(DoCaptureReq doCaptureReq, ICredential credential)
        {
            setStandardParams(doCaptureReq.DoCaptureRequest);
            DefaultSOAPAPICallHandler defaultHandler = new DefaultSOAPAPICallHandler(this.config, doCaptureReq.ToXMLString(null, "DoCaptureReq"), 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 DoCaptureResponseType(
                xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='DoCaptureResponse']")
            );
        }
 /**
   *AUTO_GENERATED
  	  */
 public DoCaptureResponseType DoCapture(DoCaptureReq doCaptureReq, string apiUserName)
 {
     setStandardParams(doCaptureReq.DoCaptureRequest);
     string response = Call("DoCapture", doCaptureReq.ToXMLString(), apiUserName);
     XmlDocument xmlDocument = new XmlDocument();
     xmlDocument.LoadXml(response);
     XmlNode xmlNode = xmlDocument.SelectSingleNode("*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='DoCaptureResponse']");
     return new DoCaptureResponseType(xmlNode);
 }