web-services

How to save binary data from a XML response using XMLSpy or SoapUI

I'm using XMLSpy and SoapUI and making a web services (ws) call to Fedex to generate a label. The response back from Fedex is a PNG or PDF file embedded in a web services response. How can I save that the PNG/PDF element? ...

Generate webservice stub from wsdl in Java

I am working on eclipse plugin which will have a wizard. This wizard will be available form example from context menu while mouse right click on Java editor. The wizard will be responsible for collecting such information as: location of WSDL filePackage name When the wizard finishes, I would like to have stub of a webservice described...

Deploying an identical war file with a different name causes the old one to stop?

We have an Apache tomcat server that runs a current web service. We were trying to deploy a second version (with a few tweaks) however when we copy the war file over, the first one stops working. Why?? ...

Does a tomcat server has to be stopped before copying a war file into it?

I did not stop the server and copied a war file into it causing tomcat service to be in a hung state. The odd thing is that the new service worked fine whereas the old one stopped working. ...

How to write python web service server WSDL?

All the stuff I am seeing points me towards writing clients. ...

Is my web service RESTFUL?

I have a REST web service which exposes 2 methods- [POST method] Client will supply a list of objects in the form of an XML. My web service method will insert/update the list of objects based on one attribute in the object [mode = insert/update], and will return an XML with the list of objects and their status[whether insert/update was...

Empty Hibernate cache on demand

I'm writing a soap web service: Jboss + Hibernate + Java. Database on PostrgreSQL. After publishing the webservice, it runs perfectly. For testing purposes I change data on the database by opening pgAdmin, and changing the values on the rows by hand. Now, the problem is, Hibernate is not aware of those changes. Not until I re-publish th...

Multiple Insert/Update business objects in REST

I have a requirement where I will receive multiple business objects from the client and my service has to insert/update all of them. Can I implement a REST webservice which will have a POST method and will accept a list of business objects and will update/insert all of them into the system? I have read that we should use a POST method t...

Is there a .net solution for sending/receiving json other than IIS

What I basically need is a small console application that listens on port 80 and is capable of putting json objects around. Receiving value types, objects and List<T> (or array) from a JSON client and converting them to .net classes Sending value types, objects and List<T> to the client Outputting some info to the console Performance...

Resource server desgin for Enterprise apps

Hi, I am working on design for a resource server. I want to gather some industry best practices on it. Scenario: A data driven portal application hosted on a web farm. Whenever a request comes, controls are rendered and response is sent. For each image on the page, browser requests for the image separately using a webservice. Since ...

WCF WebService Security: How do I use security on a WebService?

I created a simple .NET WebService (it just passes back a string). How do I modify the server side (and possibly the client side) so that it also uses a username/password to validate before sending a response? Client Code: static void Main(string[] args) { UpdateClient client = new UpdateClient("UpdateSOAPIIS"); client.ClientC...

Whole bunch of web service calls give a port already in use error!

So I have a java app that happily talks to a web service and asks it for stuff several hundred times in a span of 20 mintues. Everything was working fine using the test web service (but slow).. when I connected my app the the real web service, I noticed it was much much faster but but I get an exception: I/O exception (java.net.BindExc...

xfire: Intercepting Webservice header information

Hi , I have some webservices exposed through xfire and want to have security around those webservice calls. How can I add security without changing anything inside the web services? Basically I want to intercept these webservice calls before it is reaching actual webservice and to authenticate those calls. Please help me Regards Vishal...

Can WCF handle a non 200 response?

Perhaps I'm overlooking something, but can client WCF not handle a server response that isn't a 200? For example, I'm trying to consume a service that returns a 400 when you asked for something naughty, but the body of the response is still a perfectly good and consumable SOAP message. It does the same for requested data that doesn't exi...

Is there one decent tutorial out there that shows how to provide a web service using Python that is not outdated?

I am having the hardest time finding any resources that decently walk you through in terms of setting up a basic web service that can be accessed. Most of the stuff I am seeing is on the client side. The imports people talk about are all outdated and/or are buggy or rely heavily on established frameworks. I prefer SOAP so can anyone plea...

Can't add web reference to migrated ASP.NET project

I have upgraded two old (VS 2003/2005) projects to Visual Studio 2008. One is a web service project, and the other is a web application that references the first one. They were running on XP developer boxes and Server 2003. I'm trying to get them to run on my Windows 7 box with IIS 7. When I try to add a reference to the locally runn...

Silverlight and SSL Client Certificates

Can anyone point me in the right direction of how I can use SSL client-side certificates with Silverlight to access a restful web service? I can't seem to find anything on how to handle them, or even whether they are supported. Cheers. ...

java WebServices Tutorial

Hi, I want to learn concepts of WebService and like to implement with Java .Please point me a good tutorial for this. Thx ...

Adding web service bindings into SharePoint web.config using SPWebConfigModification

This is a solution rather than a question actually. The problem was: I had a SharePoint web part which used a WCF service. To consume the web service in my web part, I needed to modify the SharePoint web.config to include bindings and end points. To be able to do this, I put my web service configuration into a text file as a template. T...

Web Service client on java, multiple calls to Service.create() case memory leak

I found that the javax.xml.ws.Service.create() multiple calls case memory leak. I solve that issue by reuse the result of this command. I don't understand what was the reason of this memory leak, cause all the members that we declared is local (inside the one method). public String callService() { ................... QName servi...