web-services

Communicate between 2 WCF services

How to communicate between 2 WCF services hosted on 2 different machines. ...

Deciding on a Revenue Model for a Web Application

When building a commercial web application, what are the factors that go into the decision of a revenue model? How many users are necessary for an advertising-supported application? What demographic factors of the user base makes them more attractive to advertisers? Conversely, when deciding on a subscription price, what factors go in...

How can I make a button like 'Digg it' for my website?

Hello, I've got a blogging site hosted on Windows Sever, ASP.Net 3.5, ASP.Net AJAX, SQL Server in background. I want to give bloggers a button like 'digg-it' which they can put on their blogs for the readers to click to thumb-up the post if they like it. I know I'll be using Javascript to do that. What can I do to: - Retrieve code f...

Pass to javascript a dictionary of a dictionary (.NET)

I'm trying to solve the problem of passing a 2-dimensional table into JavaScript AJAX application through SOAP web services. I'm trying to pass data into JavaScript web page through ASP.NET web service declared with following attributes: [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.Web.Script.Services.ScriptServ...

Best Engineered REST APIs?

Dear lazyweb, In your opinion what are examples of good REST API implementation when evaluated based on consistency with the REST philosophy compliance with web standards just plain good software engineering In a previous question, some names were thrown about, namely Amazon S3 & flickr. ...

Windows authentication and webservices

I have an authentication webservice which I pass a username and password to. This returns a bespoke credentials object to the requesting application. This credentials object is then used throughout the application (its passed to other service methods). public Credentials login (string username, string password) { } I have been asked t...

Consuming WebService From CompactFramework Client

I'm trying to call a webservice method like this: myService.Register("mystring"); The webmethod definition is just: [WebMethod] public void Register(string s) { } But I receive the following System.InvalidOperationException: "The type System.String was not expected. Use the XmlInclude or SoapInclude attribute to specify types that...

How do you set up solution configuration specific config files?

I have a web service that needs different settings for different environments (debug, test, prod). What's the easiest way to setup separate config files for these different environments? Everything I find on the web tells me how to use configuration manager to retrieve settings, but not how to find particular settings based on the curren...

Authenticated Web Services with Silverlight

What method would you use secure a group of web service methods that are callable from a Windows Server and a Silverlight 2 front end? I don't really want to have to pass a username and password with each and every method call, but I'm not entirely sure how to approach it and my google searching hasn't really been providing me with any ...

How to stop .NET from encoding an XML string with XML.Serialization

I am working with some Xml Serialization in ASP.NET 2.0 in a web service. The issue is that I have an element which is defined such as this: <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable:=True)> _ Public Property COMMENTFIELD() As String Get Return CommentField '...

Best way to create a simple python web service

I've been using python for years, but I have little experience with python web programming. I'd like to create a very simple web service that exposes some functionality from an existing python script for use within my company. It will likely return the results in csv. What's the quickest way to get something up? If it affects your sugges...

Which Amazon service do I need for simple querying of book titles, ISBN, and publishers?

There are so many services now, and a lot of search results about the topic talk about services that have been deprecated. I'm only doing this for the first time now. I have a little library app in C# that I want to use to query Amazon services to update book cover picture, ISBN, authors, etc. ...

Fix problematic server response in WCF

I am using WCF as a client for a java web service. I have not control over the server side. In the response I get from the web service there is no xmlns attribute on the first element inside the soap headers. Because of this WCF returns null as the result of web service call. Apart from the missing xmlns the response is perfect and if...

How can I get the ServletRequest object from within an XFire AbstractHandler's invoke() method?

I'm using XFire as the Web Services provider for Spring Remoting. I'm using an AbstractHandler to authenticate the SOAP request. The idea is to identify the request by the originating server's domain and an API key (a-la Google Maps). The only problem is that I can't seem to find a way to fetch the ServletRequest object from within the i...

Best/Most Comprehensive API for Stocks/Financial Data

What is the most recommended free/public API for accessing financial market stats and stock quotes (preferrably real-time quotes)? I'm not too picky about how it's exposed (SOAP, REST, some proprietary XML setup, etc.), as long as it's got some decent documentation. I'm planning to build a simple web dashboard in PHP with some basic dat...

.NET web service without proxy class

I'm trying to create an application that will let me execute a method specified at runtime on an arbitrary webservice (the URL of which I'll also provide at runtime). I've figured out how to use Type.InvokeMember to execute the arbitrary method, but how do I specify the web service to consume without creating a proxy class. I found htt...

What is the best way to return errors from a WCF service in a RESTful way?

Using WCF in a RESTful way seems great. I’m a big fan of the big guns like simplicity and flexibility, but I also love the way the Urls end up looking. What can I say, I’m a programmer. The simple API for retrieving and editing resources is matched by an almost equally simple set of possible error responses, and I can’t help feeling tha...

WSE 3.0 Client - how to specify the key encryption method - config file being ignored

I've implemented a WSE 3.0 Client that encrypts it's message body. The soap envelope has the following elements: <xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"&gt; <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"&gt; <ds:DigestMethod mlns:ds="http://www.w3.org/2000/09/xmldsig#" Algor...

What does "wsse:InvalidSecurity" mean?

An error was discovered processing the <wsse:Security> header This is a WS-Security question btw... I can't see anything wrong with my WS endpoint (apart from the fact that it's running in a TIBCO BW engine!). Does someone have any 'prior' with this kind of error? I realise that the WS-Security Header could be broken anywhere presuma...

How do I ensure Schema Extensibility using JAXB

If I am using JAXB as part of Metro Web Services under Glassfish v2, how do tell JAXB to add: <xsd:any/> and <xsd:anyAttribute/> tags to my generated complex types so that if I make changes in the future to add elements or attributes to my response objects then my current clients won't break. JAXB documentation seems somewhat lacki...