protected override void OnWriteHeaderContents(System.Xml.XmlDictionaryWriter writer, MessageVersion messageVersion)
 {
     writer.WriteElementString("SessionID", @"http://schemas.datacontract
 .org/2004/07/Epicor.Hosting", SessionId.ToString());
     writer.WriteElementString("UserID", @"http://schemas.datacontract.or
 g/2004/07/Epicor.Hosting", EpicorUserId);
 }
Exemple #2
0
 protected override void OnWriteHeaderContents(System.Xml.XmlDictionaryWriter writer, MessageVersion messageVersion)
 {
     writer.WriteElementString("Company", @"http://schemas.datacontract.org/2004/07/Epicor.Hosting", Company);
     writer.WriteElementString("FormatCulture", @"http://schemas.datacontract.org/2004/07/Epicor.Hosting", "");
     writer.WriteElementString("Language", @"http://schemas.datacontract.org/2004/07/Epicor.Hosting", "");
     writer.WriteElementString("Plant", @"http://schemas.datacontract.org/2004/07/Epicor.Hosting", Plant);
     writer.WriteElementString("TimezoneOffset", @"http://schemas.datacontract.org/2004/07/Epicor.Hosting", 0.ToString());
 }
Exemple #3
0
 protected override void OnWriteStartHeader(
     System.Xml.XmlDictionaryWriter writer,
     MessageVersion messageVersion)
 {
     base.OnWriteStartHeader(writer, messageVersion);
     // Write your custom XML using the XmlDictionaryClass:
     //TODO: add the 'param' XML namespace to the writer...
     //TODO: add the container element with something like this:
     writer.WriteElementString("SaglikNetParameters", "param", "");
     writer.WriteElementString("parameter", "param", "2");
     writer.WriteAttributeString("name", "", "islemKodu");
     //TODO: complete the rest of the XML ...
 }
Exemple #4
0
        //public override string Name => throw new NotImplementedException();
        //public override string Namespace => throw new NotImplementedException();

        protected override void OnWriteHeaderContents(
            System.Xml.XmlDictionaryWriter writer, MessageVersion messageVersion)
        {
            XmlSerializer serializer = new XmlSerializer(typeof(ModelInterceptor));
            StringWriter  textWriter = new StringWriter();

            //serializer.Serialize(textWriter, _customData);
            textWriter.Close();
            string text = textWriter.ToString();

            writer.WriteElementString(CUSTOM_HEADER_NAME, "Key", text.Trim());
        }
Exemple #5
0
 protected override void OnWriteHeaderContents(System.Xml.XmlDictionaryWriter writer, System.ServiceModel.Channels.MessageVersion messageVersion)
 {
     writer.WriteElementString("ExecutionID", this._value);
 }
Exemple #6
0
 protected override void OnWriteHeaderContents(System.Xml.XmlDictionaryWriter writer, MessageVersion messageVersion)
 {
     writer.WriteElementString("cUF", cUF);
     writer.WriteElementString("versaoDados", versaoDados);
 }