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 7086189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:31:07+00:00 2026-05-28T07:31:07+00:00

I am building a web service client to interact with a (java-based) remote web

  • 0

I am building a web service client to interact with a (java-based) remote web service, out of my control. I can call the web service operation, and can tell by packet-sniffing that the service is responding with populated data. However, by the time that response makes it into the client code, the response is only a shell, with all the data null.

I suspect that an error is occurring in the web service “plumbing” that is causing the data to be silently dropped or ignored, but I can’t find a way to enable debugging (or even logs or error messages?) during the receipt of the response before it hits my client code.

My App.config has Message Logging enabled, but only outgoing messages are being logged:

<system.diagnostics>
    <sources>
        <source name="System.ServiceModel.MessageLogging">
            <listeners>
                <add name="messages"
                type="System.Diagnostics.XmlWriterTraceListener"  
                initializeData="c:\messages.svclog" />
            </listeners>
        </source>
    </sources>
</system.diagnostics>

<system.serviceModel>
    <diagnostics>
        <messageLogging
             logEntireMessage="true"
             logMalformedMessages="true"
             logMessagesAtServiceLevel="true"
             logMessagesAtTransportLevel="true"
             maxMessagesToLog="3000"
             maxSizeOfMessageToLog="2000"/>
    </diagnostics>
</system.serviceModel>

I really want to set a breakpoint during the actual parsing of the response message, but having the Message Logger actually log the response may also help a bit.

I’ve also configured a custom MessageEncoder which was necessary to work around a bug in the remote service’s parser. I can add breakpoints to the ReadMessage methods on that MessageEncoder, and can see that the data is still there at that point. However, the next step jumps back into the client code, and the Response object is empty — no warnings or messages. Is there any way to see what’s going on in between?

So, I guess this ends up being a two-part question:

  1. How/Where can I set a breakpoint to observe the SOAP message getting
    processed, after the MessageEncoder, but before it is sent to the client code?
  2. What’s wrong with my logging config that only outgoing
    messages are logged?
  • 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-28T07:31:08+00:00Added an answer on May 28, 2026 at 7:31 am

    Here is how you can get the response tracing to work for you:

    1. Configuration

    <system.diagnostics>
    <sharedListeners>
      <add name="sharedListener"
           type="System.Diagnostics.XmlWriterTraceListener"
           initializeData="C:\LogFiles\messages.svclog" />
    </sharedListeners>
    <sources>
      <source name="System.ServiceModel" switchValue="Verbose, ActivityTracing" >
        <listeners>
          <add name="sharedListener" />
        </listeners>
      </source>
      <source name="System.ServiceModel.MessageLogging" switchValue="Verbose">
        <listeners>
          <add name="sharedListener" />
        </listeners>
      </source>
    </sources>
    </system.diagnostics>
    <system.serviceModel>
    <diagnostics performanceCounters="All" wmiProviderEnabled="True">
      <messageLogging
           logEntireMessage="True"
           logMalformedMessages="True"
           logMessagesAtServiceLevel="True"
           logMessagesAtTransportLevel="True"
           maxMessagesToLog="3000"
           maxSizeOfMessageToLog="30000"/>
    </diagnostics>
    </system.serviceModel>
    

    This goes in your app.config / web.config under the configuration node.

    2. Locating the Response

    A quick validation to see that you actually receive service responses from the remote service is to open up the log file as an xml file in Visual studio and do a search for

    Source="TransportReceive"

    you should be able to see what the remote service has responded with within this MessageLogTraceRecord node.

    3. Tooling

    The recommended tool for viewing these messages is SvcTraceViewer.exe

    You should be able to find this in either:

    C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64

    or

    C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin

    If you do not have this tool, you can find it in the Windows Sdk

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

Sidebar

Related Questions

i am building a web service in java and my client is .net for
Please advise if you can. I am building an SMS web service API that
And thanks for any suggestions. I am building a client facing web service, but
I'm building this client for a web service. Pretty much everything makes requests to
I'm building a REST web service client in PHP and at the moment I'm
I'm building a .NET component that will call an external web service. I used
I am building a Web service using WCF as a way to provide access
I am building a web service that involves parsing of 3rd party RSS feeds.
I'm building a RESTful web service which has multiple URIs for one of its
I'm building a traditional ASP.NET Web Service -- the style built using asmx. It's

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.