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

WSDL 파일에 정의된 SOAP 결함

결함 메시지가 있는 일반 WSDL 예제를 사용하여 SOAP 결함이 WSDL 파일에 정의되는 방법을 확인하십시오.

일반적인 WSDL 예제에는 “MathOps”라는 포트 유형이 들어 있습니다. “DivByZeroStruct”, “SpecialDetailStruct” 및 “OutOfBoundStruct”라는 세 개의 가능한 결함 메시지가 있는 “div”라는 조작이 있습니다.

<wsdl:portType name="MathOps">
 <wsdl:operation name="div">
  <wsdl:input message="impl:divRequest" name="divRequest"/>
  <wsdl:output message="impl:divResponse" name="divResponse"/>
  <wsdl:fault message="impl:DivByZeroStruct" name="DivByZeroStruct"/>
  <wsdl:fault message="impl:SpecialDetailStruct" name="SpecialDetailStruct"/>
  <wsdl:fault message="impl:OutOfBoundStruct" name="OutOfBoundStruct"/>
 </wsdl:operation>
</wsdl:portType>

이러한 메시지 구조의 정의는 WSDL의 앞부분에 다음과 같이 설명되어 있습니다.

<complexType name="OutOfBoundStruct">
 <sequence>
  <element name="varString" nillable="true" type="xsd:string"/>
  <element name="varInt" type="xsd:int"/>
  <element name="specialDetail" nillable="true" type="impl:SpecialDetailStruct"/>
 </sequence>
</complexType>
<complexType name="SpecialDetailStruct">
 <sequence>
  <element name="varString" nillable="true" type="xsd:string"/>
 </sequence>
</complexType>
<element name="OutOfBoundStruct" nillable="true" type="impl:OutOfBoundStruct"/>
<complexType name="DivByZeroStruct">
 <sequence>
  <element name="varString" nillable="true" type="xsd:string"/>
  <element name="varInt" type="xsd:int"/>
  <element name="varFloat" type="xsd:float"/>
 </sequence>
</complexType>

Reference topic

이용약관 | 피드백

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

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