public override XmlDocument createBxSoapEnvelope() { XmlDocument soapEnvelopeXml = new XmlDocument(); string xmlContent = SoapEnvelopeHeader; xmlContent += @"<bx:action>Register Token from Form</bx:action>"; xmlContent += BxData.ToString(); xmlContent += SoapEnvelopeFooter; try { xmlContent.Replace("'", "'").Replace("\"", """).Replace(">", ">").Replace("<", "<").Replace("&", "&").Replace(" ", " "); soapEnvelopeXml.LoadXml(xmlContent); } catch (Exception ex) { throw new Exception("Error in createBxSoapEnvelope. " + ex.Message); } ////////////// // samo za test /* * XmlTextWriter writer = new XmlTextWriter("C://Users//Marko//Desktop//Projekti SVI//Posta//SOAP Poruka//SOAP.xml", null); * writer.Formatting = Formatting.Indented; * soapEnvelopeXml.Save(writer); */ ////////////// return(soapEnvelopeXml); }
public override XmlDocument createBxSoapEnvelope() { XmlDocument soapEnvelopeXml = new XmlDocument(); string xmlContent = SoapEnvelopeHeader; xmlContent += @"<bx:action>Retrieve Product</bx:action>"; xmlContent += BxData.ToString(); xmlContent += SoapEnvelopeFooter; soapEnvelopeXml.LoadXml(xmlContent); ////////////// // samo za test /* * XmlTextWriter writer = new XmlTextWriter("C://Users//Marko//Desktop//Projekti SVI//Posta//SOAP Poruka//SOAP.xml", null); * writer.Formatting = Formatting.Indented; * soapEnvelopeXml.Save(writer); */ ////////////// return(soapEnvelopeXml); }