web-services

Exposing a subset of bean properties as XML response of REST service

I'm not sure how to best explain this, so this may be a bit long, please bear with me. Let's say I have a java bean with a bunch of properties: public interface Customer { public String getFirstName(); public String getLastName(); public Address getAddress(); // embedded bean with its own properties ... // lots more } ...

Controlling what properties are serialized through a service reference

We have a service reference that points at a WCF service, this acts as a proxy to our model layer where our data access logic is being handled. Under the hood we are using Linq2Sql as the ORM to facilitate the database communication. We use the generated classes as our data access layer, but what gets returned is actually dumb DTOs obje...

Add Service Reference is generating Message Contracts

OK, this has been haunting me for a while, can't find much on Google and I am starting to lose hope so I am reverting to the SO community. When I import a given service using "Add service Reference" on Visual Studio 2008 (SP1) all the Request/Response messages are being unnecessarily wrapped into Message Contracts (named as --> "operat...

How can I write a VB5 app to consume a web service?

I'm working with one legacy application written in VB5, and I need to give it the ability to consume a web service. Anyone know how this can be done? I've heard that it can be done for VB6, but I don't have any detail on that either. ...

Seperating assemblies with web references

I am curious how others would handle this situation. I have a domain layer that includes an Address object. I then have an application that uses this object. Additionally, there is an asp.net asmx web service that performs address validation by going out to a third party web service. I am curious how to deal with this functionality. ...

XCelsius using ZOHO webservice

Hello to all, I need to make a dashboard application using data from http://www.projects.zoho.com It is a project management site. ZOHO provides data about projects by APIs available at http://www.zoho.com/projects/developers/projects-api.html So can I use XCelsius engage to make my dashboard? Is it feasible & advisable? Also tell m...

Not redirect inside facebook server, using Facebook webservice

I developed facebook application using friends_get using netbean. This application from inside Facebook will display only the default servlet output in the Callback servlet and it will not redirect. But when i run in localhost it will redirect from server. ...

Alternative to web services in Java

I have this external module of my system and I thought to integrate it with web services. So I wrote the server using annotations (so far so good) and then I used Eclipse (new Web Service Client wizard) to generate the boilerplate code for the client. The result is an ugly bunch of code far from configurable, painful to test and to chang...

Could it be harmful to add a parameter to a webservice ?

Hi all I have a few webservices (.net 2.0/ C#) used by many partners. One of them want to be able to send an other parameter. Can I had a parameter to a method and be sure that there won't be any consequences on the other partners whatever technology they use to call us ? Thanks ...

Stateful Java Web Services and .NET Client

Please provide a sample stateful webservice in java which would be accible in both java and .net clients. ...

Is there a standard way for representing Maps in SOAP WS

By maps I mean lists of unique key-value pairs. Is there a language-independent recommended architecture? ...

Simple RIA backend

I'm creating a prototype for a java web application. Frontend is a Swing-based java applet. Backend should be a type of web-service, that is called by applet. Backend should run inside a servlet container and should have its own security (username/password) database. I know, that Tomcat has its own user database (realm), but the app shou...

Spring Map a file to a Url / URI

I have a spring webservice for which I have the schema in a directory as: WebRoot/DataContract/person.xsd WebRoot/DataContract/sub-person.xsd Where sub-person.xsd is included in person.xsd that is: in Person.xsd: <xsd:import namespace="http://www.mynamespace.org/xml/sub-person" schemaLocation="sub-person.xsd"/...

Returning a Dataview in a WCF Service

I have a method in my web service which returns a DataView, I have setup a proxy which talks to this service but when i make this method in the proxy public DataView GetSales(DateTime SalesDate) { ServiceClient client = new ServiceClient(); return client.GetSalesForDay(SalesDate); } I get the error "Cannot impl...

Calling Web Service with primitive types within Orchestration - Can't map request message.

Hi everybody. I'm running into this problem when trying to call a SOAP Web Service from within a Biztalk orchestration. The Web Service is an abapi exposed by SAP as a SOAP Web Service, and the signature of the web method I want to call is something like this: Operation(param1 as System.String, param2 as System.String, param3 ArrayOfS...

Log response-time in restlet-based webservice

What is the simplest way to log the response-time for a restlet-based webservice? I want to make sure that our webservice has a reasonable response time. So I want to be able to keep an eye on response times, and do something about the requests that take too long. The closest thing I could find is this recipe: http://www.naviquan.com/b...

.net web service: Can't add service reference, only web reference

I have an existing project that consumes web services. One was added as a service reference, and the other as a web reference. I don't recall why one was added as a web reference, but perhaps it's because I couldn't get it to work! The existing service reference for the one web service works fine, so it's not a .net version issue. I c...

REST: Mapping application errors to HTTP Status codes

Is it to be considered good practice to reuse RFC HTTP Status codes like this, or should we be making up new ones that map exactly to our specific error reasons? We're designing a web service API around a couple of legacy applications. In addition to JSON/XML data structures in the Response Body, we aim to return HTTP Status Codes tha...

Consuming PHP webservice method with a boolean return value with .NET

I have a PHP SOAP (NuSOAP) web service method that returns a boolean value. I've executed the method in a 3rd party test application, and it seems to return the value fine. If I look directly at the XML message that's returned, it looks fine as well - returns "true" and "false" when it's supposed to. However, when I write a sample appli...

what's integration experience in java context ?

A client is looking for integration experience - I have done JMS and web services work in the past, but I am not too sure if that qualifies as integration experience. Pardon my limited knowledge about this field but I don't want to let go on this opportunity. Just in a bit of rush .. So asking it here.. They are also looking for ESB (ent...