I get a lengthy XML document forhttp://
www.webservicex.net/BibleWebservice.asmx/GetBibleWordsbyKeyWor...
where however the real XML data is escaped.
As for a SOAP request, no, SOAP is not possible with a GET request and a
query string in the URL, to make a SOAP request you need to make a HTTP
POST request with a proper SOAP message in the request body and the
request header
SOAPAction: "
http://www.webserviceX.NET/GetBibleWordsbyKeyWord"
All that is documented nicely onhttp://
www.webservicex.net/BibleWebservice.asmx?op=GetBibleWordsbyKey...
Note that platforms like the .NET framework allow you to generate proxy
code for web services so that you don't have to deal with SOAP or HTTP,
you simply use classes, instantiate objects and call methods.
Okay, that makes sense I have to send a form. I noticed on the web
site that there is an example so I assume that would work on my Mac?
Do I save it as an xsl document? or a an HTML document? If I hit
this document in the browser will it send a SOAP request?
Here is the page below:
<html>
<head>
<link rel="alternate" type="text/xml" href="BibleWebservice.asmx?
disco"/>
<style type="text/css">
BODY { color: #000000; background-color: white; font-family:
Verdana; margin-left: 0px; margin-top: 0px; }
#content { margin-left: 30px; font-size: .70em; padding-bottom:
2em; }
A:link { color: #336699; font-weight: bold; text-decoration:
underline; }
A:visited { color: #6699cc; font-weight: bold; text-decoration:
underline; }
A:active { color: #336699; font-weight: bold; text-decoration:
underline; }
A:hover { color: cc3300; font-weight: bold; text-decoration:
underline; }
P { color: #000000; margin-top: 0px; margin-bottom: 12px; font-
family: Verdana; }
pre { background-color: #e5e5cc; padding: 5px; font-family: Courier
New; font-size: x-small; margin-top: -5px; border: 1px #f0f0e0
solid; }
td { color: #000000; font-family: Verdana; font-size: .7em; }
h2 { font-size: 1.5em; font-weight: bold; margin-top: 25px; margin-
bottom: 10px; border-top: 1px solid #003366; margin-left: -15px;
color: #003366; }
h3 { font-size: 1.1em; color: #000000; margin-left: -15px; margin-
top: 10px; margin-bottom: 10px; }
ul { margin-top: 10px; margin-left: 20px; }
ol { margin-top: 10px; margin-left: 20px; }
li { margin-top: 10px; color: #000000; }
font.value { color: darkblue; font: bold; }
font.key { color: darkgreen; font: bold; }
.heading1 { color: #ffffff; font-family: Tahoma; font-size: 26px;
font-weight: normal; background-color: #003366; margin-top: 0px;
margin-bottom: 0px; margin-left: -30px; padding-top: 10px; padding-
bottom: 3px; padding-left: 15px; width: 105%; }
.button { background-color: #dcdcdc; font-family: Verdana; font-
size: 1em; border-top: #cccccc 1px solid; border-bottom: #666666 1px
solid; border-left: #cccccc 1px solid; border-right: #666666 1px
solid; }
.frmheader { color: #000000; background: #dcdcdc; font-family:
Verdana; font-size: .7em; font-weight: normal; border-bottom: 1px
solid #dcdcdc; padding-top: 2px; padding-bottom: 2px; }
.frmtext { font-family: Verdana; font-size: .7em; margin-top: 8px;
margin-bottom: 0px; margin-left: 32px; }
.frmInput { font-family: Verdana; font-size: 1em; }
.intro { margin-left: -15px; }
</style>
<title>BibleWebservice Web Service</title>
</head>
<body>
<div id="content">
<p class="heading1">BibleWebservice</p><br>
<span>
<p class="intro">Click <a href="BibleWebservice.asmx">here</
a> for a complete list of operations.</p>
<h2>GetBibleWordsbyKeyWord</h2>
<p class="intro">This web service list all versus by keyword
from the Kings James version Bible </p>
<h3>Test</h3>
To test the operation using the HTTP POST protocol, click
the 'Invoke' button.
<form target="_blank" action='http://
www.webservicex.net/BibleWebservice.asmx/GetBibleWordsbyKeyWord'
method="POST">
<table cellspacing="0" cellpadding="4"
frame="box" bordercolor="#dcdcdc" rules="none" style="border-collapse:
collapse;">
<tr>
<td class="frmHeader" background="#dcdcdc" style="border-right: 2px
solid white;">Parameter</td>
<td class="frmHeader" background="#dcdcdc">Value</td>
</tr>
<tr>
<td class="frmText" style="color: #000000;
font-weight: normal;">BibleWords:</td>
<td><input class="frmInput" type="text"
size="50" name="BibleWords"></td>
</tr>
<tr>
<td></td>
<td align="right"> <input type="submit"
value="Invoke" class="button"></td>
</tr>
</table>
</form>
<span>
<h3>SOAP</h3>
<p>The following is a sample SOAP request and response.
The <font class=value>placeholders</font> shown need to be replaced
with actual values.</p>
<pre>POST /BibleWebservice.asmx HTTP/1.1
Host:
www.webservicex.net
Content-Type: text/xml; charset=utf-8
Content-Length: <font class=value>length</font>
SOAPAction: "
http://www.webserviceX.NET/GetBibleWordsbyKeyWord"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="
http://www.w3.org/2001/XMLSchema-
instance" xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetBibleWordsbyKeyWord xmlns="
http://www.webserviceX.NET">
<BibleWords><font class=value>string</font></
BibleWords>
</GetBibleWordsbyKeyWord>
</soap:Body>
</soap:Envelope></pre>
<pre>HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: <font class=value>length</font>
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="
http://www.w3.org/2001/XMLSchema-
instance" xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetBibleWordsbyKeyWordResponse xmlns="http://
www.webserviceX.NET">
<GetBibleWordsbyKeyWordResult><font class=value>string</
font></GetBibleWordsbyKeyWordResult>
</GetBibleWordsbyKeyWordResponse>
</soap:Body>
</soap:Envelope></pre>
</span>
<span>
<h3>HTTP GET</h3>
<p>The following is a sample HTTP GET request and
response. The <font class=value>placeholders</font> shown need to be
replaced with actual values.</p>
<pre>GET /BibleWebservice.asmx/GetBibleWordsbyKeyWord?
<font class=key>BibleWords</font>=<font class=value>string</font> HTTP/
1.1
Host:
www.webservicex.net
</pre>
<pre>HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: <font class=value>length</font>
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="
http://www.webserviceX.NET"><font
class=value>string</font></string></pre>
</span>
<span>
<h3>HTTP POST</h3>
<p>The following is a sample HTTP POST request and
response. The <font class=value>placeholders</font> shown need to be
replaced with actual values.</p>
<pre>POST /BibleWebservice.asmx/GetBibleWordsbyKeyWord
HTTP/1.1
Host:
www.webservicex.net
Content-Type: application/x-www-form-urlencoded
Content-Length: <font class=value>length</font>
<font class=key>BibleWords</font>=<font class=value>string</font></
pre>
<pre>HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: <font class=value>length</font>
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="
http://www.webserviceX.NET"><font
class=value>string</font></string></pre>
</span>
</span>
</body>
</html>