web-services

web service / wcf service, is it ever better to return a dataset?

Hi, So from what I've seen about services, custom objects seem to be the way to go when the service is written to return data. If I am writing a service that will be used to 1) populate a database, or 2) provide information for a web site, is there ever a use for returning a dataset/datatable as opposed to a list of custom objects with...

Why Python omits attribute in the SOAP message?

I have a web service that returns following type: <xsd:complexType name="TaggerResponse"> <xsd:sequence> <xsd:element name="msg" type="xsd:string"></xsd:element> </xsd:sequence> <xsd:attribute name="status" type="tns:Status"></xsd:attribute> </xsd:complexType> The type contains one element (msg) and one attribute (sta...

How to avoid conflicts when using services? (.NET C#)

Imagine I have this class namespace CommonLibrary { public class Report() { public DateTime Begin { get; set; } public int Count { get; set; } } } This is the return type of a WCF Service method. When I use svcutil.exe it regenerates the class from metadata: namespace CommonLibrary { [System.Code...

Mono ASP.Net Web Service CacheDuration hit ratio, under Linux.

I have developed an ASP.Net Web Service targeting Mono. I have deployed it to an OpenSUSE 11.1 VM running Mono under Apache. Is there a way to monitor the @OutputCache hit ratio for my ASP.Net app deployed for Mono under a Linux OS similar to the Windows Performance Monitor, for example? This does not have to necessarily involve perfo...

Most RESTful Authentication Approach - Who is using it?

Duplicate: this must be a duplicate of one of the questions that come up in the following search: http://stackoverflow.com/questions/tagged/rest+authentication. Please close it as a duplicate if you agree, and add any answers to one of the other questions. What is the most RESTful form of authentication? What websites use it? (so I ca...

Data server to iPhone and back

Web services -> core data -> controller -> view and then reverse... Sound right? Or is there a better way, one that avoids the complexity of SOAP? Additionally can core Data recognize XML coming from SOAP? Thanks // :) ...

Consuming Webservice using UTL_DBWS

Background: We have a Webservice that is running under axis2 on a Tomcat. We would like our Oracle (10g Enterprise Edition Release 10.2.0.1.0) db to call our Webservice when a new row is entered into one of our tables. We've discovered we can use a trigger to call a Java Stored Procedure (JSP) or us PL/SQL and the UTL_DBWS utility. Neith...

Scalability of Duplex Polling with Silverlight / IIS

I have been building a client / server app with Silverlight, web services, and polling. Apparently I missed the whole Duplex Communication thing when I was first researching this subject. At any rate, the MSDN article I saw on the subject was promising. When researching the scalability, it appears as if there's conflicting opinions on...

asp.net Web services issue

I have a webservice that returns a weather information to the client. When I run the webservices internally it runs perfectly fine.. But when client runs it, the client app hangs. On testing, I see that everything runs perfectly fine but by the end before sending response the processing just stops and never returns anything. So client ap...

WebServices never returned data back

I have a web services app written in C# that takes an array of data as the input and returns also an array of data as the output. I also wrote a client application that uses this web services app. One of my remote clients had an issue that the client app hung after it was started. They used an array of about 4k records. I ran the same r...

win service or scheduled task to Periodically Call a Web Service?

I have a web service which I would like to call on a scheduled basis. Currently, I have a scheduled task setup to execute the call. Here's a link Jon Galloway's post on the topic. I'm planning to switch this out with a Win Service, simply to appease my boss, but I'm wondering what the advantages are (aside from keeping my job ;). I pe...

Can't get a JSON object to return from ASP.NET web servive using jQuery

I am finding many "solutions" to this seemingly common problem, but alas, none seem to work for me - of course. I have some jQuery code that is trying to post to an ASP.NET 3.5 web service. The web service is supposed to return some json. I am getting 501 Internal Server errors with the code below, but according to the solutions found...

How do I serialize all properties of an NHibernate-mapped object?

I have some web methods that return my objects back as serialized XML. It is only serializing the NHibernate-mapped properties of the object... anyone have some insight? It seems to be that the web methods are actually serializing the NHibernate proxies instead of my classes. I've tried using [XMLInclude] and [XMLElement], but the pro...

How to force VS to use appSettings value instead of My.Settings for WebService Reference

In visual studio 2008 when you add a web service reference, and set the Url behavior to dynamic it will create a My.Settings.Namespace.Webservice setting in a special My.Settings section in the web.config i do not like this style, i want to keep using the appSettings>value for this. how can i tell visual studio to use appSettings instead...

grails xfire can't seem to send large blobs

I am running a groovy program that zips up some files and then I need to send that file to an XFIRE web service - what is the best way to get this done? the file(s) could be 1-5 Megs at most Thanks! The following code code byte[] data = new File(file).readBytes() def getProxy(wsdl, classLoader) { new WSClient(wsdl, classLoader) }...

How do I get a Rails application to talk to a web service that wraps some C# logic ?

This is more of a technology stack question. the C# logic is pre-existing / legacy and is internally a multiple-machine/distributed app. My need is to implement an overview web interface. So I've been looking at doing a prototype in Ruby On Rails. Now my knowledge is a day or 2 old here... so correct me if i am wrong. there used to be ...

SSL Client Cert Verification optimisation

We currently have a group of web-services exposing interfaces to a variety of different client types and roles. Background: Authentication is handled through SSL Client Certificate Verification. This is currently being done in web-service code (not by the HTTP server). We don't want to use any scheme less secure than this. This post ...

C# Rest web service and Android Client

Hay, I'm taying to make a simple Rest web service in C# and client on android. I find a simple C# web service, which add two number, on this link: http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/RESTEnabledService05122009034907AM/RESTEnabledService.aspx Can anyone help me to make Android client for this web service Thanks ...

Declarative web-service authorisation & WSDL typing

We currently have a group of web-services exposing interfaces to a variety of different client types and roles. Background: The web-service application code is (and will stay) written in a weakly typed dynamic language. Authentication is handled seperately, this post is about Authorisation. All operations exposed by the web-services ...

Which is fastest to transmit: XML or DataTables?

Hello, I would like to know which is faster. Let me give you the scenario. I'm on a LAN, have a report to build using data from a SQL Server database (if we need the version let's say 2005) and have these ways of getting the report done: (1). Have a web service at the server, where the data is taken from the server and serialized into ...