I'm looking for an example of a java desktop application that consumes a Two-way SSL secured web service. Any tutorials or examples would be great, especially if they are based on the Eclipse IDE.
Thanks.
...
I have a endpoint mapping a webservice which is used to insert in the dabatabase some keywords:
@Transactional(readOnly = false,isolation= Isolation.SERIALIZABLE)
public Source saveKW(...).
The input is a request.
I would like to add an interceptor on the method in order to validate the parameters.
this one will read some values fro...
Is there an easy way to map a directory in the web.xml or other deployment descriptor (jetty.xml, etc) files?
For example, if I have a directory /opt/files/ is there a way that I can access its files and sub-directories by visiting http://localhost/some-mapping/? It strikes me that there should be some simple way of doing this, but I ha...
I must be missing something very basic. Here is the scenario
We have a ASP.NET 2.0 WebService (Server 2003) with the following settings:
SSL
Integrated Security
Anom. Access DISABLED
Running under NETWORK SERVICE
Exposed (i.e. can access from public
internet)
Service returns data from database
using application username/password,
does...
Let's assume that Stackoverflow offers web services where you can retrieve all the questions asked by a specific user. A request to get all question from user A can result in the following json output:
{
{
"question": "What is rest?",
"date_created": "20/02/2010",
"votes": 1,
},
{
"question":...
I have a web service that needs to be able to verify the end-user's IP that called the server-script that is requesting the web service. Simple layout:
Person A goes to Webpage B. Webpage B calls Web Service C to get some info on Person A. Web Service C won't give Webpage B the requested information without confirmation that the request...
I'm trying to find a way to delay all code that takes place after I make a service call. The reason for this delay is that my service returns code necesarry for the following functions and the result I pass is to these following functions is undefined.
I have tried attaching the setTimeout() to the function that is called directly afte...
Hello,
I'm designing a web application, which will support both standard UIs (accessed via browsers) and a RESTful API (an XML/JSON-based web service). User agents will be able to differentiate between these by using different values in the Accept HTTP header.
The RESTful API will use the following URI structure (example for an "articl...
I am trying to create an asp.net web form that allows a user to enter information, then have this information sent via an XMLwriter to a web service.
Here is a snippet of the xml as it should be outputted;
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body xmlns:ns1="http://its/foo.wsdl">
I try t...
Hi,
I have inherited a web site project that makes use of a number of WCF Web Services hosted on a BizTalk server.
We have two environments that I need to deploy this project to, with different URLs for the different BizTalk servers.
i.e. In the Staging environment, I need to point the services at xx.xx.xx.101
In the Live environment, ...
Imagine some kind of a banking application, with a screen to create accounts. Each Account has a Currency and a Bank as a property, Currency being a separate class, as well as Bank. The code might look something like this:
public class Account
{
public Currency Currency { get; set; }
public Bank Bank { get; set; }
}
public clas...
I'm building a Web Service in C# with VS2008, and want to implement WS-Addressing, so the message headers look like eg below:
What do I need to add / do in VS2008 to make this happen?
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:wsa="http://www.w3.org/2005/08/address...
Hi,
I am calling a web service that is online.
Sometime (not all the times) crashes and gives me the following exception:
Redirect (authentication_redirect_to_virtual_host)
You are being redirected to the authentication virtual host.
For assistance, contact your network support team.
but I can open the web service from the browse...
What are your experiences on using If-Match to implement an optimistic locking scheme on a web service?
To simplify things, let's say we're building a simple CMS, consisting solely on "pages", each having just a body. If two users begin editing the same page simultaneously, then only the changes made by the user who were last to save ar...
I need to incorporate a pretty complex 3rd party web service into my Grails app. My plan was to use WSDL2Java to generate the stub classes from the wsdl, and this was the method recommended in the 3rd party's documentation (complete with examples). First i tried to use the Axis2 codegen plugin for Eclipse but eventually came up against ...
I have been writing web services for about a year now and it seems that the process I use to get data from the Database all the way to display to the user and back again has some inefficiencies.
The purpose of this question is to make sure that I am following best practices and not just adding extra work in.
Here is the path for data ...
Problem is very well known - you can't return collection from web method that implements IDictionary. I'm not looking for a way to serialize IDictionary in xml.
How do you work around this in .net 2.0?
I need to return a collection from web method that looks like:
Key, String value
Key, String value
Key, DataTable value
So I would n...
Hello!
I am developing a web project, which uses a database with many places worldwide and their geolocations (latitude and longitude).
I am looking for any free web services and APIs, working with coordinates and returning any useful and interesting data in possible to parse format.
I want to make my project more complete, useful and...
I have an containing a list of divs that jQuery turns into progress bars. On .ready, I build a list of all of these progress bars and for each one, call a webservice that gets a value indicating how full the progress bar should be. In order to do this, I need to pass the ID of the div to the web service.
Because the divs are inside a ...
We have a cluster of window services that acts as a "hub". These services will consume a number of 3rd party web services. Currently we have maxConnection set to 20. However, there are times when the services are handling more then 20 concurrent requests each and any calls to external web services will be dropped.
Is there anything w...