View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/
Update of /cvsroot/dqsd/dqsd/addons/dictionarypop
In directory usw-pr-cvs1:/tmp/cvs-serv24075
Modified Files:
dictionarypop.xml DictionaryService.wsdl
Log Message:
Fixes DictionaryPop to use the newly renamed Extensio.com service instead of the
recently defunct MyBubble.com one.
Index: dictionarypop.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/dictionarypop/dictionarypop.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** dictionarypop.xml 28 Sep 2002 00:19:23 -0000 1.4
--- dictionarypop.xml 29 Sep 2002 07:09:55 -0000 1.5
***************
*** 1,140 ****
! <search function="dictionarypop">
! <name>Bubbles Dictionary Popup</name>
! <description>Invoke a Dictionary/Thesaurus/Stock Information webservice for handy
popup information<br/>
! <div class="helpboxDescLabels">Usage:</div>
! <table class="helpboxDescTable">
! <tr><td>dictionarypop <<i>query</i>>[{/synonym | /news | /profile |
/quote}]</td></tr>
! </table>
! <div class="helpboxDescLabels">Switches:</div>
! <table class="helpboxDescTable">
! <tr><td>(default)</td><td> - </td><td>Popup Definitions of a
Word.</td></tr>
! <tr><td>/synonym</td><td> - </td><td>Popup Synonyms of a Word.</td></tr>
! <tr><td>/news</td><td> - </td><td>Popup News for a stock.</td></tr>
! <tr><td>/profile</td><td> - </td><td>Popup Profile for a stock.</td></tr>
! <tr><td>/quote</td><td> - </td><td>Popup quote information for a
stock.</td></tr>
! </table>
! <div class="helpboxDescLabels">Examples:</div>
! <table class="helpboxDescTable">
! <tr><td>dictionarypop goat</td></tr>
! <tr><td>dictionarypop /syn set</td></tr>
! <tr><td>dictionarypop /quot YHOO</td></tr>
! </table>
! </description>
! <link>http://www.mybubble.com</link>
!
! <category>Reference</category>
! <contributor>Thad Kerosky</contributor>5:38 AM 8/25/2002
! <dqsd_version>
! <majorhi>3</majorhi>
! <majorlo>0</majorlo>
! <minorhi>0</minorhi>
! <minorlo>25</minorlo>
! </dqsd_version>
! <form name="dictionarypopf">
! <div id="dictionaryWebService" name="dictionaryWebService"
style="behavior:url(addons\\dictionarypop\\webservice.htc)"
onresult="dictionarypop_onWebServiceResult()" />
! </form>
! <script><![CDATA[
!
! //See: http://www.xmethods.com/ve2/ViewListing.po?serviceid=7328
! //and demo:
http://soapclient.com/soapclient?fn=soapform&template=/clientform.html&soaptemplate=/soapresult.html&soapwsdl=http://www.mybubble.com:8080/mybubbleEntServer/MBSoapServices.wsdl
!
! function dictionarypop(q)
! {
! var s = "Meaning";
!
! if( nullArgs("dictionarypop", q) )
! return false;
! else
! {
! var args = parseArgs(q, "synonym, news, profile, quote");
!
! if( args.switches.length > 0 )
! {
! for( var j=0; j<args.switches.length; j++ )
! {
! switch( args.switches[j].name )
! {
! case "synonym":
! s = "Synonym";
! break;
! case 'news':
! s = "StockNews";
! break;
! case "profile":
! s = "StockProfile";
! break;
! case "quote":
! s = "StockQuote";
! break;
! }
! }
! }
! }
!
! dictionarypop_callWebService(args.q, s);
! }
! function dictionarypop_initWebService()
! {
! try
! {
!
document.all.dictionaryWebService.useService("http://www.mybubble.com:8080/mybubbleEntServer/MBSoapServices.wsdl",
"MyBubbleSoapService");
!
! return true;
! }
! catch (ex)
! {
! displayPopupMessage("Web service failed to initialize. " + ex.description);
! return false;
! }
! }
!
! function dictionarypop_callWebService(sSearch, sServiceName)
! {
! if (dictionarypop_initWebService()) {
!
! var objCall = new Object();
! objCall.funcName = "getServiceResponsePublic";
! objCall.async = true;
!
! //sServiceName can be either Meaning, Synonym, StockNews, StockProfile, or
StockQuote
! try
! {
! iCallID =
document.all.dictionaryWebService.MyBubbleSoapService.callService(objCall,
sServiceName , sSearch);
!
! }
! catch (ex)
! {
! displayPopupMessage("Failed: " + ex.description);
! }
! }
!
! return false;
! }
!
! function dictionarypop_onWebServiceResult()
! {
! if(event.result.error)
! {
! displayPopupMessage("Error contacting web service. Check that your firewall
is allowing Windows Explorer to access this web service. (www.mybubble.com:8080) (" +
! event.result.errorDetail.code + ", " + event.result.errorDetail.string + " "
+ event.result.errorDetail.raw + ")");
! }
! else
! {
! var oDoc = event.result.raw;
! var sReturnedHTML =
oDoc.selectSingleNode("SOAP-ENV:Body/ns1:getServiceResponsePublicResponse/return").text;
! if ( sReturnedHTML != '' )
! {
! sReturnedHTML = sReturnedHTML.replace( /\n/g, '' )
// get rid of newlines
! .replace( /(.*<table>.+<\/table>).*/i, '$1' )
// get of everything after the last TABLE tag
! .replace( /<script.*<\/script>/i, '' )
// get rid of SCRIPT tags
! .replace( /(<\/table>.*)<table.*Legal
Disclaimer.*/i, '$1' ) // save only stuff before the disclaimer
! .replace( /<tr class="[EO]RL1"><td
><\/td><\/tr>/gi, '' ) // get rid of extra rows at the end of the table
! .replace( /<body.*<div id="main">(.*)/i, '$1'
) // get rid of the BODY tag and its event handlers
! .replace( /(<td>Word:)([^>]+) > (<\/td>)/i,
'$1 <b>$2</b>$3' ) // get rid of weird angle bracket and make word bold
! .replace( /cellPadding="3"/i,
'cellPadding="0"' ) // get rid of some of the whitespace
! displayPopupMessage( sReturnedHTML, "<base
href=http://www.mybubble.com><link rel=\"stylesheet\"
href=\"/mybubbleEntServer/css/layout.css\" />" );
! }
! }
! }
! ]]></script>
! </search>
--- 1,140 ----
! <search function="dictionarypop">
! <name>Bubbles Dictionary Popup</name>
! <description>Invoke a Dictionary/Thesaurus/Stock Information webservice for handy
popup information<br/>
! <div class="helpboxDescLabels">Usage:</div>
! <table class="helpboxDescTable">
! <tr><td>dictionarypop <<i>query</i>>[{/synonym | /news | /profile |
/quote}]</td></tr>
! </table>
! <div class="helpboxDescLabels">Switches:</div>
! <table class="helpboxDescTable">
! <tr><td>(default)</td><td> - </td><td>Popup Definitions of a
Word.</td></tr>
! <tr><td>/synonym</td><td> - </td><td>Popup Synonyms of a Word.</td></tr>
! <tr><td>/news</td><td> - </td><td>Popup News for a stock.</td></tr>
! <tr><td>/profile</td><td> - </td><td>Popup Profile for a stock.</td></tr>
! <tr><td>/quote</td><td> - </td><td>Popup quote information for a
stock.</td></tr>
! </table>
! <div class="helpboxDescLabels">Examples:</div>
! <table class="helpboxDescTable">
! <tr><td>dictionarypop goat</td></tr>
! <tr><td>dictionarypop /syn set</td></tr>
! <tr><td>dictionarypop /quot YHOO</td></tr>
! </table>
! </description>
! <link>http://www.mybubble.com</link>
!
! <category>Reference</category>
! <contributor>Thad Kerosky</contributor>5:38 AM 8/25/2002
! <dqsd_version>
! <majorhi>3</majorhi>
! <majorlo>0</majorlo>
! <minorhi>0</minorhi>
! <minorlo>25</minorlo>
! </dqsd_version>
! <form name="dictionarypopf">
! <div id="dictionaryWebService" name="dictionaryWebService"
style="behavior:url(addons\\dictionarypop\\webservice.htc)"
onresult="dictionarypop_onWebServiceResult()" />
! </form>
! <script><![CDATA[
!
! //See: http://www.xmethods.com/ve2/ViewListing.po?serviceid=7328
! //and demo:
http://soapclient.com/soapclient?fn=soapform&template=/clientform.html&soaptemplate=/soapresult.html&soapwsdl=http://www.extensio.com:8080/ExtensioInfoServer/mbsoap/MBWSSoapServices.wsdl
!
! function dictionarypop(q)
! {
! var s = "Meaning";
!
! if( nullArgs("dictionarypop", q) )
! return false;
! else
! {
! var args = parseArgs(q, "synonym, news, profile, quote");
!
! if( args.switches.length > 0 )
! {
! for( var j=0; j<args.switches.length; j++ )
! {
! switch( args.switches[j].name )
! {
! case "synonym":
! s = "Synonym";
! break;
! case 'news':
! s = "StockNews";
! break;
! case "profile":
! s = "StockProfile";
! break;
! case "quote":
! s = "StockQuote";
! break;
! }
! }
! }
! }
!
! dictionarypop_callWebService(args.q, s);
! }
! function dictionarypop_initWebService()
! {
! try
! {
!
document.all.dictionaryWebService.useService("http://www.extensio.com:8080/ExtensioInfoServer/mbsoap/MBWSSoapServices.wsdl",
"ExtensioSoapService");
!
! return true;
! }
! catch (ex)
! {
! displayPopupMessage("Web service failed to initialize. " + ex.description);
! return false;
! }
! }
!
! function dictionarypop_callWebService(sSearch, sServiceName)
! {
! if (dictionarypop_initWebService()) {
!
! var objCall = new Object();
! objCall.funcName = "getServiceResponsePublic";
! objCall.async = true;
!
! //sServiceName can be either Meaning, Synonym, StockNews, StockProfile, or
StockQuote
! try
! {
! iCallID =
document.all.dictionaryWebService.ExtensioSoapService.callService(objCall,
sServiceName , sSearch);
!
! }
! catch (ex)
! {
! displayPopupMessage("Failed: " + ex.description);
! }
! }
!
! return false;
! }
!
! function dictionarypop_onWebServiceResult()
! {
! if(event.result.error)
! {
! displayPopupMessage("Error contacting web service. Check that your firewall
is allowing Windows Explorer to access this web service. (www.extensio.com:8080) (" +
! event.result.errorDetail.code + ", " + event.result.errorDetail.string + " "
+ event.result.errorDetail.raw + ")");
! }
! else
! {
! var oDoc = event.result.raw;
! var sReturnedHTML =
oDoc.selectSingleNode("SOAP-ENV:Body/ns1:getServiceResponsePublicResponse/return").text;
! if ( sReturnedHTML != '' )
! {
! sReturnedHTML = sReturnedHTML.replace( /\n/g, '' )
// get rid of newlines
! .replace( /(.*<table>.+<\/table>).*/i, '$1' )
// get of everything after the last TABLE tag
! .replace( /<script.*<\/script>/i, '' )
// get rid of SCRIPT tags
! .replace( /(<\/table>.*)<table.*Legal
Disclaimer.*/i, '$1' ) // save only stuff before the disclaimer
! .replace( /<tr class="[EO]RL1"><td
><\/td><\/tr>/gi, '' ) // get rid of extra rows at the end of the table
! .replace( /<body.*<div id="main">(.*)/i, '$1'
) // get rid of the BODY tag and its event handlers
! .replace( /(<td>Word:)([^>]+) > (<\/td>)/i,
'$1 <b>$2</b>$3' ) // get rid of weird angle bracket and make word bold
! .replace( /cellPadding="3"/i,
'cellPadding="0"' ) // get rid of some of the whitespace
! displayPopupMessage( sReturnedHTML, "<base
href=http://www.mybubble.com><link rel=\"stylesheet\"
href=\"/mybubbleEntServer/css/layout.css\" />" );
! }
! }
! }
! ]]></script>
! </search>
Index: DictionaryService.wsdl
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/dictionarypop/DictionaryService.wsdl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** DictionaryService.wsdl 26 Aug 2002 19:07:39 -0000 1.1
--- DictionaryService.wsdl 29 Sep 2002 07:09:55 -0000 1.2
***************
*** 1,4 ****
! <?xml version="1.0" ?>
! <definitions name="MyBubbleSoapService"
targetNamespace="http://www.mybubble.com/sd/MyBubbleSoapServices.wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://www.mybubble.com/sd/MyBubbleSoapServices.wsdl">
<message name="loginRequest">
<part name="userName" type="xsd:string" />
--- 1,8 ----
! <?xml version="1.0" ?><definitions name="MBWSSoapService"
! targetNamespace="http://www.extensio.com/sd/MBWSSoapServices.wsdl"
! xmlns:xsd="http://www.w3.org/2001/XMLSchema"
! xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
! xmlns="http://schemas.xmlsoap.org/wsdl/"
! xmlns:tns="http://www.extensio.com/sd/MBWSSoapServices.wsdl">
<message name="loginRequest">
<part name="userName" type="xsd:string" />
***************
*** 13,18 ****
<message name="logoutResponse">
<part name="return" type="xsd:string" />
! </message>
! <message name="getServiceResponseRequest">
<part name="loginToken" type="xsd:string" />
<part name="serviceName" type="xsd:string" />
--- 17,21 ----
<message name="logoutResponse">
<part name="return" type="xsd:string" />
! </message><message name="getServiceResponseRequest">
<part name="loginToken" type="xsd:string" />
<part name="serviceName" type="xsd:string" />
***************
*** 29,33 ****
<part name="return" type="xsd:string" />
</message>
! <portType name="MyBubblePortType">
<operation name="login">
<input message="tns:loginRequest" name="login" />
--- 32,36 ----
<part name="return" type="xsd:string" />
</message>
! <portType name="MBWSPortType">
<operation name="login">
<input message="tns:loginRequest" name="login" />
***************
*** 40,60 ****
<operation name="getServiceResponse">
<input message="tns:getServiceResponseRequest" name="getServiceResponse" />
! <output message="tns:getServiceResponseResponse" name="getServiceResponseResponse"
/>
! <documentation>The response of this Web Service is HTML and can be viewed in any
browser.</documentation>
</operation>
<operation name="getServiceResponsePublic">
! <input message="tns:getServiceResponsePublicRequest" name="getServiceResponsePublic"
/>
! <output message="tns:getServiceResponsePublicResponse"
name="getServiceResponsePublicResponse" />
! <documentation>The response of this Web Service is HTML and can be viewed in any
browser.</documentation> </operation>
! </portType>
! <binding name="MyBubbleSoapBinding" type="tns:MyBubblePortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="login">
<soap:operation soapAction="" />
<input>
! <soap:body use="encoded" namespace="urn:MB-SoapServices"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
! <soap:body use="encoded" namespace="urn:MB-SoapServices"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
--- 43,69 ----
<operation name="getServiceResponse">
<input message="tns:getServiceResponseRequest" name="getServiceResponse" />
! <output message="tns:getServiceResponseResponse"
! name="getServiceResponseResponse" />
! <documentation>The response of this Web Service is HTML and can be viewed in
! any browser.</documentation>
</operation>
<operation name="getServiceResponsePublic">
! <input message="tns:getServiceResponsePublicRequest"
! name="getServiceResponsePublic" />
! <output message="tns:getServiceResponsePublicResponse"
! name="getServiceResponsePublicResponse" />
! <documentation>The response of this Web Service is HTML and can be viewed in
! any browser.</documentation> </operation>
! </portType><binding name="MBWSSoapBinding" type="tns:MBWSPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="login">
<soap:operation soapAction="" />
<input>
! <soap:body use="encoded" namespace="urn:MBWS-SoapServices"
! encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
! <soap:body use="encoded" namespace="urn:MBWS-SoapServices"
! encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
***************
*** 62,69 ****
<soap:operation soapAction="" />
<input>
! <soap:body use="encoded" namespace="urn:MB-SoapServices"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
! <soap:body use="encoded" namespace="urn:MB-SoapServices"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
--- 71,80 ----
<soap:operation soapAction="" />
<input>
! <soap:body use="encoded" namespace="urn:MBWS-SoapServices"
! encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
! <soap:body use="encoded" namespace="urn:MBWS-SoapServices"
! encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
***************
*** 71,78 ****
<soap:operation soapAction="" />
<input>
! <soap:body use="encoded" namespace="urn:MB-SoapServices"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
! <soap:body use="encoded" namespace="urn:MB-SoapServices"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
--- 82,91 ----
<soap:operation soapAction="" />
<input>
! <soap:body use="encoded" namespace="urn:MBWS-SoapServices"
! encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
! <soap:body use="encoded" namespace="urn:MBWS-SoapServices"
! encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
***************
*** 80,95 ****
<soap:operation soapAction="" />
<input>
! <soap:body use="encoded" namespace="urn:MB-SoapServices"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
! <soap:body use="encoded" namespace="urn:MB-SoapServices"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding>
! <service name="MyBubbleSoapService">
<documentation></documentation>
! <port name="MyBubbleSoapPort" binding="tns:MyBubbleSoapBinding">
! <soap:address
location="http://www.mybubble.com:8080/mybubbleEntServer/servlet/rpcrouter" />
! </port>
! </service>
! </definitions>
--- 93,109 ----
<soap:operation soapAction="" />
<input>
! <soap:body use="encoded" namespace="urn:MBWS-SoapServices"
! encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
! <soap:body use="encoded" namespace="urn:MBWS-SoapServices"
! encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding>
! <service name="MBSoapService">
<documentation></documentation>
! <port name="MBWSSoapPort" binding="tns:MBWSSoapBinding">
! <soap:address
! location="http://www.extensio.com:8080/ExtensioInfoServer/servlet/rpcrouter"
! /></port></service></definitions>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/