473,385 Members | 1,764 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,385 software developers and data experts.

how can i dynamicly change SoapDocumentMethodAttribute??

Hi,
i'm new using webservices..
how can i change the "http://tempuri.org/" part of the
SoapDocumentMethodAttribute without reprogramming for each new customer (or
changing URI).

in other words :
I want to build just one porgram and change the "Action, RequestNamespace,
ResponseNamespace" ("http://tempuri.org/") address . for the different
customers by using the settings stored in a XMLfile or DataTable.

<System.Web.Services.Protocols.SoapDocumentMethodA ttribute("http://tempuri.org/GetMainvalue",
RequestNamespace:="http://tempuri.org/",
ResponseNamespace:="http://tempuri.org/",
Use:=System.Web.Services.Description.SoapBindingUs e.Literal,
ParameterStyle:=System.Web.Services.Protocols.Soap ParameterStyle.Wrapped)>

Thanks Wim
Nov 20 '06 #1
3 4437
Forgot to say

i'm using the Compact Framework (vs2003)

Nov 20 '06 #2
"alfa" <al**@discussions.microsoft.comwrote in message
news:65**********************************@microsof t.com...
Hi,
i'm new using webservices..
how can i change the "http://tempuri.org/" part of the
SoapDocumentMethodAttribute without reprogramming for each new customer
(or
changing URI).
alfa,

That's not really a URL, per se. It's just a string to disambiguate names -
it's a namespace.

You should change it to something unique within your organization. Perhaps
"urn:service.application.company.com". Note that the "urn:" format is as
acceptable as the url format.

Therefore, you don't have to change the URL because it isn't a URL. It does
not identify any resource on the network, so you don't have to change it
when the resource moves.

John
Nov 21 '06 #3
Thanks a lot,
So i only should have a ASMX file at the the other side..
i go find find out this chalange futher.

Wim
"John Saunders" wrote:
"alfa" <al**@discussions.microsoft.comwrote in message
news:65**********************************@microsof t.com...
Hi,
i'm new using webservices..
how can i change the "http://tempuri.org/" part of the
SoapDocumentMethodAttribute without reprogramming for each new customer
(or
changing URI).

alfa,

That's not really a URL, per se. It's just a string to disambiguate names -
it's a namespace.

You should change it to something unique within your organization. Perhaps
"urn:service.application.company.com". Note that the "urn:" format is as
acceptable as the url format.

Therefore, you don't have to change the URL because it isn't a URL. It does
not identify any resource on the network, so you don't have to change it
when the resource moves.

John
Nov 21 '06 #4

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

Similar topics

1
by: Allaigre David | last post by:
I'm trying to retreive some information from the querystring. The web site is as default configure in "utf-8". But on only one page i need to change dynamicly the contentEncoding to retreive...
2
by: Programmer | last post by:
Hi all How can I add a text object on an Crystal Report dynamicly??? I have an aspx page that loads the report but i cant find the methods to insert new Items on the rpt Can anyone help me...
2
by: FAN | last post by:
I want to define some function in python script dynamicly and call them later, but I get some problem. I have tried the following: ################################## # code...
1
by: paula | last post by:
I've got a problem with asp.net i am trying to make a menu control. and have searched the web for serveral controls but they don't work correctly. I am pretty new to asp.net building. What am i...
2
by: Jelle van Baardewijk | last post by:
Can anyone tell me how to to create a control instance dynamicly. Example: When I have a string value with the value 'TextBox'. I want to create a TextBox instance. I know that i can do the...
5
by: Henke | last post by:
Hi! I add some web user controls dynamicly with: myPanel.Controls.Add(Page.LoadControl("MyDynamiclyAddedPage.ascx")); the style of the controls on the user control is set from a css-class, by...
0
by: Henke | last post by:
Hi! Is there a way to change the value of the ValueToCompare property at runtime, on the client side that is? I tried this: compValidator.ValueToCompare = 1050; Page_ClientValidate(); ...
1
by: Henke | last post by:
Hi I have a aspx-page with a panel-control. On this panel control I add user controls dynamicly with LoadControl and panel.Controls.Add(myControl). On some of the dynamicly added user controls I...
3
by: Andy | last post by:
If I use Visual Studio.Net 2003 to generate "web references" for clients using either sproxy.exe (for C++) client or wsdl.exe (for C#) clients, the web service endpoint gets "baked" into the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.