473,406 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

WebService Namespace

Is there a way to configure a WebService Namespace in a config file that can
be set (i.e. [WebService(Namespace = "http://tempuri.org/")] to
[WebService(Namespace = Properties.Settings.WebServiceNamespace)])? I have
a webservice that I might need to configure/move on multiple different
servers but from what I can tell, the Namespace must be compiled into the
assembly or use the default http://tempuri.org/. This seams very limiting
from a load balancing standpoint. If this is possible, is what needs to be
done on the client side also????
Aug 14 '06 #1
7 1831
"Techno_Dex" <no**********@osi-corp.comwrote in message
news:O9**************@TK2MSFTNGP06.phx.gbl...
Is there a way to configure a WebService Namespace in a config file that
can be set (i.e. [WebService(Namespace = "http://tempuri.org/")] to
[WebService(Namespace = Properties.Settings.WebServiceNamespace)])? I
have a webservice that I might need to configure/move on multiple
different servers but from what I can tell, the Namespace must be compiled
into the assembly or use the default http://tempuri.org/. This seams
very limiting from a load balancing standpoint. If this is possible, is
what needs to be done on the client side also????
The namespace is just that - a space containing names. It has nothing to do
with a URL. You could as easily use urn:org.tempuri.

You don't need to change the namespace when you change the server your
service is deployed on.

For the future, consider: if it was necessary to change the namespace, then
everyone would have to do it, and there'd be an easier way!

John
Aug 14 '06 #2
This is exactly the reason for my question, as I did change the namespace to
something other than tempuri.org and deployed both the webservice and the
client which uses it, but I was receiving errors. As soon as I changed it
back and redeployed, Problem gone..... Any other suggestions?

"John Saunders" <john.saunders at trizetto.comwrote in message
news:uP**************@TK2MSFTNGP03.phx.gbl...
"Techno_Dex" <no**********@osi-corp.comwrote in message
news:O9**************@TK2MSFTNGP06.phx.gbl...
>Is there a way to configure a WebService Namespace in a config file that
can be set (i.e. [WebService(Namespace = "http://tempuri.org/")] to
[WebService(Namespace = Properties.Settings.WebServiceNamespace)])? I
have a webservice that I might need to configure/move on multiple
different servers but from what I can tell, the Namespace must be
compiled into the assembly or use the default http://tempuri.org/. This
seams very limiting from a load balancing standpoint. If this is
possible, is what needs to be done on the client side also????

The namespace is just that - a space containing names. It has nothing to
do with a URL. You could as easily use urn:org.tempuri.

You don't need to change the namespace when you change the server your
service is deployed on.

For the future, consider: if it was necessary to change the namespace,
then everyone would have to do it, and there'd be an easier way!

John


Aug 15 '06 #3
"Techno_Dex" <no**********@osi-corp.comwrote in message
news:Ow**************@TK2MSFTNGP05.phx.gbl...
This is exactly the reason for my question, as I did change the namespace
to something other than tempuri.org and deployed both the webservice and
the client which uses it, but I was receiving errors. As soon as I
changed it back and redeployed, Problem gone..... Any other suggestions?
If you'll include the error messages, perhaps someone can help you. But it
has nothing to do with the match between namespace and hosting URL.

John

"John Saunders" <john.saunders at trizetto.comwrote in message
news:uP**************@TK2MSFTNGP03.phx.gbl...
>"Techno_Dex" <no**********@osi-corp.comwrote in message
news:O9**************@TK2MSFTNGP06.phx.gbl...
>>Is there a way to configure a WebService Namespace in a config file that
can be set (i.e. [WebService(Namespace = "http://tempuri.org/")] to
[WebService(Namespace = Properties.Settings.WebServiceNamespace)])? I
have a webservice that I might need to configure/move on multiple
different servers but from what I can tell, the Namespace must be
compiled into the assembly or use the default http://tempuri.org/.
This seams very limiting from a load balancing standpoint. If this is
possible, is what needs to be done on the client side also????

The namespace is just that - a space containing names. It has nothing to
do with a URL. You could as easily use urn:org.tempuri.

You don't need to change the namespace when you change the server your
service is deployed on.

For the future, consider: if it was necessary to change the namespace,
then everyone would have to do it, and there'd be an easier way!

John



Aug 15 '06 #4
Server did not recognize the value of HTTP Header SOAPAction.

"John Saunders" <john.saunders at trizetto.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
"Techno_Dex" <no**********@osi-corp.comwrote in message
news:Ow**************@TK2MSFTNGP05.phx.gbl...
>This is exactly the reason for my question, as I did change the namespace
to something other than tempuri.org and deployed both the webservice and
the client which uses it, but I was receiving errors. As soon as I
changed it back and redeployed, Problem gone..... Any other suggestions?

If you'll include the error messages, perhaps someone can help you. But it
has nothing to do with the match between namespace and hosting URL.

John

>"John Saunders" <john.saunders at trizetto.comwrote in message
news:uP**************@TK2MSFTNGP03.phx.gbl...
>>"Techno_Dex" <no**********@osi-corp.comwrote in message
news:O9**************@TK2MSFTNGP06.phx.gbl...
Is there a way to configure a WebService Namespace in a config file
that can be set (i.e. [WebService(Namespace = "http://tempuri.org/")]
to [WebService(Namespace = Properties.Settings.WebServiceNamespace)])?
I have a webservice that I might need to configure/move on multiple
different servers but from what I can tell, the Namespace must be
compiled into the assembly or use the default http://tempuri.org/. This
seams very limiting from a load balancing standpoint. If this is
possible, is what needs to be done on the client side also????

The namespace is just that - a space containing names. It has nothing to
do with a URL. You could as easily use urn:org.tempuri.

You don't need to change the namespace when you change the server your
service is deployed on.

For the future, consider: if it was necessary to change the namespace,
then everyone would have to do it, and there'd be an easier way!

John




Aug 15 '06 #5
"Techno_Dex" <no**********@osi-corp.comwrote in message
news:uS****************@TK2MSFTNGP03.phx.gbl...
Server did not recognize the value of HTTP Header SOAPAction.
Try putting quotes around the SOAPAction. Also, try doing without it by
using:

[SoapDocumentService(
SoapBindingUse.Literal,
SoapParameterStyle.Bare,
RoutingStyle = SoapServiceRoutingStyle.RequestElement) // ws-i Basic Profile
1.1 Requirement R1109
]
>John Saunders" <john.saunders at trizetto.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>"Techno_Dex" <no**********@osi-corp.comwrote in message
news:Ow**************@TK2MSFTNGP05.phx.gbl...
>>This is exactly the reason for my question, as I did change the
namespace to something other than tempuri.org and deployed both the
webservice and the client which uses it, but I was receiving errors. As
soon as I changed it back and redeployed, Problem gone..... Any other
suggestions?

If you'll include the error messages, perhaps someone can help you. But
it has nothing to do with the match between namespace and hosting URL.

John

>>"John Saunders" <john.saunders at trizetto.comwrote in message
news:uP**************@TK2MSFTNGP03.phx.gbl...
"Techno_Dex" <no**********@osi-corp.comwrote in message
news:O9**************@TK2MSFTNGP06.phx.gbl...
Is there a way to configure a WebService Namespace in a config file
that can be set (i.e. [WebService(Namespace = "http://tempuri.org/")]
to [WebService(Namespace = Properties.Settings.WebServiceNamespace)])?
I have a webservice that I might need to configure/move on multiple
different servers but from what I can tell, the Namespace must be
compiled into the assembly or use the default http://tempuri.org/.
This seams very limiting from a load balancing standpoint. If this is
possible, is what needs to be done on the client side also????

The namespace is just that - a space containing names. It has nothing
to do with a URL. You could as easily use urn:org.tempuri.

You don't need to change the namespace when you change the server your
service is deployed on.

For the future, consider: if it was necessary to change the namespace,
then everyone would have to do it, and there'd be an easier way!

John




Aug 16 '06 #6
Again, I'm not explicitly setting the SOAPAction anywhere, the only think I
changed was the WebNamespace which broke the service, so I changed it back
and the problem was resolved.... Next idea?

"John Saunders" <john.saunders at trizetto.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
"Techno_Dex" <no**********@osi-corp.comwrote in message
news:uS****************@TK2MSFTNGP03.phx.gbl...
>Server did not recognize the value of HTTP Header SOAPAction.

Try putting quotes around the SOAPAction. Also, try doing without it by
using:

[SoapDocumentService(
SoapBindingUse.Literal,
SoapParameterStyle.Bare,
RoutingStyle = SoapServiceRoutingStyle.RequestElement) // ws-i Basic
Profile 1.1 Requirement R1109
]
>>John Saunders" <john.saunders at trizetto.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl.. .
>>"Techno_Dex" <no**********@osi-corp.comwrote in message
news:Ow**************@TK2MSFTNGP05.phx.gbl...
This is exactly the reason for my question, as I did change the
namespace to something other than tempuri.org and deployed both the
webservice and the client which uses it, but I was receiving errors.
As soon as I changed it back and redeployed, Problem gone..... Any
other suggestions?

If you'll include the error messages, perhaps someone can help you. But
it has nothing to do with the match between namespace and hosting URL.

John
"John Saunders" <john.saunders at trizetto.comwrote in message
news:uP**************@TK2MSFTNGP03.phx.gbl...
"Techno_Dex" <no**********@osi-corp.comwrote in message
news:O9**************@TK2MSFTNGP06.phx.gbl.. .
>Is there a way to configure a WebService Namespace in a config file
>that can be set (i.e. [WebService(Namespace = "http://tempuri.org/")]
>to [WebService(Namespace =
>Properties.Settings.WebServiceNamespace)])? I have a webservice that
>I might need to configure/move on multiple different servers but from
>what I can tell, the Namespace must be compiled into the assembly or
>use the default http://tempuri.org/. This seams very limiting from a
>load balancing standpoint. If this is possible, is what needs to be
>done on the client side also????
>
The namespace is just that - a space containing names. It has nothing
to do with a URL. You could as easily use urn:org.tempuri.
>
You don't need to change the namespace when you change the server your
service is deployed on.
>
For the future, consider: if it was necessary to change the namespace,
then everyone would have to do it, and there'd be an easier way!
>
John
>
>




Aug 16 '06 #7
"Techno_Dex" <no**********@osi-corp.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Again, I'm not explicitly setting the SOAPAction anywhere, the only think
I changed was the WebNamespace which broke the service, so I changed it
back and the problem was resolved.... Next idea?
You must have a mismatch between which namespace is being sent and which is
being received.

Also, although you may not be explicitly sending the SOAPaction, _something_
appears to be sending it, and you might want to find out what's going out on
the wire.

John
>
"John Saunders" <john.saunders at trizetto.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>"Techno_Dex" <no**********@osi-corp.comwrote in message
news:uS****************@TK2MSFTNGP03.phx.gbl...
>>Server did not recognize the value of HTTP Header SOAPAction.

Try putting quotes around the SOAPAction. Also, try doing without it by
using:

[SoapDocumentService(
SoapBindingUse.Literal,
SoapParameterStyle.Bare,
RoutingStyle = SoapServiceRoutingStyle.RequestElement) // ws-i Basic
Profile 1.1 Requirement R1109
]
>>>John Saunders" <john.saunders at trizetto.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl. ..
"Techno_Dex" <no**********@osi-corp.comwrote in message
news:Ow**************@TK2MSFTNGP05.phx.gbl...
This is exactly the reason for my question, as I did change the
namespace to something other than tempuri.org and deployed both the
webservice and the client which uses it, but I was receiving errors.
As soon as I changed it back and redeployed, Problem gone..... Any
other suggestions?

If you'll include the error messages, perhaps someone can help you. But
it has nothing to do with the match between namespace and hosting URL.

John
"John Saunders" <john.saunders at trizetto.comwrote in message
news:uP**************@TK2MSFTNGP03.phx.gbl.. .
>"Techno_Dex" <no**********@osi-corp.comwrote in message
>news:O9**************@TK2MSFTNGP06.phx.gbl. ..
>>Is there a way to configure a WebService Namespace in a config file
>>that can be set (i.e. [WebService(Namespace =
>>"http://tempuri.org/")] to [WebService(Namespace =
>>Properties.Settings.WebServiceNamespace)])? I have a webservice that
>>I might need to configure/move on multiple different servers but
>>from what I can tell, the Namespace must be compiled into the
>>assembly or use the default http://tempuri.org/. This seams very
>>limiting from a load balancing standpoint. If this is possible, is
>>what needs to be done on the client side also????
>>
>The namespace is just that - a space containing names. It has nothing
>to do with a URL. You could as easily use urn:org.tempuri.
>>
>You don't need to change the namespace when you change the server
>your service is deployed on.
>>
>For the future, consider: if it was necessary to change the
>namespace, then everyone would have to do it, and there'd be an
>easier way!
>>
>John
>>
>>
>
>




Aug 16 '06 #8

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

Similar topics

1
by: Michael | last post by:
Hi I anyone have a clue or can solve my problem I would be glad :-) Regards Michael I have a problem with creating an XML-document where the returning data from the webservice, have been...
0
by: Thijs | last post by:
Hi, I am developing both a webservice and a Windows Forms webservice client. After I've deployed my webservice to the webserver I update my webservice reference in my client application, but the...
4
by: Flare | last post by:
OK. I'll try explain my problem so simple as possible. I have to send a complex data type to a WebService from a Asp.net webapplication. My Data type look like this. (A class with a porperty)...
7
by: stephan querengaesser | last post by:
hi ng, i try to invoke a webservice-method with an filter-object, that contains value types. if i donīt want to filter the return value of the method, i have to pass a new instance of the...
7
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type...
2
by: leonard.guillaume | last post by:
Hi again guys, I configured my MFC project so that it can call few webservices I made. The web services are in VB.Net and are using few namespace such as WebClientProtocol which I need in MFC....
2
by: Jannicke | last post by:
Hi. I have a project that contains a webservice. To test my webservice I have another class in the same project. In the project I have added a webreference to my webservice. In my class file i call...
3
by: huohaodian | last post by:
I have a webservice class MyService.asmx.cs with: namespace XMLWS { public class Poster : System.Web.Services.WebService
1
by: gihan | last post by:
Hi, I have a problem accessing remote webservice from my asp code. Instead of returning results, it returns list of web methods it has. Wonder where i'm doing wrong. Also note that, this is a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.