Solved

Need help on .Net web services

Posted on 2013-11-05
4
771 Views
Last Modified: 2013-12-11
I need to find out all the web service references and also need to find if these web services are referring to any other services for a legacy web application which was developed using .Net Framework 2.0 /VS 2005.I am new to the web services and in the web.config file of the web application, there are couple of web service url references.

Can anyone briefly explain me flow of the services ? ( below is the scenario)

For example:

SampleWebApplication


   Web.config: Web service reference URL's

   http:/testserver/Folder1/Service_A.asmx
   http:/testserver/Folder1/Service_B.asmx
   http:/testserver/Folder2/Service_C.asmx


Question 1: Navigated to Folder1 path and can see Two services and an web.config file (http:/testserver/Folder1/).
 
  a)Service_A.asmx
  b)Service_B.asmx

  c)Web.config: Web service reference URL's (referring to other services)

   http:/testserver/New Folder1/Service_X.asmx
   http:/testserver/New Folder2/Service_Y.asmx

Question 2: Navigated to Folder2 and have one service and a web.config file (http:/testserver/Folder2)

 a)Service_C.asmx
  b)web.config:Web service reference URL's   (referring to other services)
     
     http:/testserver/Sample Folder1/Service_P.asmx
     http:/testserver/Sample Folder2/Service_Q.asmx


Thanks in Advance
0
Comment
Question by:ksd123
4 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 39626107
Are there any classes that create instances of the web service proxy classes?
0
 
LVL 25

Accepted Solution

by:
apeter earned 300 total points
ID: 39626735
Based on the folder the web.config file used.

When  you access files(asmx/aspx) under "folder1",  web.config from that folder is used. Same when "New folder1" files are accessed.  

If a setting is not available in child folder, then framework tries to see,  any parent folders config has a value for the setting. This behaviour is only bubble up and not down.

Hope this helps.
0
 
LVL 22

Expert Comment

by:ambience
ID: 39627063
>> web service references and also need to find if these web services are referring to any other services

First off, this is not possible except in case you are referring to a build time operation, like a tool that scans web.config files and extracts such information. Even in that case, a webservice may or may not be using a reference to another webservice.

I'll leave at that and wait for further clarifications.
0
 

Author Closing Comment

by:ksd123
ID: 39713393
Thank you
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question