WebSphere Web Services Client for C++, Version 1.0.1 운영 체제: Linux, Windows

클라이언트 스텁 작성

웹 서비스 클라이언트 응용프로그램을 작성하기 전에 먼저 WSDL2Ws 도구를 사용하여 클라이언트 스텁을 생성해야 합니다.

시작하기 전에

클라이언트 스텁을 작성하는 데 사용하는 WSDL은 유효하고 올바른 형식인 것으로 가정합니다.

이 타스크를 수행하는 이유 및 시기

아래 단계에서는 WebSphere Application Server(버전 5.0 이상)와 함께 제공된 설치 웹 서비스 샘플에 있는 WSDL 예제를 사용합니다. 이 샘플은 WSDL2Ws 사용에 대해 자세히 소개하고 있습니다.

WSDL 소스 파일에서 클라이언트 스텁을 생성하려면 다음 단계를 수행하십시오.

이 타스트의 단계

  1. 디렉토리를 클라이언트 스텁을 빌드할 디렉토리(예: <inst_dir>/samples/getQuote)로 변경하십시오.
  2. WSDL2Ws 도구를 실행하여 클라이언트 스텁을 생성하십시오. 이를 위해 다음 예제에 표시된 명령을 사용하여 <inst_dir>/samples/getQuote 디렉토리에 스텁을 작성하십시오.
    java –classpath <inst_dir>/WSDL2Ws/wsdl2ws.jar;
    <inst_dir>/prereqs/java/axis.jar;<inst_dir>/prereqs/java/commons-discovery.jar;
    <inst_dir>/prereqs/java/commons-logging.jar;<inst_dir>/prereqs/java/jaxrpc.jar;
    <inst_dir>/prereqs/java/saaj.jar;<inst_dir>/prereqs/java/wsdl4j.jar 
    org.apache.axis.wsdl.wsdl2ws.WSDL2Ws GetQuote.wsdl 
    -omyGetQuote -sclient

결과

GetQuote.wsdl의 스텁은 <inst_dir>/samples/getQuote 상위 디렉토리 내에 있는 하위 디렉토리 myGetQuote에 생성됩니다. 스텁을 이 디렉토리에 그대로 둘 경우 클라이언트 응용프로그램 코딩 및 빌드의 지시사항을 수행할 때 즉시 사용할 수 있습니다.

다음에 수행할 작업

C++ 스텁이 작성되었으므로 클라이언트 응용프로그램의 코딩 및 빌드를 시작할 수 있습니다.

Task topic

이용약관 | 피드백

시간소인 아이콘마지막 갱신 날짜: 3 Mar 2006
http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.websphere.wscc.doc.nl1\tasks\wscc_tdevel_clistubs.html

(C) Copyright IBM Corporation 2005. All Rights Reserved.
이 information Center는 Eclipse 기술을 기반으로 합니다. (http://www.eclipse.org)