Ask a Question related to ASP.NET Web Services, Design and Development.
-
Erik Cruz #1
Web services and namespaces
Hi.
VS.NETO help says the following about the webservice attribute:
"The WebServiceAttribute is not required for an XML Web service to be
published and executed. You can use the WebServiceAttribute to specify a
name for the XML Web service that is not restricted by the rules for a
common language runtime identifier, which is used in the service description
and the Service help page for the XML Web service."
I removed the WebService attribute from a web service I am writing, since
the help says that it is not necessary. When I run the web service I noticed
that the [url]http://tempuri.org[/url] namespace was used automatically. I believe
then, that the WebService attribute is necessary. What is the real role of
this attribute? What kind of problems I may have if my web service does not
have a namespace?
TIA,
Erik Cruz
Erik Cruz Guest
-
how to send objects with different namespaces to multiple Web Services
I have a problem where i would like to send the same object to 2 or more different webservices which accept objects with exactly the same... -
Namespaces in PHP5, removed?
Hi All, I read in a forum somewhere that namespaces, though once supposed to be a part of PHP5, have been removed. Is this true? Can anyone... -
How does a DLL change namespaces?
My ASP.NET web service runs fine on my local PC, and it has the namespace that I gave it. But when I upload it to my hosting company I get this... -
RubyDotNet r4 and namespaces
I grabbed the r4 release of RubyDotNet from http://www.saltypickle.com/rubydotnet, and it works great (well, on my laptop. My main PC seems to... -
Duplicate Namespaces
When I include a class (MasterData : DataSet), as a return type or an OUT argument in a Web Service I get an error "Duplicate namespace, , ". when... -
Erik Cruz #2
Re: Web services and namespaces
Hi Scott.
No problems with the syntax for designating the namespaces. I would like to
know if it is possible to create a web service without a namespace and if
so, what disadvantages or problems can I find when running the web service?
TIA,
Erik Cruz
"Scott M." <s-mar@BADSPAMsnet.net> wrote in message
news:emEt9MevDHA.3532@TK2MSFTNGP11.phx.gbl...since> The Namespace is an XML designation that you create to help organize your
> stuff. TempURI is just an example. If you look at the comments generated
> in VS.NET when you make a web service, you'll see syntax for designating
> your custom namespace.
>
>
> "Erik Cruz" <erikacf.spammers.out@antares.com.br> wrote in message
> news:%23TI3UpZvDHA.3496@TK2MSFTNGP11.phx.gbl...> description> > Hi.
> >
> > VS.NETO help says the following about the webservice attribute:
> >
> > "The WebServiceAttribute is not required for an XML Web service to be
> > published and executed. You can use the WebServiceAttribute to specify a
> > name for the XML Web service that is not restricted by the rules for a
> > common language runtime identifier, which is used in the service> > and the Service help page for the XML Web service."
> >
> > I removed the WebService attribute from a web service I am writing,of> noticed> > the help says that it is not necessary. When I run the web service I> > that the [url]http://tempuri.org[/url] namespace was used automatically. I believe
> > then, that the WebService attribute is necessary. What is the real role> not> > this attribute? What kind of problems I may have if my web service does>> > have a namespace?
> >
> > TIA,
> > Erik Cruz
> >
> >
>
Erik Cruz Guest
-
Scott M. #3
Re: Web services and namespaces
The Namespace is an XML designation that you create to help organize your
stuff. TempURI is just an example. If you look at the comments generated
in VS.NET when you make a web service, you'll see syntax for designating
your custom namespace.
"Erik Cruz" <erikacf.spammers.out@antares.com.br> wrote in message
news:%23TI3UpZvDHA.3496@TK2MSFTNGP11.phx.gbl...description> Hi.
>
> VS.NETO help says the following about the webservice attribute:
>
> "The WebServiceAttribute is not required for an XML Web service to be
> published and executed. You can use the WebServiceAttribute to specify a
> name for the XML Web service that is not restricted by the rules for a
> common language runtime identifier, which is used in the servicenoticed> and the Service help page for the XML Web service."
>
> I removed the WebService attribute from a web service I am writing, since
> the help says that it is not necessary. When I run the web service Inot> that the [url]http://tempuri.org[/url] namespace was used automatically. I believe
> then, that the WebService attribute is necessary. What is the real role of
> this attribute? What kind of problems I may have if my web service does> have a namespace?
>
> TIA,
> Erik Cruz
>
>
Scott M. Guest
-
Scott M. #4
Re: Web services and namespaces
You need to investigate XML a bit more and this will become clear. In XML,
namespaces are used to qualify and define what xml tags are what, similarly
to how in .NET, namespaces keep classes straight.
You do need a namespace for your web service and it can take the form of a
URL. You can then make up the rest. If you put it in the form of a URL
though, you can use your company's domain name (which is guaranteed by DNS
to be unique).
Namespaces for web services help not only you keep your stuff straight, they
also help the consumers of the web service understand what they are
consuming.
"Erik Cruz" <erikacf.spammers.out@antares.com.br> wrote in message
news:u1RkKKfvDHA.1424@tk2msftngp13.phx.gbl...to> Hi Scott.
>
> No problems with the syntax for designating the namespaces. I would likeservice?> know if it is possible to create a web service without a namespace and if
> so, what disadvantages or problems can I find when running the webyour>
> TIA,
> Erik Cruz
>
> "Scott M." <s-mar@BADSPAMsnet.net> wrote in message
> news:emEt9MevDHA.3532@TK2MSFTNGP11.phx.gbl...> > The Namespace is an XML designation that you create to help organizegenerated> > stuff. TempURI is just an example. If you look at the commentsa> > in VS.NET when you make a web service, you'll see syntax for designating
> > your custom namespace.
> >
> >
> > "Erik Cruz" <erikacf.spammers.out@antares.com.br> wrote in message
> > news:%23TI3UpZvDHA.3496@TK2MSFTNGP11.phx.gbl...> > > Hi.
> > >
> > > VS.NETO help says the following about the webservice attribute:
> > >
> > > "The WebServiceAttribute is not required for an XML Web service to be
> > > published and executed. You can use the WebServiceAttribute to specifybelieve> since> > description> > > name for the XML Web service that is not restricted by the rules for a
> > > common language runtime identifier, which is used in the service> > > and the Service help page for the XML Web service."
> > >
> > > I removed the WebService attribute from a web service I am writing,> > noticed> > > the help says that it is not necessary. When I run the web service I> > > that the [url]http://tempuri.org[/url] namespace was used automatically. Irole> > > then, that the WebService attribute is necessary. What is the realdoes> of> > > this attribute? What kind of problems I may have if my web service>> > not> >> > > have a namespace?
> > >
> > > TIA,
> > > Erik Cruz
> > >
> > >
> >
>
Scott M. Guest
-
Sandy #5
Re: Web services and namespaces
What would happen to a web service if the domain specified in the namespace no longer exists? Would the web service still work if there is no domain controller reference in the network for the domain name used in the namespace?
Sandy Guest



Reply With Quote

