web-services

Why would my webservice method get called via GET?

I have a asp.net 3.5 site with a *.asmx that serves several webservice methods. The only client that should be calling these methods is one I wrote, and it calls them using a POST request. However, my error logs show many InvalidOperationException errors due to these methods being called with a GET request. Question: What might be causi...

ASMX webservice not returning JSON, can only POST using application/x-www-form-urlencoded contentType

I can call my webservice using jQuery IF the contentType = "application/x-www-form-urlencoded; charset=utf-8" This will, however, return the xml: <string>[myjson]</string> If I try to POST to the service using "application/json; charset=utf-8" I receive a 500 error with an empty StackTrace and ExceptionType. My webservice function is ...

.Net Webservice won't take parameters for XML call

For some reason my webservice does not like the data I'm sending it. I keep getting the following error: System.InvalidOperationException: Request format is invalid: text/xml; charset=utf-8. at System.Web.Services.Protocols.HttpServerProtocol.ReadParameters() at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest() ...

Service too busy error in WCF

I intermittently get the following exception in my .Net WCF Service. "The HTTP service located at http://MyServer/TestWCF/MyService.svc is too busy." Am I missing something here? Am using basic http binding and have enabled WCF throttling. <basicHttpBinding> <binding name="BasicHttpBinding_MyService" maxReceivedMessageSize="21...

WPF ProgressBar for Webservice Call

Is it possible to show a ProgressBar to show the Progress of a Webservice Call? I'm using a webservice which calls a SQL Database and returns, on demand, a List of the requested data. Webservice Code public List<LocationUpdate> GetAllLocationsByUserID(int UserID) { MainframeConnectionDataContext db = new MainframeConnec...

HttpHandler Returning Zero Length byte[]

I have a custom HttpHandler that invokes a webservice to get a file. In test, I invoke the production webservice and the HttpHandler returns the file correctly. When I test it in the production environment on the server, it works as well. However, if I invoke the HttpHandler from a remote client (not on the server) the filename and si...

What is the best way to send application errors and logs by internet to the developers?

As the author of a C# application, I found that troubleshooting issues reported by users would be much easier if I had access to the exception or debug logs. I have included a home-grown logging mechanism that the user can turn on or off. I want the user to be able to submit the logs via the internet so I can review the logs for the er...

Is WebService can work's parallel or only columnar ?

Hi, Do calls to webservice from multiple clients execute in parallel or one by one (i.e. will the 2nd call be considered only after 1st call is complete)? thanks in advance. ...

Implementing a chat server as a WebService

I have a school project in which I have to implement a chat application, who's server will be a java web service. The problem is that I've always thought of a web service as a way of calling remote functions, and I have no idea how to keep a "session" active on the web service, nor how to keep track of all the people currently in chat, r...

great/useful mashup web services

Which web services are useful, add user value and reduce development effort for a new web site? Here is what I can think of so far: uservoice: manage customer feedback OpenID (sites like AOL, google, MySpace...): OpenID allows your users to use your site together with other sites as if they were one: Login just once. gravatar.com...

Can PHP decompress a file compressed with the .NET GZipStream class?

I have a C# application that communicates with a PHP-based SOAP web service for updates and licensing. I am now working on a feedback system for users to submit errors and tracelogs automatically through the software. Based on a previous question I posted, I felt that a web service would be the best way to do it (most likely to work pr...

In ASP.Net can I call a user controls WebMethod using Javascript and PageMethods?

It's saying PageMethods is undefined. ...

how web service validate that requested URL is valid or not ?

I have Implemented one web service that return xml string. I want to validate that web service through the hash code, when request is coming from any URL then validate that URL is valid or not how this will done through the c# code? The XML web service will require that a valid HASH code is submitted to the API along with validating th...

threatding a win.exe from web service that click to start from web page ?

i have win.exe. it is get data webservice.asmx also a weppage.aspx that is related webservice.asmx. i start a scan job from my webpage.aspx (Like a math simulation). i should threat my webservice.asmx also win.exe(simulation program) start directly. But How can i do? ...

Get reference to spring bean from @WebService

Hi, I'm using CXF to generate a web service from wsdl. The generated web service has the annotation @WebService How do i get a reference to spring bean from the web service? All my spring beans are annotated with @Service, and I can access them in my web application. How do I access them also from my web service? I've tried the follow...

Building wiki on top of a restful application

Does anybody know a wiki engine that can be built on top of a RESTful application? I have a restful application, that exposes a document resource, I want the wiki engine to use the REST API to persist the documents, instead of saving them to a DB. I am also open for suggestions of an open-source wiki engines that can be easily modified t...

How can I change a Web Sevice URL with out recompiling?

We have an web app that is talking to Netsuite via Netsuite's web services. We setup the Web Service via VS 2005's Add Web Reference wizard which generates all the proxy code. Netsuite have sandbox accounts that allow testing (a different web reference URL). Ideally we want to hop back and forth between the live service and the test ser...

How to receive SMS "from around the world" and save in website database?

From few months ago when i was using twitter, i was able to send twitter a SMS and when i go home and check my twitter page, i see the SMS i sent is on the website as a tweet. "That was great" Now, i want to make the same in my website, so someone will send my website SMS as a command and my website will save this command in the db for ...

Calling a WebService from javascript

Hi, I'm developing a Firefox addon that needs to interact with an external WebService The WebSerivce is build using ASP.NET (.asmx page) I cannot use ajax because it's an addon and not a web site. Does anyone knows how to do it? ...

Calling authenticated web service from windows mobile app - need access to cookie container

Hi, I'm writing a Windows mobile client that needs to call a web service. The web service has a login method that returns a session id in a cookie. I've written a quick test app using normal winforms and I can access the web service cookiecontainer property without any problem In my windows mobile project (C# .net 2.0 targeting window...