Cov xab npum puas siv POST lossis GET?
Cov xab npum puas siv POST lossis GET?

Video: Cov xab npum puas siv POST lossis GET?

Video: Cov xab npum puas siv POST lossis GET?
Video: Sueco - POS [Music Video] 2024, Kaum ib hlis
Anonim

Nws yog theoretically ua tau siv GET vim POST thiab Tau yog cov txheej txheem ntawm HTTP thauj raws tu qauv thiab SOAP tuaj yeem siv dhau HTTP. SOAP Cov lus thov (XML lus) feem ntau yog qhov nyuaj heev thiab cov lus hais kom suav nrog hauv cov lus nug, yog li yuav luag txhua qhov kev siv (piv txwv li JAX-WS) txhawb nqa nkaus xwb. POST.

Ib yam li ntawd, nws tau nug, qhov txawv ntawm REST thiab SOAP yog dab tsi?

KEV SIJ HAWM SOAP stands rau Simple Object Access Protocol whereas REST sawv cev rau Kev Sawv Cev Hauv Xeev. SOAP tsuas yog ua haujlwm nrog XML hom ntawv whereas REST ua haujlwm nrog cov ntawv dawb, XML, HTML thiab JSON. SOAP tsis tuaj yeem siv REST hos REST tuaj yeem siv tau SOAP.

Ib sab saum toj no, puas yog SOAP Web kev pabcuam tsis muaj tebchaws? RESTful Cov kev pabcuam hauv Web yog kiag li tsis muaj tebchaws . Kev tswj hwm lub xeev ntawm kev sib tham yog lub luag haujlwm tag nrho ntawm tus neeg siv khoom nws tus kheej. Lub server tsis pab koj nrog qhov no. Nquag, a SOAP Web Services yog tsis muaj tebchaws -tab sis koj tuaj yeem ua tau yooj yim SOAP API qhia meej los ntawm kev hloov cov lej ntawm lub server.

Tom qab ntawd, ib tug kuj yuav nug, puas yog xab npum siv HTTP txoj kev?

SOAP yog a txoj kev ntawm kev xa xov, lossis cov ntaub ntawv me me, hauv Internet. SOAP cov lus yog formatted hauv XML thiab feem ntau xa mus siv HTTP (hypertext hloov raws tu qauv). SOAP siv WSDL rau kev sib txuas lus ntawm cov neeg siv khoom thiab cov neeg muab kev pabcuam, qhov REST tsuas yog siv XML lossis JSON xa thiab txais cov ntaub ntawv.

Cov txheej txheem twg yog siv los ntawm xab npum?

SOAP (Cov Khoom Siv Yooj Yim Yooj Yim Nkag Taub Hau) yog cov txheej txheem lus uas tso cai rau cov khoom faib ntawm daim ntawv thov sib txuas lus. SOAP tuaj yeem nqa tau ntau yam ntawm cov txheej txheem qis dua, suav nrog lub vev xaib cuam tshuam Hypertext Transfer Protocol (HTTP).

Pom zoo: