Package feign.jaxb

Examples of feign.jaxb.JAXBDecoder


        @RequestLine("GET /?Action=GetUser&Version=2010-05-08") GetUserResponse userResponse();
    }

    public static void main(String... args) {
        IAM iam = Feign.builder()
                .decoder(new JAXBDecoder(new JAXBContextFactory.Builder().build()))
                .target(new IAMTarget(args[0], args[1]));

        GetUserResponse response = iam.userResponse();
        System.out.println("UserId: " + response.getUserResult().getUser().getUserId());
        System.out.println("UserName: " + response.getUserResult().getUser().getUsername());
View Full Code Here

TOP

Related Classes of feign.jaxb.JAXBDecoder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.