
January 9th, 2002, 02:43 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,578
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
Consuming External Web Services
Originally posted by : Akash Rastogi (zumo@rocketmail.com)Hi All,I have a question about consuming web services that i am hoping someone could help me with. I am trying to invoke an already published web service (for eg, www.learnxmlws.com/services/weatherretriever.asmx). I can write a client for it using windows forms and it works. However, when i try and invoke it using ASP.Net then i get the following error:"The underlying connection was closed: Unable to connect to the remote server. "Source Error: Public Function GetTemperature(ByVal zipCode As String) As SingleLine 36: Dim results() As Object = Me.Invoke("GetTemperature", New Object() {zipCode})Line 37: Return CType(results(0),Single)Line 38: End FunctionAm not sure how good the above source will be displayed here..but the error pointed out is in line 36 (Me.Invoke)I am getting the same error for all the externally hosted web services.(I dont get this error when i try and invoke a web service existing locally on the network but only for external ones..and that too just in ASP.Net and not Windows Forms)Looking forward to your help/suggestions..Please email me ur replies to zumo@rocketmail.comcheersAkashPS: If u'd want i can mail u the source..its just a test example
|