Link to home
Start Free TrialLog in
Avatar of HLRosenberger
HLRosenbergerFlag for United States of America

asked on

Consuming a WEB service, Visual Studio, VB.NET

I am consuming  a WEB service in a console app.    I need to consume the same service from an ASP WEB page.   In the console app, there's a reference.vb file in the service folder, along with configuration.svcinfo, configuration91.svcinfo, Reference.svcmap, tds.disco and tds.wsdl.      However, after adding the service to the WEB project, the reference.vb is not present.  Additionally the service folder is added under a folder called "App_WebReferences" while in the console app it's added under "Service References".   I also tried adding it as a WEB Service using the "Advanced" button on the a service reference dialog.  

I can't get this to work.

When I add as a WEB Service using the "Advanced" button on the a service reference dialog, all seems OK in Visual Studio.  VS shows me the methods within the service.    But at run time I get a timeout when I try to instantiate an instance of the service.    

When I add as a Service Reference, I can't even reference the service definition because the reference.vb is not present.
Avatar of Najam Uddin
Najam Uddin
Flag of United States of America image

Is this asmx service or wcf or other language service?
Avatar of HLRosenberger

ASKER

asmx web service
ASKER CERTIFIED SOLUTION
Avatar of Najam Uddin
Najam Uddin
Flag of United States of America 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
I did that:

When I add as a WEB Service using the "Advanced" button on the a service reference dialog, all seems OK in Visual Studio.  VS shows me the methods within the service.    But at run time I get a timeout when I try to instantiate an instance of the service.
Avatar of Naitik Gamit
If you get timeout when consuming web service you can increase time as example:

  localhost.Service ws = new localhost.Service();
  ws.Timeout = 100;
  ws.HelloWorld();
Is the client application a website project or a web application project?
got it working.  thanks.