I need opinions regarding Web Service Namespace usage and/or suggestions
regarding how to handle deployment.
Our web service application will exist in two different domains and is
likely to exist in multiple domains. There is a prevailing opinion here at
my office that the Web Service Namespace should match the domain where it is
installed. From what I have read, the Namespace simply needs to be unique
and does not necessarily need to match the domain name where the service
resides. Regardless, the decision has been made that the Namespace is to
match the domain it is installed.
Given that edict, our department has directed me to figure out how to
configure the Namespace dependent upon its installed domain name. For
example, they would like to put an entry into the Web.config file that would
determine the Namespace for the Web Service. Ideally, the Web Service
application could read the Web.config file to obtain the Namespace value and
assign this to the WebService() attribute.
[WebService(Name space="http://www.mydomain.co m/myws")]
[WebService(Name space="http://www.myotherdoma in.com/myws")]
Despite the edict, I have no idea how to do this. As far as I can tell, the
Attribute for the Namespace is hardcoded, it is a constant that is compiled
into the service, it is static and unchanging once the application is built.
I did try to assign a variable to the attribute—fro m a value which I tried to
retrieve from the Web.config file with the following statement:
[WebService(Name space=Configura tionSettings.Ap pSettings["ServiceNamespa ce"])].
However (and not too surprisingly), I received an error from Visual Studio
that it expected a constant.
My questions are:
1. Is there anyway to base the namespace name upon a value that is only
defined at run time?
2. Are there any other suggestions regarding how to handle this issue?
The only other way I can think of handling this is to make separate builds,
one for each domain it is installed, which management has ruled is out of the
question. Any help regarding this matter will be greatly appreciated.
Thanks.
--Charles Leonard 0 2830 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Nathan Kovac |
last post by:
I have a feeling I am missing something simple, but I just can't find it.
Perhaps someone can give me a lead on where to look. I will describe the
issue then post my code to the web service. My issue is simply getting
timers to work. I have a DatabaseManager.DataManagerFacade which contains a
timer. Every 6 seconds it updates stock data using an online webservice. I
wrote have 2 possible startup projects to make the service work. One...
|
by: Paul Michaud |
last post by:
Consider the following:
Class A
{
....
}
Class B:A
{
....
|
by: Railinc |
last post by:
Hi...
I'm trying to write a web service client and am running into a problem with
getting a response back from the server. I know that a full xml message is
being returned (thanks to a tcp/ip sniffer) but in VS.NET all I get is a null
reference.
The server is a java program running on websphere. The provider of the web
service has gotten a websphere client and an apache axis client to work
correctly, so I don't think it's a problem...
|
by: Richard Collette |
last post by:
Hi,
I have a service, that runs perfectly when executed outside of the web
service environment. When called as a web service I get the exception
listed below sporadically. A call to the web method may succeed one time and
not another. I cannot find any reason why it would work one time and not
another. The exception occurs every two or three calls to the web method.
The service utilizes a COM component provided by PeopleSoft...
|
by: ben |
last post by:
OK so there are a few things going on. I succesfully created a SOAP
webreference in VS IDE which when built works fine under small amounts
of load, however under heavy amounts of load we start to see a
performance issue on the J2EE (CPU utilisation max's out) the load
testing tool can hit the web service directly using HTTP posts and for
the same amount of load the webservice performs considerably better. So
the JAVA guys have asked me if...
| |
by: David R |
last post by:
This is a repost, with additional information. I have a Net 2.0 client (C#
Winform) calling an Axis web service. The .NET client can authenticate,
create requested objects, serialize the objects and send. These are received
without issue on the Axis server. The .NET client can also receive responses
from the Axis web service when the response is a single value type (long,
string, etc), or an array of value types.
However if an object...
|
by: Doogie |
last post by:
You know they say there is no such thing as a dumb question? This
might be the exception...I'm not sure. :)
In VS.NET 2003, if you create a web service it is namespaced like so:
namespace WebService156
{
...
}
|
by: =?Utf-8?B?UGllcnJl?= |
last post by:
Hello,
I have a .NET 2.0 web service that is consumed by a Delphi application.
The Delphi application calls a method from the .NET web service with
parameters.
Theses parameters are in the call message, which we can see through a HTTP
proxy. But the ASP.NET application does not received the parameter values, it
recevices only null values.
When tagging the ASP.NET method parameters with
|
by: dm3281 |
last post by:
I'm really starting to hate writing services -- or trying to, anyway.
Why do I need to rename my project to the service name?
Why do I need to set the "ServiceName" property to my service name?
Why do I need to set a property within my code to the service name?
Are all these required or am I just doing this for consistency purposes?
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |