Groups | Blog | Home
all groups > dotnet web services enhancements > january 2005 >

dotnet web services enhancements : Can't instantiate WSE Service class.


Ken Varn
1/28/2005 11:25:29 AM
I created a sample WSE Service using the DIME image example in the WSE SDK.
I am basically trying to send an image using DIME attachments.

I am calling the web service from a Win Form control that I have embedded in
an ASP.NET web form. For some reason, when I try to instantiate the WSE
Service using new, I get a SecurityException thrown. I am trying to do this
on my localhost.

Example:

private void MyFunc()
{
MyWSEService Serv;

Serv = new MyWSEService(); // Exception thrown here.
}

If I just instantiate the service without WSE extensions, it works fine.

Can someone tell me what I need to do to get this exception to go away?



--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------

Martin Kulov
1/29/2005 6:16:57 PM
Hi Ken,

What is your exception?
I think you should use the Wse version of the proxy class i.e.
MyWSEServiceWse class.


--
Martin Kulov
http://www.codeattest.com

MCAD Charter Member
MCSD.NET Early Achiever
MCSD




[quoted text, click to view]
Ken Varn
1/31/2005 8:33:13 AM
I get a SecurityException. All it says for the message is "Security
Exception". I finally tried using CASPOL to disable security, and it seems
to work. I just don't understand why the WSE Web Service instance required
this, but the regular non WSE Web Service does not.

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
[quoted text, click to view]

AddThis Social Bookmark Button