class OpenLSClient {

	@SuppressWarnings({ "restriction", "unchecked" })
	public static XLSType post(XLSType parameter, String url) {

		Client client = Client.create();

		RequestHeaderType header = new RequestHeaderType();

		parameter.setHeader(new JAXBElement<RequestHeaderType>(new QName(
				"http://www.opengis.net/xls", "RequestHeader"),
				RequestHeaderType.class, header));

		JAXBElement<XLSType> param = new JAXBElement<XLSType>(new QName(
				"http://www.opengis.net/xls", "xls"), XLSType.class, parameter);

		WebResource resource = client.resource(url);

		GenericType<JAXBElement<XLSType>> xlsType = new GenericType<JAXBElement<XLSType>>() {
		};

		JAXBElement<XLSType> response = resource
				.type(MediaType.APPLICATION_XML).post(xlsType, param);

		return response.getValue();
	}

}