Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Webservices namespace- What does it do?

Reply
Thread Tools

Webservices namespace- What does it do?

 
 
RobGSCL
Guest
Posts: n/a
 
      10-25-2006
I have three questions about the namespace parameter of a webservice:

What does it do?

Is it necessary for it to be unique?

Is there a way to modify it at runtime? I'll be deploying an app at
multiple locations and I don't want to have to recompile every time we
implement.

TIA
Rob

 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      10-25-2006
The WebService Namespace (as identified by the compiler attribute) looks
like a URL, but does not need to represent (in its entirety) a REAL
browseable resource on your organization's web server. It is not meant to
reflect the location the webservice is being served from and should remian
static.

It is used in conjunction with the XML data that will be sent to and
returned from the WebService. Since XML tags can be made up, we need a way
to "group" tags into logical containers. Just like .NET makes use of
Namespaces to group, organize and prevent naming collisions of classes, XML
uses Namespaces to do the same for XML markup. The format of an XML
namespace, however, takes the form of something that we know to be unique to
us (because if we just made up a word for our namespace name, it is possible
that others could inadvertently come up with the same term. So, we make a
namespace name from our company or organization's URL. Why in the world
would widget.com use "http://acme.com" in their namespace names? Well, they
wouldn't. Since our domain name is guaranteed to be unique in the world, we
START (key word here - START) our namespace off with our domain name. But
then, we add more to that (and this is the part to be clear on) that is
completely made up. So the whole URL becomes something that may not really
exist on the web, but that doesn't matter, because we're not trying to
browse to that address. We're just trying to identify our XML markup in a
way that no one else would.

For example: http://wallStreetMillionaires.com/services/stockQuote may
contain an XML tag called "string" and
http://dotComMillionaires.com/services/realTimeQuote might also contain an
XML tag called "string", but we'd now have a way to know who's "string" is
who's. But, we don't need to browse to either address, nor is our code
going to attempt to resolve those addresses. They're just names for our
tags.

Hope this helps.

-Scott


"RobGSCL" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
>I have three questions about the namespace parameter of a webservice:
>
> What does it do?
>
> Is it necessary for it to be unique?
>
> Is there a way to modify it at runtime? I'll be deploying an app at
> multiple locations and I don't want to have to recompile every time we
> implement.
>
> TIA
> Rob
>



 
Reply With Quote
 
 
 
 
John Saunders
Guest
Posts: n/a
 
      10-25-2006
"Scott M." <(E-Mail Removed)> wrote in message
news:eAOjQf%(E-Mail Removed)...
> The WebService Namespace (as identified by the compiler attribute) looks
> like a URL, but does not need to represent (in its entirety) a REAL
> browseable resource on your organization's web server. It is not meant to
> reflect the location the webservice is being served from and should remian
> static.


In fact, it looks like a URL because it's a URN, and every URL is a URN.

You can also use something like urn:myService.myApplication.company.com.
That makes it clear that you're not describing the location of some file on
the Internet.

John


 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      10-26-2006
Actually, it looks like a URL because it is a URI (Uniform Resource
Indicator), not a URN, and every URL is a URI. URN's (Uniform Resource
Names) look very different from URL's (Uniform Resource Locator).

The World Wide Web Consortium standard for XML namespace names says that the
namespace should take the form of a URI (which both URL's and URN's are).



"John Saunders" <john.saunders at trizetto.com> wrote in message
news:eDVJghO%(E-Mail Removed)...
> "Scott M." <(E-Mail Removed)> wrote in message
> news:eAOjQf%(E-Mail Removed)...
>> The WebService Namespace (as identified by the compiler attribute) looks
>> like a URL, but does not need to represent (in its entirety) a REAL
>> browseable resource on your organization's web server. It is not meant
>> to reflect the location the webservice is being served from and should
>> remian static.

>
> In fact, it looks like a URL because it's a URN, and every URL is a URN.
>
> You can also use something like urn:myService.myApplication.company.com.
> That makes it clear that you're not describing the location of some file
> on the Internet.
>
> John
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How does SOAP work with ASP / webservices? Dr. Frankenchurn ASP .Net 1 02-25-2004 09:39 PM
PIX 515 Can Ping Out-to-In but not any webservices getting out-to-in Johnny Davis Cisco 6 01-19-2004 05:33 PM
Re: Events in HTML throught webservices... David Waz... ASP .Net 0 07-11-2003 06:37 PM
Re: Events in HTML throught webservices... Colt [MVP] ASP .Net 1 07-11-2003 05:30 AM
Webservices and OLE object jib ASP .Net 0 07-08-2003 03:10 PM



Advertisments