Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I add a web references, I have a message:
There was an error downloading 'http://113.160.93.198:9001/Ws_SendMessage/SendMessages.asmx'.

The operation has timed-out.

The following operations are supported. For a formal definition, please review the Service Description.

Sendmessage


--------------------------------------------------------------------------------

This web service is using http://tempuri.org/ as its default namespace.
Recommendation: Change the default namespace before the XML Web service is made public.
Each XML Web service needs a unique namespace in order for client applications to distinguish it from other services on the Web. http://tempuri.org/ is available for XML Web services that are under development, but published XML Web services should use a more permanent namespace.

Your XML Web service should be identified by a namespace that you control. For example, you can use your company's Internet domain name as part of the namespace. Although many XML Web service namespaces look like URLs, they need not point to actual resources on the Web. (XML Web service namespaces are URIs.)

For XML Web services creating using ASP.NET, the default namespace can be changed using the WebService attribute's Namespace property. The WebService attribute is an attribute applied to the class that contains the XML Web service methods. Below is a code example that sets the namespace to "http://microsoft.com/webservices/":

C#

[WebService(Namespace="http://microsoft.com/webservices/")]
public class MyWebService {
// implementation
}
Visual Basic.NET

<webservice(namespace:> Public Class MyWebService
' implementation
End Class
For more details on XML namespaces, see the W3C recommendation on Namespaces in XML.

For more details on WSDL, see the WSDL Specification.

For more details on URIs, see RFC 2396.

P/S: I added : [WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
But have a error at ConformsTo: 'System.Web.Services.WebServiceBindingAttribute' does not contain a definition for 'ConformsTo'

Help me, Please!
Posted
Comments
bbirajdar 25-Feb-14 11:40am    
Where in the world are you? this is 2014 and you are using vs2003???????
Sergey Alexandrovich Kryukov 25-Feb-14 11:43am    
Just one note: decent .NET has been started from the version, I would say, 2.0. Or 3.5. Anyway, working at anything prior to v.2.0 would be just the waste of time.
—SA

1 solution

kindly check port number(9001) is valid or not.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900