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 | Messages کی data structure اور types کیا ہیں؟ | XML Schema یا دوسرا type system |
| Interface | کون سے operations اور input/output messages ہیں؟ | Message exchange pattern اور types |
| Binding | Interface کس protocol اور wire format سے چلتا ہے؟ | Concrete transport rules |
| Service | کون سے endpoints interface فراہم کرتے ہیں؟ | ایک یا زیادہ endpoints |
| Endpoint | اصل address اور binding کیا ہے؟ | Address اور protocol implementation |
صرف operation کا نام service call کرنے کے لیے کافی نہیں۔ Service میں endpoint تلاش کرکے اس کا binding دیکھیں۔ Address اکیلا message schema، authentication یا behavior طے نہیں کرتا۔
ایک operation کی پیروی
WSDL version اور namespaces، نیز 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 سے element، attribute، لازمی values، namespace اور fault types تک جائیں۔
Deployment documentation میں authentication، authorization، TLS، رسائی، timeout، retries اور version policy دیکھیں۔
WSDL میں address ملنے سے server کی دستیابی یا آپ کی رسائی کی اجازت ثابت نہیں ہوتی۔ WSDL contract بیان کرتا ہے؛ runtime deployment الگ تصدیق کریں۔
کیا WSDL اور SOAP ایک ہی ہیں؟
نہیں۔ WSDL service contract بیان کرتا ہے؛ SOAP messaging framework ہے۔ WSDL 2.0 Part 2، SOAP 1.2 اور HTTP bindings بیان کر سکتا ہے، مگر تمام services کو SOAP تک محدود نہیں کرتا۔ منتخب binding اور client library کی extension support کی تصدیق کریں۔
WSDL پڑھتے یا code generator کو دیتے وقت external imports اور schema references دیکھیں۔ External URI خودکار طور پر لینے والا tool غیر معتبر 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/)