2010-05-21 25 views
5

Doğrudan tarayıcıdan servis sağlayıcıya SOAP isteği göndermek mümkün mü? Ve sonra sonucu göstermek için javascript içinde çıktı ayrıştırır?Tarayıcıdan SOAP isteği nasıl gönderilir?

Örneğin, ben bir SOAP isteği like this yasiyorsaniz:

POST /InStock HTTP/1.1 
Host: www.example.org 
Content-Type: application/soap+xml; charset=utf-8 
Content-Length: nnn 

<?xml version="1.0"?> 
<soap:Envelope 
xmlns:soap="http://www.w3.org/2001/12/soap-envelope" 
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> 

<soap:Body xmlns:m="http://www.example.org/stock"> 
    <m:GetStockPrice> 
    <m:StockName>IBM</m:StockName> 
    </m:GetStockPrice> 
</soap:Body> 

</soap:Envelope> 

Sonra 'IBM'in hisse fiyatı' alabileceği bir web sayfasındaki bir bağlantıyı tıklayarak? Ve xml işlemeden sonra sonuçları göster.

+1

Muhtemelen cevabı burada: http : //stackoverflow.com/questions/124269/simplest-soap-example-using-javascript –

cevap

İlgili konular