WSDL 2.0 पढ़ना: service contract से endpoint तक
WSDL 2.0 XML description language है जो service messages और operations बताती है तथा abstract interface को transport और wire format से जोड़ती है। पढ़ते समय abstract contract और वास्तविक network address में फर्क करें। यह लेख W3C WSDL 2.0 Recommendation पर है; WSDL 1.1 की संरचना समान मानकर नहीं चलता।
WSDL 2.0 XML description language है जो service messages और operations बताती है तथा abstract interface को transport और wire format से जोड़ती है। पढ़ते समय abstract contract और वास्तविक network address में फर्क करें। यह लेख W3C WSDL 2.0 Recommendation पर है; WSDL 1.1 की संरचना समान मानकर नहीं चलता।
Abstract विवरण और concrete connection
| भाग | कौन-सा प्रश्न | आगे क्या |
|---|---|---|
| Types | संदेशों की data structure और types क्या हैं? | XML Schema या अन्य type system |
| Interface | कौन-से operation और input/output messages हैं? | Message exchange pattern और types |
| Binding | Interface किस protocol और wire format पर चलता है? | Concrete transport rules |
| Service | कौन-से endpoint interface देते हैं? | एक या अधिक endpoint |
| Endpoint | वास्तविक address और binding क्या है? | Address और protocol implementation |
केवल operation नाम से service call नहीं होती। Service के अंतर्गत endpoint खोजें और उसका binding देखें। Address अकेले message schema, authentication या व्यवहार नहीं बताता।
एक operation को trace करें
WSDL version और namespace जाँचें, साथ में imported descriptions और type schemas भी।
Service में सही endpoint चुनें; development, staging और production addresses अलग रखें।
Endpoint के binding से transport, wire format, action और extensions जानें।
उससे जुड़े Interface में operation और message exchange pattern ढूँढ़ें।
Input/output types को elements, attributes, required values, namespace और fault types तक trace करें।
Deployment documentation में authentication, authorization, TLS, reachability, timeout, retries और version policy देखें।
WSDL में address मिलने से server की उपलब्धता या access permission सिद्ध नहीं होती। WSDL contract बताता है; runtime deployment अलग जाँचें।
क्या WSDL और SOAP एक ही हैं?
नहीं। WSDL service contract का वर्णन करता है; SOAP messaging framework है। WSDL 2.0 Part 2 SOAP 1.2 और HTTP binding बता सकता है, पर WSDL हर service को SOAP तक सीमित नहीं करता। चुना हुआ binding और client library की extension support जाँचें।
WSDL पढ़ते या code generator को देते समय external imports और schema references भी देखें। बाहरी URI अपने-आप लेने वाला tool untrusted resource ला सकता है या cycles में फँस सकता है। स्रोत और network/resource limits जाँचें।
स्रोत
[W3C WSDL 2.0 Part 1: Core Language](https://www.w3.org/TR/wsdl/)
[W3C WSDL 2.0 Part 2: Adjuncts](https://www.w3.org/TR/wsdl20-adjuncts/)