Hi,
I'm very new to the WSE subject, but I seem to be having an issue which so
far as I can tell shouldn't be happening.
Dev PC and Visual Studio config:
- XP Pro on an AD network
- Office 2003 Pro
- VS 2005, with SP1
- WSE 3.0
- VSTO 2005, with SP1
- VSTO 2005 SE
- Dundas Charting (ASP.NET Pro)
(This is a recently re-built PC, so registry should be pretty clean.)
I'm following the steps outlined in the WSE Documentation for configuring a
web service.
I created a new project of type "ASP.NET Web Service Application".
For this project, I right-clicked it in Solution Explorer and selected "WSE
Settings 3.0..."
In the WSE dialogue, I checked the box to enable WSE on the project.
At this point, the checkbox for "Enable Microsoft Web Services Enhancements
Soap Protocol Factory" is greyed out.
Have I missed something? Is there some sort of configuration conflict in
the add-ons for VS? Or is the WSE settings just flaky?
I'm using VB.NET as the preferred language, but I have tried using the C#
version of a web service, with the same problem.
I have read the posting in this group by Tony Girgenti ("RE: Need help with
... SoapContext error" 15/02/2007 21:52), which seems to cover a similar
issue, except he seems to have successfuly been able to check the soap
protocol box when he created a new blank web service project. I can't seem
to even get this.
Any pointers would be greatly appreciated.
Alec
camainc - 09 Mar 2007 15:02 GMT
Alec,
I'm new to this too, and I still haven't been able to get MTOM to
work, but I have been able to get web services to work without MTOM.
I assume you downloaded the WSE 3.0 Enhancements from MS:
http://www.microsoft.com/downloads/details.aspx?familyid=018a09fd-3a74-43c5-8ec1
-8d789091255d&displaylang=en
Did you try running the some of the sample projects that came with
that? If you did, were you able to run them successfully?
On Mar 8, 7:32 am, "Alec MacLean" <alec.macl...@NO-SPAM-copeohs.com>
wrote:
> Hi,
>
[quoted text clipped - 38 lines]
>
> Alec
Alec MacLean - 04 Apr 2007 11:41 GMT
Sorry for delay in reply - the checkbox for Enable SOAP Factory is enabled
when I open one of the provided Quick start example solutions, so I'm
guessing it is a configuration issue of the solution I'm trying to create.
However, when I try to create a totally new Web Service project using the
new project wizard and selecting "ASP.NET Web Service Application", the
checkbox is still disabled.
I guess I can work around it by manually configuring the config files by
learning from the Quick Starts, but it is a bit frustrating that an MS
product doesn't seem to operate as expected within it's own environment.
<sigh>
Al
> Alec,
>
[quoted text clipped - 58 lines]
>>
>> Alec
Alec MacLean - 13 Apr 2007 09:26 GMT
Hello again.
After a little further experimention last weekend - I was following the
Hands On Lab for Security - I happened to find that the issue of whether the
SOAP Protocol Factory checkbox is enabled or not is determined by the type
of web project you choose when you create the project.
When starting a new Web Service project, if you use the "New Web Site"
toolbar button instead of the "New Project" toolbar button, you get to
choose from a different set of project types for web-based projects.
The reason for this is that after installing the WAP add-in or VS2005-SP1
(WAP is now included as standard as part of VS2005-SP1), the New Project
dialog version of creating a web service will create an "ASP.NET Web Service
Application", (note the additional word "Application" here is an important
distinguishment) which will consequently create the project using the WAP
settings - that is, allowing precompilation of the DLL like VS2003 does
rather than compile on first access to the site.
For some reason the WAP settings disable the ability of the WSE 3 Settings
dialogue to control the web.config file sufficiently for adding the SOAP
Protocol Factory, although you can still enable the project for using WSE-3.
I don't know if this is by design or accident - perhaps someone with greater
knowledge on the subject could let us know about this aspect?
If instead you choose the "New Web Site" option from the toolbar, you can
choose the "ASP.NET Web Service" option (note, no "Application" in the
description this time). This project template then allows the WSE Settings
dialogue to work as expected.
Due to other project commitments, I have not yet managed to get time to
determine if by simply manually editing the web.config file to add the
protocol factory settings this will enable them correctly for use under a WS
Application version project, or whether it has some detrimental effect hence
why the checkbox gets disabled.
I hope this helps anyone else scratching their heads trying to get this
(potentially great) free toolkit working!
Regards,
Alec