(note: orginally posted to the dotnet.framework.webservices.enhancements
folks - thought this group may have more experience in this area. Ta, Laura.)
Hi,
I have created a secure Web Service via WSE with the use of WS-Policy. The
Web Service has been tested using a .NET client Console Application and
everything works.
However, the Web Service needs to be called from a VB6 application (running
on Win2K/XP). I re-created the client console application as a .NET dll.
Using .NET/COM Interop I installed the class library in the GAC and executed
regasm.exe with the /tlb and /codebase options (registered the type libraries
for the .NET assembly). I tried calling the .NET dll from VB6 and the
following
error was reported back:
System.Web.Services.Protocols.SoapHeaderException: WSE402: The message does
not conform to the policy it was mapped to.
It *appears* that the .NET dll was unable to see/use the app.config and
policyCache.config files and thus the call to the web service failed (btw,
the
..NET dll uses the same policyCache.config file as per the console (which
worked) i.e. this is not a policy issue).
How can I get the .NET dll to read the config files when invoked by a VB6
application? Is there a round-about hack?
Many Thanks,
Laura Papez.
N.B. project developed using VB.NET, ASP.NET, & WSE 2.0 SP2 (policies and
X.509
certificates) on XP.