2008년 09월 09일
WSDL
WSDL(Web Services Description Language의 약자)은 웹 서비스 기술언어 또는 기술된 정의 파일의 총칭으로 XML로 기술된다. 웹 서비스의 구체적 내용이 기술되어 있어 서비스 제공 장소, 서비스 메시지 포맷, 프로토콜 등이 기술된다.
예제
WSDL 2.0 문서의 구조:
<?xmlversion="1.0"encoding="UTF-8"?><descriptionxmlns="http://www.w3.org/ns/wsdl"xmlns:tns="http://www.example.com/wsdl20sample"xmlns:whttp="http://www.w3.org/ns/wsdl/http"xmlns:wsoap="http://www.w3.org/ns/wsdl/soap"targetNamespace="http://www.example.com/wsdl20sample"> <!-- Abstract types --> <types> <xs:schemaxmlns="http://www.example.com/wsdl20sample"xmlns:xs="http://www.w3.org/2001/XMLSchema"targetNamespace="http://www.example.com/wsdl20sample"> <xs:elementname="request"> <xs:complexType> <xs:sequence> <xs:elementname="header"maxOccurs="unbounded"> <xs:complexType> <xs:simpleContent> <xs:extensionbase="xs:string"> <xs:attributename="name"type="xs:string"use="required"/> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> <xs:elementname="body"type="xs:anyType"minOccurs="0"/> </xs:sequence> <xs:attributename="method"type="xs:string"use="required"/> <xs:attributename="uri"type="xs:anyURI"use="required"/> </xs:complexType> </xs:element> <xs:elementname="response"> <xs:complexType> <xs:sequence> <xs:elementname="header"maxOccurs="unbounded"> <xs:complexType> <xs:simpleContent> <xs:extensionbase="xs:string"> <xs:attributename="name"type="xs:string"use="required"/> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> <xs:elementname="body"type="xs:anyType"minOccurs="0"/> </xs:sequence> <xs:attributename="status-code"type="xs:anySimpleType"use="required"/> <xs:attributename="response-phrase"use="required"/> </xs:complexType> </xs:element> </xs:schema> </types> <!-- Abstract interfaces --> <interfacename="RESTfulInterface"> <faultname="ClientError"element="tns:response"/> <faultname="ServerError"element="tns:response"/> <faultname="Redirection"element="tns:response"/> <operationname="Get"pattern="http://www.w3.org/ns/wsdl/in-out"> <inputmessageLabel="GetMsg"element="tns:request"/> <outputmessageLabel="SuccessfulMsg"element="tns:response"/> </operation> <operationname="Post"pattern="http://www.w3.org/ns/wsdl/in-out"> <inputmessageLabel="PostMsg"element="tns:request"/> <outputmessageLabel="SuccessfulMsg"element="tns:response"/> </operation> <operationname="Put"pattern="http://www.w3.org/ns/wsdl/in-out"> <inputmessageLabel="PutMsg"element="tns:request"/> <outputmessageLabel="SuccessfulMsg"element="tns:response"/> </operation> <operationname="Delete"pattern="http://www.w3.org/ns/wsdl/in-out"> <inputmessageLabel="DeleteMsg"element="tns:request"/> <outputmessageLabel="SuccessfulMsg"element="tns:response"/> </operation> </interface> <!-- Concrete Binding Over HTTP --> <bindingname="RESTfulInterfaceHttpBinding"interface="tns:RESTfulInterface"type="http://www.w3.org/ns/wsdl/http"> <operationref="tns:Get"whttp:method="GET"/> <operationref="tns:Post"whttp:method="POST"whttp:inputSerialization="application/x-www-form-urlencoded"/> <operationref="tns:Put"whttp:method="PUT"whttp:inputSerialization="application/x-www-form-urlencoded"/> <operationref="tns:Delete"whttp:method="DELETE"/> </binding> <!-- Concrete Binding with SOAP--> <bindingname="RESTfulInterfaceSoapBinding"interface="tns:RESTfulInterface"type="http://www.w3.org/ns/wsdl/soap"wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP/"wsoap:mepDefault="http://www.w3.org/2003/05/soap/mep/request-response"> <operationref="tns:Get"/> <operationref="tns:Post"/> <operationref="tns:Put"/> <operationref="tns:Delete"/> </binding> <!-- Web Service offering endpoints for both the bindings--> <servicename="RESTfulService"interface="tns:RESTfulInterface"> <endpointname="RESTfulServiceRestEndpoint"binding="tns:RESTfulInterfaceHttpBinding"address="http://www.example.com/rest/"/> <endpointname="RESTfulServiceSoapEndpoint"binding="tns:RESTfulInterfaceSoapBinding"address="http://www.example.com/soap/"/> </service></description>
--출처 : 위키백과
이 글과 관련있는 글을 자동검색한 결과입니다 [?]
- 이건 wwww by kkendd
- HTTP POST by 시험さま
- Open API계의 샛별, 오픈마루의 스프링노트 개발분투기 by xissy
- [펌] 웹 서비스와 관련된 질문 중에서 가장 많이 언급되는 10가지 질문 by 나는곰
- XSD로 class 만들기 by 만수루
# by | 2008/09/09 11:10 | 기타 | 트랙백 | 덧글(0)





☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]