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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:15:29+00:00 2026-05-21T05:15:29+00:00

I need to use a SoapExtension subclass (which I have created), but it seems

  • 0

I need to use a SoapExtension subclass (which I have created), but it seems that this class can only be initialized through a web.config file. I have read that it should be possible through app.config file, but I don’t know how to do it that way.

Problem: I don’t have a web.config file in my project.

So I created one manually with the following content:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.web>
    <webServices>
      <soapExtensionTypes>
        <add type="MyNameSpace.MySoapExtension,MyAssemblyFileName" priority="1"/>
      </soapExtensionTypes>
    </webServices>
  </system.web>
</configuration>

Despite breakpoints dispatched in each SoapExtension methods, nothing happens at runtime, it seems that it is never initialized nore called. My SoapService initializes ok, but without any extension.

I guess that creating the web.config file manually may not be enough for it to be taken into account, so I am wondering how to properly configure my app to have a web.config file in order to use my SoapExtension. It should go and initialize my class, processMessage, and chainStream stuff.

Note: This is my first ever SoapExtension implementation, so I am not really sure about what I am doing.

  • 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-21T05:15:29+00:00Added an answer on May 21, 2026 at 5:15 am

    I found out how to / where to insert the web.config content in the app.config file:

    I had to insert it after ApplicationSettings and userSettings elements. This is the only place where it doesn’t generate any error at runtime. So no need for a web.config file, although I still would like to know how to configure the app, if someone has the answer.

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <configSections>
      </configSections>
      <applicationSettings>
      </applicationSettings>
      <userSettings>
      </userSettings>
      <system.web>
        <webServices>
          <soapExtensionTypes>
            <add type="MyNameSpace.MySoapExtension,MyAssemblyFileName" priority="1"/>
          </soapExtensionTypes>
        </webServices>
      </system.web>
      <system.serviceModel>
        <bindings />
        <client />
      </system.serviceModel>
    </configuration>
    

    My SoapExtension seems to be correctly initialized now, and the message filtering works fine.

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

Sidebar

Related Questions

need to use a good PHP ORM that has elements of Datamapper and I
I need to use a regex pattern , but what is the right php
I need to use some fairly complex Jquery plugins that aren't just a single
How I can add proxy/socks4/socks5 to C# Socket. I need use it throw Socket.
When i creating TThread i can't pass parameters to thread, so i need use
HI guys, There is an abc.jar under /tomcat_lib. I need use this in my
hi i have devart oracle provider 6(BETA), and want use code only ctp5...how i
I don't have a specific question here but I'm more looking for some guidance
I need to use C# to search a directory (C:\Logs) for log files whose
I need to use a 3rd party dll in our main app. When I

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.