Dab tsi yog cov ntsiab lus ntawm SOAP cov lus?
Dab tsi yog cov ntsiab lus ntawm SOAP cov lus?

Video: Dab tsi yog cov ntsiab lus ntawm SOAP cov lus?

Video: Dab tsi yog cov ntsiab lus ntawm SOAP cov lus?
Video: Yog hmoov dab tsi - Gao Nou Kue ft. Mang Vang (Official Music Video) New song 2020 2024, Plaub Hlis Ntuj
Anonim

Cov Cov ntsiab lus - Hom header rau SOAP kev thov thiab cov lus teb qhia cov MIME hom rau cov lus thiab yog ib txwm ntawv / xml. Nws kuj tseem tuaj yeem hais qhia tus cim encoding siv rau XML lub cev ntawm HTTP thov los yog teb. Qhov no ua raws li cov ntawv nyeem / xml ib feem ntawm tus nqi header.

Hais txog qhov no, cov lus SOAP yog dab tsi?

A SOAP lus yog ib daim ntawv XML zoo tib yam uas muaj cov ntsiab lus hauv qab no - Lub hnab ntawv - txhais qhov pib thiab qhov kawg ntawm qhov lus . Nws yog ib qho yuav tsum muaj. Header - Muaj cov yam ntxwv xaiv tau ntawm cov lus siv nyob rau hauv processing lus , nyob rau ntawm ib qho chaw nruab nrab los yog ntawm qhov kawg kawg-point.

Qhov thib ob, SOAP thov thiab teb 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 lub ntsiab lus ntawm kev pab cuam hauv web sib tham los yog tham nrog tus neeg siv khoom daim ntawv thov uas hu lawv.

Ib sab saum toj no, lub hnab ntawv SOAP muaj dab tsi?

A SOAP lus yog encoded ua ib daim ntawv XML, uas muaj ib < Lub hnab ntawv > element, uas muaj ib qho kev xaiv xaiv, thiab ib qho yuav tsum tau muaj. Cov SOAP < Lub hnab ntawv > yog cov lub hauv paus ntsiab lus ntawm txhua SOAP lus . Nws muaj ob lub ntsiab lus me nyuam, ib qho kev xaiv, thiab yuav tsum tau ua.

Dab tsi yog hom ntsiab lus hauv

Cov Cov ntsiab lus - Hom qhov chaw header yog siv los qhia cov xov xwm hom ntawm cov peev txheej. Hauv cov lus teb, a Cov ntsiab lus - Hom header qhia tus neeg siv khoom dab tsi hom ntsiab lus ntawm qhov rov qab los cov ntsiab lus tiag yog. Hauv kev thov, (xws li POST lossis PUT), tus neeg siv khoom qhia tus neeg rau zaub mov dab tsi hom ntawm cov ntaub ntawv yog xa mus.

Pom zoo: