Simplest SOAP example

前端 未结 13 1663
死守一世寂寞
死守一世寂寞 2020-11-22 01:32

What is the simplest SOAP example using Javascript?

To be as useful as possible, the answer should:

  • Be functional (in other words actually work)
  • <
13条回答
  •  误落风尘
    2020-11-22 02:02

    Simplest example would consist of:

    1. Getting user input.
    2. Composing XML SOAP message similar to this

      
        
          
            string
          
        
      
      
    3. POSTing message to webservice url using XHR

    4. Parsing webservice's XML SOAP response similar to this

      
       
        
         
          
           ...............
    5. Presenting results to user.

    But it's a lot of hassle without external JavaScript libraries.

提交回复
热议问题