Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7410335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:13:09+00:00 2026-05-29T06:13:09+00:00

I have a program that sends data to a web service and stores the

  • 0

I have a program that sends data to a web service and stores the data into an XML file. I would like to know if there’s a class or a method that can catch the soap object that traveling to the service and dump it to a text file. Can anyone tell me how to do this?

edit 1:

ok so after going through the topic posted in the comment i edited my web.config file to look like this:

<?xml version="1.0"?>
<configuration>

<configSections>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
        <section name="XML_New.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
</configSections>
<appSettings>
<add key="username" value="admin"/>
<add key="password" value="admin"/>
</appSettings>
<connectionStrings/>
<system.diagnostics>
<sources>
  <source name="System.ServiceModel.MessageLogging">
    <listeners>
      <add name="messages"
      type="System.Diagnostics.XmlWriterTraceListener"
      initializeData="c:\logs\messages.svclog" />
    </listeners>
  </source>
</sources>
</system.diagnostics>

<system.serviceModel>
<diagnostics>
  <messageLogging logEntireMessage="true"
logMalformedMessages="true"
logMessagesAtServiceLevel="true"
logMessagesAtTransportLevel="true"
maxMessagesToLog="420">
    <filters>
      <add nodeQuota="10" 
   xmlns:soap="http://www.w3.org/2003/05/soap-envelope">

/soap:Envelope/soap:Header
      </add>
    </filters>
  </messageLogging>
</diagnostics>
</system.serviceModel>
<system.web>
    <compilation debug="true" >

    </compilation>
<authentication mode="Forms" />
</system.web>
<applicationSettings>
    <XML_New.Properties.Settings>
        <setting name="XML_New_localhost_Service1" serializeAs="String">
            <value>http://localhost:1689/Admin.asmx</value>
        </setting>
    </XML_New.Properties.Settings>
</applicationSettings>
</configuration>

the file should be logged to c:\logs\messages.svclog but for soeme reason it doesnt. anyone have an idea why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T06:13:10+00:00Added an answer on May 29, 2026 at 6:13 am

    At the asmx service level, you can use soap extensions. Docs and working example here: http://msdn.microsoft.com/en-us/library/system.web.services.protocols.soapextension.aspx. You can probably copy-paste that whole thing, change the dump path in GetInitializer, and it might just work for you. +1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple file transfer socket program where one socket sends file data
I have a program that sends data to the home IP to the port####.
I have a C++ program that sends data via FTP via ASCII mode to
I have a small program that sends and receives data from server and client
I'm looking to create a cocoa program that simply sends data typed into text
I have a program that spits out an Excel workbook in Excel 2003 XML
i'm trying to create a bridge program in twisted.web that receives data from a
Lets say I have a chat program that every time someone sends a message,
I need to have a process that compiles daily data into an PDF that
i am making a program that sends data between a server program and its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.