web-services

How would you develop and deploy a simple web service?

I am looking for any insight/direction on designing a simple web service. I would love to hear some thoughts on how to quickly get started, and what pitfalls to avoid. To simplify, here are the basics I'm looking to accomplish: Service should provide a simple database query and multi-value response. Service should provide a simple mult...

Silverlight Webservice "The remote server returned an error: NotFound"

I have a Silverlight application that retreives a list of serializable classes. In these classes there are other serializable classes some of which are also in a list. The thing is everything works fine until I fill one of the list of serializable classes that causes the silverlight application to throw the exception "The remote server r...

c# System.InvalidOperationException: The type foo was not expected.

This question is tied in with this other question that I asked I have this webservice that returns a class that within itself has a list of classes. When I try to call the method the following exception is being thrown: System.InvalidOperationException: The type YambushiDataClass.SCharacterProjectile was not expected. This i...

Developing/Testing Twitter apps without slamming the API

I'm currently working on an app that works with Twitter, but while developing/testing (especially those parts that don't rely heavily on real Twitter data), I'd like to avoid constantly hitting the API or publishing junk tweets. Is there a general strategy people use for taking it easy on the API (caching aside)? I was thinking of rolli...

WCF: What is a ServiceHost ?

As I'm currently learning to use WCF Services, I am constantly encountering tutorials on the internet which mention using a ServiceHost when using a WCF Service. What exactly is this ServiceHost ? In my current project I am using a WCF Service and having a reference to it from my app and whenever I want to consume it from my app I ...

wcf architecture design. re: return values.

Hello and thanks for your opinion. I am creating a webservice. This webservice will accept a customer and the customers accounts along with a couple other related objects and attributes and such. When the webservice recieves a request, I attempt to process it. If there is no error I simply just return. If there is an error, I throw ...

XP gives Error 1825 when trying to connect to my web service

Hello- I've been creating a an application with C# using W2k8+IIS7/SQLExpress 2008/Web Service/Windows Client. I'll be very upfront in that I'm learning how to setup the SQL and IIS and the security for it all. I don't need tight SSL security or any of that, since this is an intranet page inside my company. I do know I setup SQL and IIS ...

To ASP.NET MVC or RESTful or WCF REST service

My client provides various data related to a consumers shopping habits in grocery stores based on their membership. One of their vendors wants to tap into the data and build an intranet site for the company. All my client is willing to provide is some form of web service so that the vendor could consume the data as they need and build ...

ListBox not populating on data bind in Silverlight 2

So I'm trying to learn Silverlight so I've built a simple demo app that pulls my home feed from FriendFeed and displays the items in a list. I've got a listbox defined: <ListBox x:Name="lstItems" Margin="5,61,5,5" Grid.Row="1"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Margin...

Tomcat update event

I am working on an application which uses tomcat as a web server and java swing app. as only client to communicate to the web server via webservices. I am stuck in a situation where i need the server to somehow notify the client of some kind of updated event, that occurred on the server side. Something like reverse ajax or similar. A...

How do I write a windows service that polls a directory for new files?

I have made a window service, it is basically reading a temporary file on my machine, reading it to a database and then deleting it. I have written the code for these actions in the onStart method, hence I need to restart the service again when I need it to work, but what I actually need is that the service should automatically sense the...

WCF: "Failed to open System.ServiceModel.Channels.ClientReliableDuplexSessionChannel"

I currently have a WCF Service with a CallBack Contract (duplex), and when I use the application that makes use of it on my computer everything works fine, but when I try it from a different computer, it doesn't connect. These problems started occurring once I switched to using this wsDualHttpBinding (for callbacks) because when I used ...

Silverlight serialization of a .NET Web service causes XML error

I've got this class being provided by a web service that is then being consumed by a Silverlight app (I don't know if that's relevant or not) [Serializable] public class Entry { private string _title; public string Id { get; set; } public string Title { get { return _title; } set { _title = value; } } public string Link { get; set;...

List<Customer> all or nothing.

I am creating a webservice using Windows Communication Foundation (WCF) and I currently don't know what the best way to do validation with it is. I have two methods: CreateCustomer(Customer) and CreateCustomers(List<Customer>). If a client passes in a list of customers, and some of the customers are invalid, should I reject the enti...

WSE 3.0 raises WSE1608 error

We have a wse 3.0 enabled webservice and some client computers are receiving this wse1608 error message WASE1608: No XOP parts were located in the stream for the specified content-id: Any ideas what would cause this? It works find on some all but one client in the same office. ...

Interaction with a database: JQuery Ajax, Web Services

Hi, I am trying to retrieve values from a database by using JQuery Ajax to call a web service routine. The web service routine is set up properly and returns the value I require, however I'm confused about how the jquery ajax works... I don't know how to retrieve the value $.ajax({ type: 'POST', url: 'myservices.asmx/ge...

Set Content-Type for testing from Firefox

I need to do some REST service testing from Firefox where I set the Content-Type HTTP header to a specific value (to retrieve XML or JSON). Is there a Firefox add-on that can do this? ...

sharepoint web services in subwebs

I'm trying to build a web service that is sensitive to the subweb context (i.e., it exposes a WebMethod that needs to be able to touch lists in particular subwebs). I have deployed the web app with the following files: ISAPI/MyService.asmx ISAPI/MyServiceWsdl.aspx ISAPI/MyServiceDisco.aspx The codebehind: [WebService] public class M...

can java consume .NET object returned by ASP.NET web service?

i have an ASP.NET web service that returning a custom entity object (Staff): [WebMethod] public Staff GetStaffByLoginID(string loginID){} how would i consume this in Java? thanks! ...

How to add xsl stylesheet node to XML produced by XmlSerializer?

I have an WCF REST service which returns objects serialized with XmlSerializer. How can I add XSL stylesheet information (like the one below) to the output returned by the WCF service? <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="transforms/Customer.xsl"?> <Customer> <Name>Foo</Name> </Customer> My...