Dab tsi yog schema hauv xab npum?
Dab tsi yog schema hauv xab npum?

Video: Dab tsi yog schema hauv xab npum?

Video: Dab tsi yog schema hauv xab npum?
Video: ib vuag dua li kob nag tshauv 4/23/2019 2024, Tej zaum
Anonim

Cov tswv yim schema yog a schema object (XSD) uas txhais cov qauv ntawm XML cov ntsiab lus tam sim no nyob rau hauv lub cev ntawm cov khoom SOAP thov. Cov ntsiab lus no tau muab rho tawm los ntawm cov txheej txheem cov ntaub ntawv ntawm cov txheej txheem kev lag luam uas tau khiav los ntawm lub vev xaib muab kev pabcuam thiab muab tso rau hauv SOAP lub cev ntawm cov lus teb.

Ua li no, qhov kev thov SOAP yog dab tsi?

SOAP yog XML-based raws tu qauv rau kev nkag mus rau lub vev xaib kev pabcuam dhau HTTP. Nws muaj qee qhov tshwj xeeb uas tuaj yeem siv thoob plaws txhua daim ntawv thov. SOAP yog ib txoj kev cai los yog lwm yam lus yog ib lub ntsiab lus ntawm yuav ua li cas cov kev pab cuam hauv web sib tham los yog tham nrog cov neeg siv cov kev thov uas hu lawv.

Tom qab ntawd, lo lus nug yog, dab tsi yog SOAP header? Cov SOAP < Lub taub hau > yog ib qho kev xaiv nyob rau hauv a SOAP lus. Nws yog siv los hla cov ntaub ntawv hais txog daim ntawv thov uas yuav tsum tau ua los ntawm SOAP nodes raws kab lus. Cov me nyuam tam sim ntawd cov ntsiab lus ntawm < Lub taub hau > lub npe hu ua taub hau thaiv.

Kuj tseem paub yog, dab tsi yog schema validation?

Schema Validation . Ib XML Schema precisely txhais cov ntsiab lus thiab cov yam ntxwv uas ua ib qho piv txwv XML daim ntawv. Nws kuj tseem qhia txog cov ntaub ntawv ntawm cov ntsiab lus no kom ntseeg tau tias tsuas yog cov ntaub ntawv tsim nyog raug tso cai los ntawm Web Service.

Xsd hauv xab npum yog dab tsi?

XSD (XML schema txhais) txhais lub ntsiab hauv ib daim ntawv XML. Nws tuaj yeem siv los txheeb xyuas yog tias cov ntsiab lus hauv xml daim ntawv ua raws li cov lus piav qhia uas yuav tsum muab tso rau hauv. Thaum wsdl yog ib hom ntawv XML uas piav qhia txog kev pabcuam hauv lub vev xaib. WSDL nws tus kheej adheres rau a XSD.

Pom zoo: