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