web-services

java: xpath on json

I need a fast way to extract data from json responses a I get from a webservice. By fast, I mean fast for the programmer, not necessarily for the computer. I was thinking of something like Xpath for Json, if such a thing exists. Any ideas? I am open to any Java Json library. In fact, the easiness to extract data from Json with a power...

Building a Wikipedia on ASP.NET(learning exercise). How to clean untrusted data, but keep formatting?

I want to give end users the ability to save HTML to my backend store. Since this feature could easily cause SQL Injection, and loads of other issues, does anyone know of a server side library that will clean the input so only the "safe" parts of HTML can be used? Some things I'd like to avoid: Object Tag use JavaScript use Windows ...

Rails 1.x client talking to RESTful server

Hey all, I've got a client that is integrating a Rails 1.2.6 site with another site that exposes services RESTfully. Upgrading to Rails 2.x is not an option at this time. Does anyone have recommendations for methods other than direct Net::HTTP calls to communicate with the REST service? Techniques or Gem recommendations are welcome, b...

Accessing parameters in a webservice from a different application.

Hi, I have C# webservice webmethods hosted on a server and accessed by different applications(web,winforms etc). Is there any way i can detect that these parameters are sent from winforms, these are from webservices on a webservice? All they do is adding a web reference and passing parameters, i wish to see in my end what parameters t...

Error Getting Cassini to work on Local Machine

I get the following error when attempted to get cassini to work on a local machine: The current identity (NT AUTHORITY\LOCAL SERVICE) does not have write access to 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files I actually created a BAT file to do the following cd\ cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50...

SharePoint search web service error (NTLM) when called from HttpHandler

Here is my scenario: I have a SharePoint site I am working on, and it is on one server farm. In this site, I have created an HttpHandler that uses a SharePoint search webservice that is located on a different server. So that looks something like this: SharePoint Server A, where my site lives Has a service reference to SharePoint searc...

RESTful versioning... where to version in the URL?

Possible Duplicate: REST api versioning (only version the representation, not the resource itself) Hello, So I need to version my restful services. I understand that many place v1 or something similar in the URL to denote use of the "first version" of a resource. My question is, where in the URL should the versioning portio...

How do you place a web services aside with your ASP.NET MVC web application

Hi all, I currently have a web application written by ASP.NET MVC. Now I want to add a web service so that some people can easily build application upon it. Shall I just create the asmx in the MVC Web project or create another project referencing to the Model project? And what's the pros and cons? Thanks in advance! ...

How do I remap a URL?

I need to move an old legacy web service to a new location. It will be under a virtual directory now rather than it's own website in IIS. Unfortunately I can't change the config settings for a client that is using the service, so is there a way to map the URL from the old address to a different site in a virtual directory? Eg. http://o...

How to make session time out from client side

I need to test a client app on IPhone which connect to a WebServices. This connection time out is check once/day at 6am. So, we can only test "time-out" case only once/day. I want to test more time/day. But I can not change on Web Service because of no authentication. There a solution to use a proxy server to catch package, change sessi...

Can I use session-based authentication for my web API?

I am implementing a web server API for my application, and I got stuck in the process of figuring out what authentication method I should use to authenticate requests by the users (and also by other client applications). I think that I did not really understand what OAuth and other authentication protocols are made for. I want the authe...

Using authenticated SOAP web service in Android

I have to securely connect to an authenticated SOAP web service in Android. The web service uses a self-trusted certificate. Unfortunately it seems that the usual Java libraries for this can't be used in Android. Could someone give me some pointers on how to do this? Is it possible to implement this connect just with HTTP POST request...

.Net - web services - Stop WSDL and default help page being accessible but leave service up

Hi, I have a simple .Net web service. When I visit the /webservice.svc path in a browser .Net renders a nice help page with some sample C# and VB.Net code. How do I stop this from displaying? Also, is there any way to prevent a request for ?wsdl from returning the wsdl file? Thanks for any insight in advance. ...

"Virtual folder" in Linux

I have a web service which allows the users to upload and keep track of their files on the server. What I want to do is create some sort of application which recreates my "online file system" on the local machine. Kind of like having a folder on my desktop which presents the files I have on the webserver, where I can move them, open, sa...

how to host a asmx web service on iis

Hi Can anyone please advise me on how to host an asmx webservice build in .net 3.5 on IIS6 ...

Request.IsLocal works strange

Hello, I have big problem. Lets look on the code below: protected void Application_AuthenticateRequest(object sender, EventArgs e) { if(Request.IsLocal) //DO WHAT I WANT } I have a client which connects with webservice and invokes some method. When the request is being made from my client to WS, the method Application_A...

Disposing of static resources in web service

In a pre-WCF .NET (C#) web service, I have an expensive IDisposable resource that I'm holding a static (actually ThreadStatic) reference to. (Internally it holds a SqlConnection.) How can I insure that this is disposed when the app pool refreshes, should I simply suppress the FxCop warning and not worry about it, or is there a third opti...

accessing a web service using axis and maven

Im trying to figure out how to access Web Services in Java using Axis. As far as I understand, Here's what I need to do : Use WSDL File + Axis tools to generate Java files. Compile and package generated Java files and then consume those objects by using connection methods on these. In trying to do this, here's where I'm stuck: I pi...

How do you authenticate a Wordpress front-end against a RESTful Grails-driven backend?

I'm developing a Software as a Service offering that other developers can use to integrate into their own sites running on Wordpress (and eventually other platforms). The backend will run on a set of REST webservices using Grails. I want to create a set of Wordpress widgets that can automatically hook in to my web services. The wordpres...

Sharepoint GetListItems function returns non-matching items

I have the following code, which is a modified version from MSDN's website, to test getting all list items where the field "UserID" matches the value specified: Dim xmlDoc = New System.Xml.XmlDocument() Dim ndQuery As XmlNode = xmlDoc.CreateNode(XmlNodeType.Element, "Query", "") Dim ndViewFields As XmlNode = xmlDoc.Crea...