soap question

  1. last week

    nicolás c

    May 19 Pre-Release Testers, Xojo Pro
    Edited last week by nicolás c

    hi all. i have this code:

      Dim sm As SOAPMethod
      Dim sr As SOAPResult
      // create the soap method and set the parameter(s)
      sm = New SOAPMethod("http://www.webservicex.net/BibleWebservice.asmx?WSDL")
      sm.Parameter("BookTitle") = "psalms"
      sm.Parameter("chapter") = "1"
      sm.Parameter("Verse") = "1"
      
      // execute the method
      sr = sm.Invoke("GetBibleWordsByChapterAndVerse")
      
      // display the city portion of the result
      If sr.Error Then
        Msgbox(sr.ErrorMessage)
      Else
        MsgBox(sr.Result("GetBibleWordsByChapterAndVerseResult"))
        msgbox(sr.Result("BibleWords"))
      End If

    how could i get just the BibleWords tag?

  2. Jeff T

    May 19 Midlands of England, Europe

    SRResult.document gives you the XMLDocument
    You can use XQL on that to get individual elements.

    http://docs.xojo.com/index.php/XMLDocument

or Sign Up to reply!