WSDL 2.0 পড়া: service contract থেকে endpoint পর্যন্ত
WSDL 2.0 হলো service message ও operation বর্ণনার XML ভাষা, যা abstract interface-কে transport ও wire format-এর সঙ্গে যুক্ত করে। পড়ার সময় abstract contract এবং বাস্তব network address আলাদা করুন। এই নির্দেশিকা W3C WSDL 2.0 Recommendation নিয়ে; WSDL 1.1-এর গঠন একই ধরে না।
WSDL 2.0 হলো service message ও operation বর্ণনার XML ভাষা, যা abstract interface-কে transport ও wire format-এর সঙ্গে যুক্ত করে। পড়ার সময় abstract contract এবং বাস্তব network address আলাদা করুন। এই নির্দেশিকা W3C WSDL 2.0 Recommendation নিয়ে; WSDL 1.1-এর গঠন একই ধরে না।
Abstract বর্ণনা ও concrete সংযোগ
| অংশ | যে প্রশ্নের উত্তর | পরের সংযোগ |
|---|---|---|
| Types | Message-এর data structure ও type কী? | XML Schema বা অন্য type system |
| Interface | কোন operation ও input/output message আছে? | Message exchange pattern ও type |
| Binding | কোন protocol ও wire format interface বাস্তবায়ন করে? | নির্দিষ্ট transport নিয়ম |
| Service | কোন endpoint interface দেয়? | এক বা একাধিক endpoint |
| Endpoint | ব্যবহারযোগ্য address ও binding কী? | Address ও protocol implementation |
Operation-এর নাম জানলেই service call করা যায় না। Service-এর মধ্যে endpoint খুঁজে তার binding অনুসরণ করুন। Address একা message schema, authentication বা আচরণ নির্ধারণ করে না।
একটি operation অনুসরণ করুন
WSDL version ও namespace নিশ্চিত করুন; imported description এবং type schema-ও দেখুন।
Service-এর সঠিক endpoint বাছুন; development, staging ও production address আলাদা করুন।
Endpoint-এর binding থেকে transport, wire format, action ও extension দেখুন।
যুক্ত Interface-এ operation ও message exchange pattern খুঁজুন।
Input/output type থেকে element, attribute, required value, namespace ও fault type অনুসরণ করুন।
Deployment documentation-এ authentication, authorization, TLS, reachability, timeout, retry ও version policy দেখুন।
WSDL-এ address পাওয়া server সচল বা আপনার access অনুমোদিত—এটি প্রমাণ করে না। WSDL contract বর্ণনা করে; runtime অবস্থা আলাদা যাচাই করুন।
WSDL ও SOAP কি একই?
না। WSDL service contract বর্ণনা করে; SOAP হলো messaging framework। WSDL 2.0 Part 2 SOAP 1.2 ও HTTP binding বর্ণনা করতে পারে, কিন্তু সব service-কে SOAP-এ সীমাবদ্ধ করে না। নির্বাচিত binding এবং client library-র extension support যাচাই করুন।
WSDL পড়া বা code generator-এ দেওয়ার সময় external import ও schema reference পরীক্ষা করুন। বাইরের URI স্বয়ংক্রিয়ভাবে আনা tool অবিশ্বস্ত resource ডাউনলোড করতে বা cycle-এ পড়তে পারে; উৎস ও network/resource limit যাচাই করুন।
সূত্র
[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/)