all groups > dotnet web services > november 2006 >
You're in the

dotnet web services

group:

how can i dynamicly change SoapDocumentMethodAttribute??


how can i dynamicly change SoapDocumentMethodAttribute?? alfa
11/20/2006 3:08:01 AM
dotnet web services:
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.SoapDocumentMethodAttribute("http://tempuri.org/GetMainvalue",
RequestNamespace:="http://tempuri.org/",
ResponseNamespace:="http://tempuri.org/",
Use:=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)>

Thanks Wim

RE: how can i dynamicly change SoapDocumentMethodAttribute?? alfa
11/20/2006 3:10:01 AM
Forgot to say

i'm using the Compact Framework (vs2003)
Re: how can i dynamicly change SoapDocumentMethodAttribute?? alfa
11/21/2006 10:24:02 AM
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


[quoted text, click to view]
Re: how can i dynamicly change SoapDocumentMethodAttribute?? John Saunders
11/21/2006 10:31:19 AM
[quoted text, click to view]

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

AddThis Social Bookmark Button