HLRosenberger
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.
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.
Is this asmx service or wcf or other language service?
ASKER
asmx web service
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
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.
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();
localhost.Service ws = new localhost.Service();
ws.Timeout = 100;
ws.HelloWorld();
Is the client application a website project or a web application project?
ASKER
got it working. thanks.