473,466 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Apply WSE client policy to class library instead of appliation

I want to call my web service from a class library and have that library
handle all the wse stuff, so that applications using that library don't have
to worry about it.

Is that possible?

I've tried by creating and applying the correct policy to a class library
that I created. The application project doesn't have any wse settings (no
policy,etc) on it. Then I try calling the class library method from the
application.

When the code steps into the client library and tries to set the policy on
the service, it complains that it can't find the policy. Even though the
policy is clearly in the wse3policyCache.config file.

If I then go add the same policy to the application itself, then it works.
It's like the wse client stuff has to be applied to the calling application
itself and not some component it might be using.

Any ideas?
Nov 11 '06 #1
2 1705
Is the wse3 config located with the client? I understand what you want to
achieve, and think it would be novel if you get it working. I'm assuming
that when you made the class library, a wse3policyCache.config was generated
in the project.

Ron

"Steve" <St***@discussions.microsoft.comwrote in message
news:FB**********************************@microsof t.com...
>I want to call my web service from a class library and have that library
handle all the wse stuff, so that applications using that library don't
have
to worry about it.

Is that possible?

I've tried by creating and applying the correct policy to a class library
that I created. The application project doesn't have any wse settings (no
policy,etc) on it. Then I try calling the class library method from the
application.

When the code steps into the client library and tries to set the policy on
the service, it complains that it can't find the policy. Even though the
policy is clearly in the wse3policyCache.config file.

If I then go add the same policy to the application itself, then it works.
It's like the wse client stuff has to be applied to the calling
application
itself and not some component it might be using.

Any ideas?

Nov 11 '06 #2
Yeah, the class library generated a nice wse3policyCache.config. I tried
copying that and the MyLibrary.dll.config file into the folder with the
client but no luck.

It looks like the actual client exe is the one that parses the config files
and loads policies, so if that app doesn't have wse set on it, it won't parse
and wse3 config files.

I guess if what I'm trying to do is novel, then it's not an ordinary
request. I was thinking maybe I was just missing something simple.

We're building a library that will be used by another application as a "plug
in". Meaning we don't have control over the client exe and can't apply wse
to it. So I guess we'll have to create a console app that has wse on it and
then have our library shell out and call that and then..........ugh.
"RYoung" wrote:
Is the wse3 config located with the client? I understand what you want to
achieve, and think it would be novel if you get it working. I'm assuming
that when you made the class library, a wse3policyCache.config was generated
in the project.

Ron

"Steve" <St***@discussions.microsoft.comwrote in message
news:FB**********************************@microsof t.com...
I want to call my web service from a class library and have that library
handle all the wse stuff, so that applications using that library don't
have
to worry about it.

Is that possible?

I've tried by creating and applying the correct policy to a class library
that I created. The application project doesn't have any wse settings (no
policy,etc) on it. Then I try calling the class library method from the
application.

When the code steps into the client library and tries to set the policy on
the service, it complains that it can't find the policy. Even though the
policy is clearly in the wse3policyCache.config file.

If I then go add the same policy to the application itself, then it works.
It's like the wse client stuff has to be applied to the calling
application
itself and not some component it might be using.

Any ideas?


Nov 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Terence Shek | last post by:
Is there a way to set the application binding policy so that it always binds to the latest version of an assembly? I'm hoping there is a way to avoid updating the application's binding...
9
by: Martin Vorbrodt | last post by:
I'm designing a Matrix class of 4x4 matrices used in computer graphics. Both OpenGL and Direct3D can take a pointer to array of 16 floats which represent the values in the matrix. OGL takes it in...
4
by: Matt Frame | last post by:
I am working on a special ASP.Net application that receives files from customers. The connection is made via HTTPS and the client sends the file as a POST to my ASP.Net listener. All of this...
0
by: aaragon | last post by:
Hi everyond. I'm trying to write a library usign policy based design so I can implement different behaviors. One of the behaviors was to define a StoragePolicy. The following code gives the...
12
by: SAL | last post by:
Hello, Is it possible to read a CSV from the Client, and bind my Datagrid to the data in the CSV file without uploading the file to the Server first? I have tried and in Debug mode on my...
3
by: =?Utf-8?B?R3JlZyBN?= | last post by:
Hello, I'm running an asp.net, intranet web application using .net framework 1.1 on IIS5.1 / 6.0. Through the web application, I would like to press a button on the web page, have another window...
2
by: Wimpie van Lingen | last post by:
Hey I have some more questions with regards to Remoting in .NET 2. I'm using TCP with the Binary formatter. My solution consists of 4 projects: - Class Library containing the server classes...
3
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Hi everybody, I'm facing a problem to run an appliation in a shared network drive. The application is developed in VB2005. I understand I have to add a signature with strong name key to all...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.