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.
LVL 1
HLRosenbergerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Najam UddinCommented:
Is this asmx service or wcf or other language service?
0
HLRosenbergerAuthor Commented:
asmx web service
0
Najam UddinCommented:
Please try Right click add Service reference -> Click Advance -> In bottom there is button Add Web Reference
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

HLRosenbergerAuthor Commented:
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.
0
Naitik GamitSoftware DeveloperCommented:
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();
0
käµfm³d 👽Commented:
Is the client application a website project or a web application project?
0
HLRosenbergerAuthor Commented:
got it working.  thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.