Home | SOAP Tools | UDDI Browser | ResourcesSource Code | RFCs | News Reader  | SOAP Interop | Bookmarks 


Web Searches Using SOAP
End Point: http://soapclient.com/xml/SQLDataSoap.WSDL
Search Engine:

Technical Details:

SOAP Endpoint URL: http://www.SoapClient.com/xml/SQLDataSoap.WSDL
SOAP Action: /SQLDataSRL
Method Names: ProcessSRL
WSDL URL:  http://www.SoapClient.com/xml/SQLDataSoap.wsdl
  1. SRLFile: The name of the Service Request Language File, use /xml/WEB.SRI for web searches.
  2. RequestName: The name of the search engine, use Altavista, Yahoo, Excite, etc.
  3. key: The keywords to be searched for.

How it works:

  • When you click the search button, a request is submitted to a service request processor (SRP) written in the Service Request Language (websearch.sri).
  • The SRP  initiates a SOAP request using SQLData client library, the request is sent to a SQLData SOAP Server using the service description file: SQLDataSoap.wsdl.
  • Upon receiving the SOAP request, the integration server interacts with the remote sites to perform the requested operations and filter the results. The results are then returned to SoapClient.com as a SOAP response.
  • SoapClient.com re-packages the results in HTML format and sends to your browser.

As demonstrated here, SQLData SOAP Server effectively turns non-SOAP services into SOAP services that can be directly accessed by a SOAP client. This dramatically increases the programmability of regular web services.

Sample Soap Message

The following message searches for SOAP using Altavista:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
		<mns:ProcessSRL xmlns:mns="http://www.SoapClient.com/xml/SQLDataSoap.xsd">
			<SRLFile xsi:type="xsd:string">/xml/web.sri</SRLFile>
			<RequestName xsi:type="xsd:string">Altavista</RequestName>
			<key xsi:type="xsd:string">SOAP</key>

Sample VB Code (SQLData SOAP Client)

Dim MyAgent As SoapAgent
Set MyAgent = New SoapAgent

MyAgent.AddParameter "SRLFile", "/xml/WEB.SRI", ""
MyAgent.AddParameter "RequestName", "Google", ""
MyAgent.AddParameter "key", "SOAP", ""
'Execute the method
MyAgent.ExecuteMethod "http://soapclient.com/xml/SQLDataSOAP.wsdl", "ProcessSRL"
'show me the result!
MsgBox MyAgent.GetResponse("return")

Sample VB Code (MS SOAP 2.0)

The following code searches "SOAP" using Yahoo.

    Dim Serializer As SoapSerializer
    Dim Connector As SoapConnector
    Dim Reader As SoapReader
    Set Connector = New HttpConnector
    Connector.Property("EndPointURL") = "http://soapclient.com/xml/SQLDataSoap.WSDL"
    Connector.Property("SoapAction") = "/SQLDataSRL"
    Connector.BeginMessage 'Nothing
    Set Serializer = New SoapSerializer
    Serializer.Init Connector.InputStream
    Serializer.startEnvelope "SOAP-ENV", "http://schemas.xmlsoap.org/soap/encoding/"
    Serializer.startElement "ProcessSRL", "http://www.SoapClient.com/xml/SQLDataSoap.xsd", "mns"
    Serializer.startElement "SRLFile"
    Serializer.writeString "/xml/news.sri"
    Serializer.startElement "RequestName"
    Serializer.writeString "yahoo"
    Serializer.startElement "key"
    Serializer.writeString "SOAP"

    Set Reader = New SoapReader
    Reader.Load Connector.OutputStream
    If Not Reader.Fault Is Nothing Then
        MsgBox Reader.faultstring.Text, vbExclamation
        MsgBox Reader.DOM.xml
    End If

Copyright 1997-2011 SQLData System, Inc  All rights reserved.

Comments, or suggestions? Send to info2 at sqldata.com

This site is powered by SQLData SOAP Server