WSDL(Web Service Description Language) 파일은 웹 서비스를 설명합니다.
WSDL 파일은 다음 데이터를 설명합니다.
WSDL 파일을 사용하여 웹 서비스를 찾고 사용 가능한 임의의 기능을 호출할 수 있습니다.
WSDL 파일을 사용자의 프로젝트로 가져올 수 있습니다. 이 데이터를 시스템에 최상위 레벨 오브젝트로 임베디드할 수 있습니다. AddressBook.wsdl 파일을 가져왔다고 가정하고 다음 예제를 참조하십시오. 컨텐츠는 아래 표시된 것과 같습니다.
<?xml version="1.0" ?> <definitions name="urn:AddressFetcher" targetNamespace="urn:AddressFetcher2" xmlns:tns="urn:AddressFetcher2" xmlns:typens="urn:AddressFetcher2" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/"> <!-- PORT TYPE DECLARATION --> <portType name="AddressBook"> <operation name="addEntry"> <input message="tns:AddEntryRequest"/> <output message="tns:empty"/> </operation> <operation name="getAddressFromName"> <input message="tns:GetAddressFromNameRequest"/> <output message="tns:GetAddressFromNameResponse"/> </operation> </portType> ----------------------------------------------------------------------------- <service name="AddressBookService"> <PORT ELEMENT DECLARATION--> <port name="AddressBook" binding="tns:AddressBookSOAPBinding"> <soap:address location="http://localhost:8080/axis/services/AddressBook"/> </port> </service> </definitions>