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: RequestHeaderType.class, header)); JAXBElement<XLSType> param = new JAXBElement<XLSType>(new QName( "http: 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(); }  @SuppressWarnings({ "restriction", "unchecked" }) static XLSType post(XLSType parameter, String url); static DetermineRouteResponseType determineRoute(
			DetermineRouteRequestType parameter, String url); @SuppressWarnings("restriction") static DetermineRouteResponseType determineRoute(
			DetermineRouteRequestType parameter, String url,
			BigInteger maximumResponses); static DetermineRouteResponseType determineRoute(String url,
			BigInteger maximumResponses, DistanceUnitType distanceUnit,
			RouteGeometryRequestType routeGeometryRequest,
			RouteInstructionsRequestType routeInstructionsRequest,
			RouteHandleType routeHandle, RoutePlanType routePlan,
			RouteMapRequestType routeMapRequest); static DetermineRouteResponseType determineRoute(String url,
			Point origin, List<Point> stops);  }
@Test @SuppressWarnings({ "restriction", "unchecked" }) public void testPostXML() throws JAXBException { Unmarshaller m = JAXBContext.newInstance(XLSType.class) .createUnmarshaller(); JAXBElement<XLSType> object = (JAXBElement<XLSType>) m .unmarshal(OpenLSClientTest.class .getResourceAsStream("/determineRouteRequest.xml")); assertNotNull(OpenLSClient.post(object.getValue(), url)); }