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 8 3048
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="Documentation"/>
</protocols>
</webServices>
</system.web>
</location>
HTH,
Dre
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.com> wrote in message
news:11**********************@msnews.microsoft.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="Documentation"/> </protocols> </webServices> </system.web> </location>
HTH, Drew
If by the Application object you mean System.Web.HttpApplicationState, then
yes.
If you mean the System.Web.HttpApplication, then no.
The ASP.NET pipeline maintains a pool of System.Web.HttpApplication (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**********@icn.siemens.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl... 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.com> wrote in message news:11**********************@msnews.microsoft.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="Documentation"/> </protocols> </webServices> </system.web> </location>
HTH, Drew
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*****@marlabs.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... If by the Application object you mean System.Web.HttpApplicationState, then yes.
If you mean the System.Web.HttpApplication, then no. The ASP.NET pipeline maintains a pool of System.Web.HttpApplication (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**********@icn.siemens.com> wrote in message news:%2******************@TK2MSFTNGP12.phx.gbl... 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.com> wrote in message news:11**********************@msnews.microsoft.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="Documentation"/> > </protocols> > </webServices> > </system.web> > </location> > > HTH, > Drew >
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
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.com> wrote in message
news:11**********************@msnews.microsoft.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
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
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.com> wrote in message
news:11**********************@msnews.microsoft.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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....
|
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 &...
|
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?...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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
|
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...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
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,...
| |