Link to home
Start Free TrialLog in
Avatar of namerg
namergFlag for United States of America

asked on

How to read successfully a web app service in the browser

I am not a web developer, i am sys admins and i am trying to assist the web apps support dpt.

We have to environments:
UAT and PROD

In UAT if i browse to this URL:
http://pe01.uat.lcl/EWS-DEV/EngineService.svc I get the following on the browser

EngineService Service

You have created a service.

To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:

svcutil.exe http://pe01.uat.lcl/EWS-DEV/EngineService.svc?wsdl

You can also access the service description as a single file:

http://pe01.uat.lcl/EWS-DEV/EngineService.svc?singleWsdl

This will generate a configuration file and a code file that contains the client class. Add the two files to your client application and use the generated client class to call the Service. For example:

C#
class Test
{
    static void Main()
    {
        EngineServiceClient client = new EngineServiceClient();
        // Use the 'client' variable to call operations on the service.
        // Always close the client.
        client.Close();
    }
}

Visual Basic
Class Test
    Shared Sub Main()
        Dim client As EngineServiceClient = New EngineServiceClient()
        ' Use the 'client' variable to call operations on the service.
        ' Always close the client.
        client.Close()
    End Sub
End Class

Open in new window


But if I go to PROD and browse
http://pe01.prod.lcl/EWS-PROD/EngineService.svc I get the following:

Server Error
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable

Open in new window


Thanks for your your help
Avatar of Vaughn Bigham
Vaughn Bigham
Flag of United States of America image

Are the files published in the expected location on the prod server?

If so, is the correct version of .net framework installed with http activation enabled for WCF services?
if both UAT and PROD using the same compiled libraries, I would think there could have some mis-configuration for the PROD? If there's log to track the errors then it would be easier for troubleshooting.
Avatar of namerg

ASKER

ohh man why are you asking me...I have no idea. Can we do baby steps ? :) please...
ASKER CERTIFIED SOLUTION
Avatar of Nageswara rao Suryadevara
Nageswara rao Suryadevara
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of namerg

ASKER

I did explore and it is there:
X:\>dir C:\EWS\PROD
 Volume in drive C has no label.
 Volume Serial Number is A2C7-DA4E

 Directory of C:\EWS\PROD

11/14/2019  05:15 PM    <DIR>          .
11/14/2019  05:15 PM    <DIR>          ..
11/07/2019  01:39 PM    <DIR>          bin
10/15/2018  02:10 PM               131 EngineService.svc
10/15/2018  02:10 PM             3,312 index.htm
11/07/2019  01:44 PM             8,253 Web.config

Open in new window


And I went to the link and i get the 404 -  File or directory not found. Thanks.