Hi...
Thanks for the links; that's been very helpful. The sample SoapExtension is
basically what I wanted to do. The gap I'm finding in the documentation,
however, is how to get the SoapExtension plugged in and working. There are
some references to how to configure a web.config for ASP.Net, and in another
spot a small reference to gaccing your extensions and plugging them into the
machine.config for everything, but I'm not having any luck figuring out out
to phrase it for an app.config just for my test case.
Probably won't need a <system.web> wrapper, don't know if I'll need a
<webServices> wrapper. For an app.config, will I need a section header to
specify this, or will these be recognized as "built in"?
Thanks
-mark
Hi Mark,
On server side, you can put it in web.config. On client side, we need to
add it in app.config, for example:
<configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add
type="WebServiceProgress.ProgressExtension, WebServiceProgress"
priority="1" group="0" />
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>
Luke
Mark - 04 Apr 2005 16:53 GMT
Hi Luke...
Thanks for responding. I took the TraceExtension example right out of the
msdn doc page you pointed me to, and then made a local config exactly like
the one below, except with TraceExtension in the add type.
I had the config file in the bin\debug directory with the project build.
First I called it app.config, then I called it <app>.exe.xml (which one msdn
page said should be the form. Neither worked, in that I don't get into the
extension code at all. And I didn't see any build/startup errors shown, so
I'm not sure what I'm doing wrong.
Should the app.config be somewhere else? Should it be built into the app as
a resource?
Thanks
_mark
[MSFT] - 05 Apr 2005 03:43 GMT
Hi Mark,
If your windows application named "winapp.exe", your config file should be
in same folder and named "winapp.exe.config". You can add
"winapp.exe.config" mannually, or VS.NET compiler will help you generate it:
In VS.NET IDE, you can open the app.config and edit it. Then compile the
project.
Luke
Mark - 12 Apr 2005 16:59 GMT
Thanks Luke... When you create an extension, do you need to register it in
the GAC or something? As I said, I copy and pasted the TraceExtension code
directly from the msdn webpage into my project and then added
<add type="TraceExtension" priority="1" group="0"/>
in the application config. Now that I've got the app config in the right
place, it blows up saying that the type value is illegal. Then I changed it
from being a free-range class to being in the app namespace and put
"t.TraceExtension" but it still blows up saying the type value is illegal,
but it doesn't say what's illegal about it.
Thanks
_mark
> Hi Mark,
>
[quoted text clipped - 14 lines]
>
> Luke
[MSFT] - 13 Apr 2005 03:42 GMT
Hello,
For the "type" element, we need to specify the full class name like:
<add
type="WebServiceProgress.ProgressExtension, WebServiceProgress"
priority="1" group="0" />
"WebServiceProgress.ProgressExtension" is the full class name with
namespace; WebServiceProgress is the assembly name in the application
folder.
Luke