Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Webservices in new DNN 4.3.5 moduleWebservices in new DNN 4.3.5 module
Previous
 
Next
New Post
10/9/2006 6:21 AM
 

Hi

I have created a new module that returns a dataset from an external webservice.

As soon as the i make a call to the webservice i get the following error:

Message: DotNetNuke.Services.Exceptions.PageLoadException: Unable to connect to the remote server ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetRequestStream() at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at WebReference.WebServices.ClaimantDetails(Guid guidService, Int32 UserID, String strCaseRef, Int64 lngSLNo) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\66d41aa6\2ef1f829\App_WebReferences.mc8v78hv.0.cs:line 673 at YourCompany.Modules.Guestbook.ViewGuestbook.Button1_Click(Object sender, EventArgs e) in d:\customer\medicolegal\public\DesktopModules\Guestbook\ViewGuestbook.ascx.vb:line 70 at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

i have found no examples of people trying to do this so i am not sure if this is even possible within DNN.

Could someone please point me in the direction?

Thanks

Brad

 
New Post
10/9/2006 1:16 PM
 

Connecting to webservices is certainly possible in DNN.  A great example of this are the Amazon modules that use ECS (Amazon e-Commerce Service).  The issue you are having appears to be in the way you are connecting.

Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

You need to check the webservice connection.  The problem could be in your wsdl reference.  If you are behind a firewall, it could also be that your firewall is blocking the remote service request.  See if you can return anything from the service.  A good way to test this is to create a non-dnn website on your local machine and try to hit the webservice from a regular aspx page.  Once that's working you'll have a better idea where to look in your module.

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Webservices in new DNN 4.3.5 moduleWebservices in new DNN 4.3.5 module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out