web-services

Unit testing my wcf services

I am hoping there is a better way to do this. Do I really have to wrap each method of my wcf service into an interface in order to use it? I don't think my fellow developers are going to buy into this because of the amount of time it takes... there must be a better way! ...

Simple Game Server

I'm looking for a simple game server for an iPhone game I'm creating. The game is turn based, so I just need a way for players to find other players, and then have the server gather and send out turns. It's a simple two player card game. If you have ever seem the with friends app.. ( Chess with friends, Words with friends ) that is th...

Web Service to Get Current UTC Time?

I'm building a PHP web application and need to know what the current date/time is. I cannot depend on the server's setting. Any web service I can use? I know there will be some delay accessing the time via web service, but I am fine with something that is not accurate to the last millisecond. ...

dynamic binding of web service URI

I have a list of servers, all exposing the same web service interface, that I need to call from my code. i.e. https://server1/service.asmx https://server2/service.asmx https://server3/service.asmx My code needs to get this list of servers and invoke the same function on all of them. I added a web references to this service, and I us...

Generalizing a Fetch() function for data sources

I have a Repository that should adapt itself to any kind of data source. This includes certain types of web services, databases (using ActiveRecord and NHibernate) and even flat files. For ActiveRecord I have EnumerateQuery(IActiveRecordQuery query) which returns an IEnumerable just like I need but the interface is undocumented. What exa...

How to invoke a WCF webservice using HTTP Get.

I want to invoke a wcf webservice using a url query string. Like if I have a webserive that expose a ADD method of adding two integers. I want to invoke this service using http://mywebserviceAddress/Add?x=4&y=5 Is it possible to do this. I am new to webservices, this may be very easy for most of you. ...

How can I best deploy a web application written in C?

Say I have fancy new algorithm written in C, int addone(int a) { return a + 1; } And I want to deploy as a web application, for example at http://example.com/addone?a=5 which responds with, Content-Type: text/plain 6 What is the best way to host something like this? I have an existing setup using Python mod_wsgi on Apache2,...

Polling Vs AsyncCallback callbacks - best approach for a slow web service?

I have a webpage that uses AJAX to get search results for a page. On the server side I am querying a web service that is very slow - 20 seconds to 2 minutes. As I understand it, my options are either polling or having a long running request. AsyncCallback seems to be ideal since the result would be returned as soon as the web service r...

OpenID authentication on AppEngine and non-AppEngine subdomains

I have a main website running on AppEngine. It's on a subdomain like main.example.com. This main application is a content portal for our customers. It offers an Ajax application built on YUI. Customers can upload data to it. Users authenticate using Federated Login. The Ajax application on it allows users to process the data previousl...

AMAZON Api authentication error

Hi all, Attempting to use the amazon API to obtain product data and currently failing miserably. Getting the following error: (The HTTP request was forbidden with client authentication scheme 'Anonymous'.) Anyone care to point me in the right direction or provide a link to good example of the API usage? Dim itemRequest As New ItemSe...

Direct database connection vs Web Service, for MySQL+SQL eCommerce integration?

Hi, I need to integrate orders from an online eCommerce site (Linux/PHP) into a client-server system (.Net/MSSQL), as well as checking stock levels and products from the client-server side into the eCommerce site. I found these answers, but they don't satisfy me. The MySQL database is not exposed publicly, while the MSSQL database is. ...

How to add parameters into a WebRequest?

I need to call a method from a webservice, so I've written this code: private string urlPath = "http://xxx.xxx.xxx/manager/"; string request = urlPath + "index.php/org/get_org_form"; WebRequest webRequest = WebRequest.Create(request); webRequest.Method = "POST"; webRequest...

Read-only properties in web services

Hi All, Is there a way while exposing a web service, I can mark some of the properties in object as immutable or read-only ? Thanks ...

asp.net: Bind XML from Webservice to a dropdownlist

Hi, how do i bind a xml (http://www.webservicex.net/country.asmx/GetCountries) to a dropdownlist? Currently I'm working with ASP.NET 2.0. Greetings... ...

Axis2/rampart cryptography problem with signaturePropFile

I have problem with WebService client that has to use WS-Security. My client is written with axis2. It works when I do not enable cryptography (of course with my server emulator). I enabled cryptography by adding to axis.xml: <!--Signature and Encryption : Using the request's certificate--> <module ref="rampart" /> <parameter name="Out...

VOD what do I need

Hi there i study CS i want to make a VOD website as a college project in your opinion what do i need to learn any advises will be appreciated thanx ...

Can't access a Java web service using VBScript with mssoapinit(address of wsdl)

I have a web service in Java that takes and returns a string. It works with both Java and C# clients by creating a proxy class. I cant get it to work wit VBScript though. I have read everywhere about others using code like the following: Set client = CreateObject("MSSOAP.SOAPClient") client.mssoapinit("http://localhost:8080/WebS...

The request failed with HTTP status 401: Unauthorized.

I have a .NET2.0 (VB) running in my IIS6 (XP Pro SP2) and a .NET3.5 (configured as .NET2 under IIS's ASP.NET tab, of course) hosting an ASMX web service. In chrome I can call the ASMX invoke the web methods successfully, however in calling the web methods in code, from the .NET2 website I get: The request failed with HTTP status 401: U...

WCF - Composite IAsyncResult

I have a WCF service that I want to use the async pattern on as it mainly calls a series of web services and then processes the results once all of the web service calls have returned. However, the async pattern in WCF only supports a single IAsyncResult being returned in the BeginXXX method. I was wondering if anyone had any experienc...

Nusoap - fix empty xmlns attribute for the response

Hi, i have created a simple web service using Php Nusoap. its working correctly but the only thing missing is to add the default xmlns attribute to the response tag. Here is the copy of Response : <?xml version="1.0" encoding="ISO-8859-1"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOA...