WCF / ASMX :: Server Hosting Service Need To Be Constantly Available?
Nov 25, 2010
Lets say I have a web service installed on ServerA. I also have a web application hosted on ServerB, completely different domain from ServerA. That web application contains a web reference to ServerA's web service, so consumes it. What happens if the WAN connection between ServerA and ServerB goes down, for whatever reason? I'm not clear if, once the web method is coded into the consuming application, that the server hosting the service has to be constantly available or not.
[1] [URL] (this is a dnn website which contains a web service to be consumed in "xyz" website).
[2] [URL] (this is an asp.net website which consumes web service defined in "abc" website). That means this website is having "Web Reference" folder which contains .wsdl, .disco and .discomap types of files.
Problem is - when I see these files (.disco, .discomap and .wsdl etc files under Web Reference folder), they all are having urls defined like [URL]. That means its fix to "abc" virtual directory ?
What if end user or customer wants to purchase my application but want to have some other name like [URL] (the virtual directory to someother name).
In that case; I assume that I need to "MANUALLY" find [URL] and replace to [URL] ?
created project as a WCF Service application and now according to recuriment that needs to be converted as a self hosting applicationConverting WCF service app to Self hosting app
I am trying to put a basic Hello World Web Service in my Go Daddy Shared hosting.
It is a basic default Hello World Web Service that Visual Studio 2010 automatically generates: it works in my local web machine: i can invoke and can see the xml.
I have transferred the Service1.asmx and the Service1.cs file( in the App_Code folder ). I can view the web service page, but I cannot invoke the web service method, and as a result I cannot see the xml file where the "Hello World" string will be in side the <string> element.
Though I can see the web service page, there is no invoke button. How will I invoke or render the content in an aspx page? As the web page has to change the name space, I have changed the namespace to my website address, but still I cannot see or do an invocation and as a result cannot see the generated xml. My question is
1) what should I do so that I can see the return xml value from the web service?
2) what should I do so that I can render the data of the web service in a web page ( for example, in mywebservicepage.aspx)?
I used visual webdeveloper 2008 express edition to make a new WCF Service Application.If I test it on my pc it works perfectly , But if I publish it to my shared hosting site I get this erroris has a BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All'.
bit of code on page laod that checks a server status and then writes the status out to a label text. This works great, but i need to make this a bit more dynamic.I need to establish a way that the service status is monitorered every few seconds to see if it stops.here is my code so far:
I have a domain(www.fortunebells.com) in hosting server zetnetindia.I have created wcf service and added service reference in my project.I want to host the service reference in the domain. how can i do this?
how to write a function in a web service to upload a file, like a .csv, to SQL Server.
The idea would be to upload the file via an interface built in Flex, send it to the server, and insert the record in SQL Server. My problem is that I don't know how the function should look like:
I'm building a browers-based game that will need to constantly be updating EVERYONE'S accounts regularly; what is the best way to go about doing this? Creating a process that runs every time someone goes to a page on my site slows down the load time immensely. Do I need to create a windows scheduled task that calls this/these process(es)? It will need to constantly run.
i am calling the webservice from acrobat javascript. it works very well in development server. but when i put the same code in production server, it doesnt call the webservice.
I am consuming a Web service passing it an XML string. The WS is querying a SQL Databse and returns an XML string. It all works fine from within Visual Studio 2010. Running the website from the browser, I receive the following error when calling ws.method "RQ.ProcessRequest(XMLOut, XMLIn)":
INNER EXCEPTION: System.Exception: The login failed when connecting to SQL Server SOMTSNAV01
[Code]....
Is there some additional credentials I need to pass to the WS? Is there anything that needs to be done on th WS side to ensure login does not fail? Ideas anyone?
I have to keep a datacontext alive in a WCF service. This object is created on every call to the service, by the way decreasing performance. How could I keep this object alive with WCF.
i have run one program in host server at a particular interval (lets say in each & every 1 hour) by using web service. but on my server web service stops automatically after 2 or 3 hour.
I have a web service that was running on Server 2003, IIS6. The service required an SSL connection. The service expects 4 parameters; a User ID, Password, Record ID and the "type" of data requested (one of 5 options). The service validates the user then simply performs a select of the record ID from a table determined by the type specified. This service was up and running for a couple of years. I installed a couple of new servers a couple of months ago. The users that makes use of this service just tried it and couldn't get a response. I checked the server and I hadn't copied the service over. The service is located in a virtual directory under the primary web site.
For example, the site is: [URL] Service virtual directory is "GetITSData" The call to the service has been: [URL] param1, param2, param3, param4 and the service would return the appropriate data. I "assumed" that when I copied the actual contents of the directory over, that the service would then begin functioning again (since it was empty). All IIS snap-in manager items for the virtual directory match the previous settings on the old server (I still have that server available in my office). The main site requires SSL and uses forms authentication. When I create a dummy site in VS2008 and try to add a service reference, I get the following: There was an error downloading [URL]. The request failed with HTTP status 403: Forbidden. Metadata contains a reference that cannot be resolved: [URL]. The remote server returned an unexpected response: (405) Method Not Allowed. The remote server returned an error: (405) Method Not Allowed. If the service is defined in the current solution, try building the solution and adding the service reference again.
built a web service and pushed it to my production server. When I view the .asmx file I can see the methods listed and I can also test them fine using the generated forms.I am having an issue, however, when I attempt to test my web service by...(1) creating a new web app project (VB -- VS 2010).(2) creating a web reference (works fine).(3) calling the method by running it on my local machine.#1 and #2 are fine but it seems as if the web method never gets called (returns an empty string).
I have an Asp.net 3.5 xml web service that I created using the file new website within Visual Studio 2008. I can install and run the web service on a remote server using a web setup project after adding the necessary entries to the web.config file. The problem currently is that the xml web service needs to be configured to use a domain name and not a server name. My coworker has not been able to configure the virtual directory to use a domain name and work successfully. The web service returns a site under construction error.
I have a web application in ASP.NET 4.0. I've added an asmx service, primarily as a source for the autocomplete extender's lookup values.
When I debug on my machine locally, everything works fine. However, when I deploy the web application to IIS 7.5, I get a HTTP 404 response when trying to send data to the service.
I am able to browse to the service definition, see the available operations. Tellingly, however, when I use the test pages to test the service using POST, I receive an HTTP 404 again.
I'm not sure what is going on. I did create the asmx file within my web application and it is deployed in the virtual directory of my otherwise working production application. Is there an issue with the .asmx file being deployed in the same virtual directory, perhaps?
I am trying to post data from vb.net application to web service asmx that is located on server! For posting data from vb.net application I am using this code:
Public Function Post(ByVal url As String, ByVal data As String) As String Dim vystup As String = Nothing Try 'Our postvars Dim buffer As Byte() = Encoding.ASCII.GetBytes(data) 'Initialisation, we use localhost, change if appliable Dim WebReq As HttpWebRequest = DirectCast(WebRequest.Create(url), HttpWebRequest) 'Our method is post, otherwise the buffer (postvars) would be useless WebReq.Method = "POST" 'We use form contentType, for the postvars. WebReq.ContentType = "application/x-www-form-urlencoded" 'The length of the buffer (postvars) is used as contentlength. WebReq.ContentLength = buffer.Length 'We open a stream for writing the postvars Dim PostData As Stream = WebReq.GetRequestStream() 'Now we write, and afterwards, we close. Closing is always important! PostData.Write(buffer, 0, buffer.Length) PostData.Close() 'Get the response handle, we have no true response yet! Dim WebResp As HttpWebResponse = DirectCast(WebReq.GetResponse(), HttpWebResponse) 'Let's show some information about the response Console.WriteLine(WebResp.StatusCode) Console.WriteLine(WebResp.Server) 'Now, we read the response (the string), and output it. Dim Answer As Stream = WebResp.GetResponseStream() Dim _Answer As New StreamReader(Answer) 'Congratulations, you just requested your first POST page, you 'can now start logging into most login forms, with your application 'Or other examples. vystup = _Answer.ReadToEnd() Catch ex As Exception MessageBox.Show(ex.Message) End Try Return vystup.Trim() & vbLf End Function