클라이언트 응용프로그램은 웹 서비스 API에 요청을 전송하거나 웹 서비스 API에서 응답을 수신합니다. 프록시 클라이언트를 사용하여 통신을 관리하고 헬퍼 클래스를 사용하여 복잡한 데이터 유형을 형식화하여 클라이언트 응용프로그램은 웹 서비스 메소드를 로컬 함수처럼 호출할 수 있습니다.
// create the service locator and the proxy BFMWSServiceLocator locator = new BFMWSServiceLocator(); BFMIF proxy = locator.getBFMWSPort(); // prepare the input data for the operation GetProcessTemplate iW = new GetProcessTemplate(); iW.setIdentifier(your_process_template_name); // invoke the operation GetProcessTemplateResponse oW = proxy.getProcessTemplate(iW); // process output of the operation ProcessTemplateType ptd = oW.getProcessTemplate(); System.out.println("getName= " + ptd.getName()); System.out.println("getPtid= " + ptd.getPtid());
ⓒ Copyright IBM Corporation 2005, 2006.
이 Information Center는 Eclipse 기술을 기반으로 합니다. (http://www.eclipse.org)