web-services

How do I securly pass user credentials from a server to a client?

My goal is to launch an installation with admin credentials(user with install rights), In order to do this I need to pass these user credentials from a webservice. So the question is What is the most secure way I could pass this data. Keeping in mind the user of the end client is not logged in as an administrator but I would assume has...

Security implications of Request.ServerVariables("REMOTE_ADDR") vs Request.ServerVariables("HTTP_X_FORWARDED_FOR")

Let's say we're tracking the end-user IP for a web service: ip = Request.ServerVariables("HTTP_X_FORWARDED_FOR") If ip = "" Then ip = Request.ServerVariables("REMOTE_ADDR") End If I've read that this is the best method of retrieving end-user IP because it works even for users on a transparent proxy. If we're using the end-user IP...

Referencing code in VB.NET

I'm not at all familiar with VB.NET or ASP. I need to create a simple page which makes a call to a remote web service. I used the wsdl utility which comes with the DotNet SDK to generate a service proxy and write it to a VB file. Unfortunately I have no idea how to reference this code in either my ASPX file or the code behind VB file so ...

Is there any web service to get the weather data for the cities all round the world [over a period of time like one year]?

Any web service to get the monthly min/max temperatures for cities over a period of time? ...

Http Web Service Load Test

I have a web service I'm trying to load test. I created a program that spawns threads to simulate multiple users connecting to the service and making a request. Each thread makes "some number" of requests before it dies. Each new request is made as soon as it is ready - there is little to no delay between getting a response and making...

Which free web services are useful as application building blocks?

I used to be a skeptic regarding web services, because I often found the examples given too complex or unconvincing. Stackoverflow, with its use of reCAPTCHA, OpenID, and gravatar, has changed my view. Their use is a showcase of web services that can simplify the deployment of an application by handling part of the required functionali...

web service and nunit testing

I have created a console application that calls a method on a webservice. I have accessed the webservice and get the response back from the console application that I expect. When I create a separate test assembly and create some nunit tests which call the same method in the same way i get the following exception:- System.InvalidOperati...

Is there an easy way to provide a Matlab-based Web App or Web Service?

A colleague and I have spent a few years developing a really cool Matlab application, MDLcompress. Within Matlab, I can type "MDLcompress('filename.txt')" and it will tell me all sorts of really cool stuff about the contents of filename.txt. We'd like to allow other people to use MDLcompress without downloading the code, installing Mat...

Standard web services v Secure web services

I ask this question in anticipation as part of a project. I have experience of developing and consuming web services in the past and am au fait with those. However I have been told that as part of this next project I will need to use "secure" web services. Can you provide some insight into what additional development tasks there will be ...

Force re-cache of WSDL in php.

I know how to disable WSDL-cache in PHP, but what about force a re-caching of the WSDL? This is what i tried: I run my code with caching set to disabled, and the new methods showed up as espected. Then I activated caching, but of some reason my old non-working wsdl showed up again. So: how can I force my new WSDL to overwrite my old ca...

Webservice Authentication

I'm working on a webservice + AJAX interface, and I'm worried about authentication. This moment I'm passing username and password to the webservice as arguments, but I fear that this approach is highly insecure. I was told that ssl could solve my problem, but I want more alternatives. My webservice is written in php and my interface is ...

Where can I get databases of cities/places around the world?

In dopplr [http://www.dopplr.com] there is an option to fill the city of travel and the site will automatically find the city around the world. Is there any web service or database for such a city lookup? ...

Querying list items and using SharePoint web services vs the object model

My company is looking into writing a custom application that will need to perform many list item queries across multiple site collections. It will need to run for WSS 3.0 and it 'would be nice' if it worked on WSS 2.0 as well. It won't be designed for MOSS/SPS but again it 'would be nice' if it worked on these platforms. There is no rest...

Creating a web service without an ASMX file?

Hi, I have written an ASP.NET composite control which includes some Javascript which communicates with a web service. I have packaged the classes for the control and the service into a DLL to make it nice and easy for people to use it in other projects. The problem I'm having is that as well as referencing the DLL in their project, th...

Consuming remote web services from client-side script

From what I understand, due to the "same origin policy" enforcement in current browsers, it's impossible to obtain data from an XmlHttpRequest sent to a different domain than the Javascript's original domain. I have close to zero experience regarding this matter, so I'm confused about web services being unusable from Javascript. Does it...

Detect company names that are visiting my site

I'd like to use visitor IP addresses into a company name. This will be used for displaying something like "Hello visitor from Apple Inc." . Note I am looking for the company name, not the domain name. Extra points for determining the originating country. The app is written in Ruby on Rails, but examples in other languages will do. Thanks...

What are the Advantages of Using OnAsyncPostBackError over Page_Error

I am currently researching an Exception handling architecture for our App. We will be using UpdatePanels extensively and we will also be calling webservices. I want to know if there is any real need to implement a ScriptManager.OnAsyncPostBackError handler compared to, the Page_Error event which seems to catch all exceptions that are ...

encrypting soap in .net

Hi all I have been trying to encrypt soap message and send to the server, so that the server can decrypt, process the message, encrypt the response again and send back to the client... I short i want to implement security in ASMX web services.... Please help me Thanks Sandeep ...

Where is Juval Lowy's ServiceModelEx library for WCF?

WCF is Microsoft's replacement for .Net Remoting and Web services. It's critical to understand if you are a .NET component developer. The best reference for WCF appears to be (by word of mouth, blogs and Amazon) Juval Lowy's "Programming WCF Services," published by O'Reilly. This book is advertised in several places around the net a...

Timeout period in Webservices

I need to change the timeout period of my webservice which was invoked by .net console application. How to change the timeout period. Its not hosted in IIS. Its single WSDL. I dont want to write any code. I need to change it in app.config ...