473,546 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Some ASP.NET web service questions

Hi,

Can an ASP.NET web service project expose two different web services
perhaps by having two .ASMX files ? Is it possible to have a web emethod
that does not appear in auto-generated WSDL and docuementation ?

Thanks in advance and regards

Navin
Nov 23 '05 #1
8 3055
Navi Mishra wrote:
Can an ASP.NET web service project expose two different web services
perhaps by having two .ASMX files ?
Yes, just like you said you have multiple ASMX files.
Is it possible to have a web
emethod that does not appear in auto-generated WSDL and docuementation
?


Not that I'm aware of. The only way I know how to disable it is for a whole
web application (all services) or for a single service (but all methods),
like so:

<location path="MyService .asmx">
<system.web>
<webServices>
<protocols>
<remove name="Documenta tion"/>
</protocols>
</webServices>
</system.web>
</location>

HTH,
Dre

Nov 23 '05 #2
Thanks for the response. If two different ASMX files are added in same
ASP.NET web service project, could they share the same Application object ?

Thanks again and regards

Navin
"Drew Marsh" <dr****@hotmail .no.spamming.co m> wrote in message
news:11******** **************@ msnews.microsof t.com...
Navi Mishra wrote:
Can an ASP.NET web service project expose two different web services
perhaps by having two .ASMX files ?


Yes, just like you said you have multiple ASMX files.
Is it possible to have a web
emethod that does not appear in auto-generated WSDL and docuementation
?


Not that I'm aware of. The only way I know how to disable it is for a
whole web application (all services) or for a single service (but all
methods), like so:

<location path="MyService .asmx">
<system.web>
<webServices>
<protocols>
<remove name="Documenta tion"/>
</protocols>
</webServices>
</system.web>
</location>

HTH,
Drew

Nov 23 '05 #3
If by the Application object you mean System.Web.Http ApplicationStat e, then
yes.

If you mean the System.Web.Http Application, then no.
The ASP.NET pipeline maintains a pool of System.Web.Http Application (from
which the Global, defined in Global.asax.cs, class inherits) objects in a
every AppDoman (that is, for every ASP.NET application).

Mujtaba.

"Navin Mishra" <Na**********@i cn.siemens.com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
Thanks for the response. If two different ASMX files are added in same
ASP.NET web service project, could they share the same Application object ?
Thanks again and regards

Navin
"Drew Marsh" <dr****@hotmail .no.spamming.co m> wrote in message
news:11******** **************@ msnews.microsof t.com...
Navi Mishra wrote:
Can an ASP.NET web service project expose two different web services
perhaps by having two .ASMX files ?


Yes, just like you said you have multiple ASMX files.
Is it possible to have a web
emethod that does not appear in auto-generated WSDL and docuementation
?


Not that I'm aware of. The only way I know how to disable it is for a
whole web application (all services) or for a single service (but all
methods), like so:

<location path="MyService .asmx">
<system.web>
<webServices>
<protocols>
<remove name="Documenta tion"/>
</protocols>
</webServices>
</system.web>
</location>

HTH,
Drew


Nov 23 '05 #4
Thanks...that was very helpful! BTW can documentation be turned off for
selective web services in the same ASP.NET web services project ? I guess
not, right ?

"Mujtaba Syed" <mu*****@marlab s.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
If by the Application object you mean System.Web.Http ApplicationStat e,
then
yes.

If you mean the System.Web.Http Application, then no.
The ASP.NET pipeline maintains a pool of System.Web.Http Application (from
which the Global, defined in Global.asax.cs, class inherits) objects in a
every AppDoman (that is, for every ASP.NET application).

Mujtaba.

"Navin Mishra" <Na**********@i cn.siemens.com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l...
Thanks for the response. If two different ASMX files are added in same
ASP.NET web service project, could they share the same Application object

?

Thanks again and regards

Navin
"Drew Marsh" <dr****@hotmail .no.spamming.co m> wrote in message
news:11******** **************@ msnews.microsof t.com...
> Navi Mishra wrote:
>
>> Can an ASP.NET web service project expose two different web services
>> perhaps by having two .ASMX files ?
>
> Yes, just like you said you have multiple ASMX files.
>
>> Is it possible to have a web
>> emethod that does not appear in auto-generated WSDL and docuementation
>> ?
>
> Not that I'm aware of. The only way I know how to disable it is for a
> whole web application (all services) or for a single service (but all
> methods), like so:
>
> <location path="MyService .asmx">
> <system.web>
> <webServices>
> <protocols>
> <remove name="Documenta tion"/>
> </protocols>
> </webServices>
> </system.web>
> </location>
>
> HTH,
> Drew
>



Nov 23 '05 #5
Navin Mishra wrote:
Thanks...that was very helpful! BTW can documentation be turned off
for selective web services in the same ASP.NET web services project ?
I guess not, right ?


I showed how to do this in the first reply to this thread.

-Dre

Nov 23 '05 #6
Indeed...that works...thanks. I had some confusion regarding the config.
sections and after sorting it out, it works great!

Thanks again and regards

Navin

"Drew Marsh" <dr****@hotmail .no.spamming.co m> wrote in message
news:11******** **************@ msnews.microsof t.com...
Navin Mishra wrote:
Thanks...that was very helpful! BTW can documentation be turned off
for selective web services in the same ASP.NET web services project ?
I guess not, right ?


I showed how to do this in the first reply to this thread.

-Drew

Nov 23 '05 #7
Navin Mishra wrote:
Indeed...that works...thanks. I had some confusion regarding the
config. sections and after sorting it out, it works great!

Thanks again and regards


You're welcome, glad to hear you've got everything figured out.

Happy coding,
Dre

Nov 23 '05 #8
One more thing. Can these different web services asmx in the same ASP.NET
web service project use different ports ?

Thanks and regards

Navin
"Drew Marsh" <dr****@hotmail .no.spamming.co m> wrote in message
news:11******** **************@ msnews.microsof t.com...
Navin Mishra wrote:
Indeed...that works...thanks. I had some confusion regarding the
config. sections and after sorting it out, it works great!

Thanks again and regards


You're welcome, glad to hear you've got everything figured out.

Happy coding,
Drew

Nov 23 '05 #9

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

Similar topics

3
1188
by: Jan Waga | last post by:
Hello, I've written and installed windows service in C#. I have two questions: 1) File.Open("lock", FileMode.OpenOrCreate, FileAccess.Read, FileShare.None) does not create the file even if it doesn't exist. Also:
193
9425
by: Michael B. | last post by:
I was just thinking about this, specifically wondering if there's any features that the C specification currently lacks, and which may be included in some future standardization. Of course, I speak only of features in the spirit of C; something like object-orientation, though a nice feature, does not belong in C. Something like being able...
50
4309
by: Jatinder | last post by:
I 'm a professional looking for the job.In interview these questions were asked with some others which I answered.But some of them left unanswered.Plz help. Here are some questions on C/C++, OS internals? Q1 . What is the use of pointer to an array? Q2 . What is the use of array of pointers? Q3 . What is the use of pointer to function ?...
4
9000
by: Kris | last post by:
I have a Windows Service in C# talking to a serial port and using Remoting. It also uses several COM objects. On customer's computer the service will occassionally hang somewhere - the service still shows on a Task Manager list. In Services it says it is still running. However there is no way to stop it other than by rebooting the whole...
4
2136
by: ZQ | last post by:
Hi all! I have few questions regarding .net windows services 1. are onStart, onStop and other "system" events invoked in separate threads than msmq events? 2. if so, is there a way for the onStop event to wait with stopping the service until pending msmq events are finished? 3. if not, does that mean that the onStop event would actually...
4
1841
by: Steve | last post by:
I have read a couple articles online, read my Jesse Liberty book but I am still confused as to just what the best practices are for using exceptions. I keep changing how I'm working with them and it has now, after 15k lines of code resulted in a royal mess! It's my hope to ask some specific questions with scenario examples and that some of...
6
3344
by: alho | last post by:
The web service is called by a program running on pocket pc. When to call the web service, the first call is still ok, but for the second or later calls, it will throw "403 Forbidden" WebException. When to test it using the web interface on pocket IE, everything is fine. Before there was no such problem, it only happened within a week or...
0
989
by: SumanM | last post by:
A company wants to conduct its initial screening test for recruitment using a web based online test. Presently, the test should consist of two parts -- .NET and RDBMS (Questions on SQL Server & Oracle). The system should ask for the name, mobile number and experience level of the candidate. Based on the experience level, it should open a web...
5
3280
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name? Why do I need to set a property within my code to the service name? Are all these required or am I just doing this for consistency purposes?
0
930
by: John Sheppard | last post by:
"Jeff Johnson" <i.get@enough.spamwrote in message news:JtydnTFI1LlG2GfanZ2dnUVZ_qKgnZ2d@datapex... Purchase an ssl cert...its cheaper than your labour...doing all that message layer security takes weeks and weeks of work...plus it'll all be changed again for WCF when ur WSE is obsolete... Do a search for 'Web Service Security Patterns...
0
7507
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7435
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7698
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7947
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7461
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5361
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3472
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.