Examples of StudentResponseType


Examples of com.fengjing.framework.webservice.springws.domain.StudentResponseType

  public JAXBElement<StudentResponseType> searchProjects(
      @RequestPayload StudentRequestType request) {

    try {

      StudentResponseType studentResponse = objectFactory.createStudentResponseType();
      studentResponse.setName(request.getName());
      studentResponse.setDepartment("MCA");
      studentResponse.setSubject1(request.getSubject1());
      studentResponse.setSubject2(request.getSubject2());
      studentResponse.setSubject3(request.getSubject3());
      studentResponse.setTotal(request.getSubject1()+ request.getSubject2() + request.getSubject3());
      return new JAXBElement<StudentResponseType>(
          new QName("http://www.example.org/student", "studentResponse"),
          StudentResponseType.class, studentResponse);
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.