In refreshing our memory on Web Services we set it up again (and wrote some doco this time). While this may not answer your questions, Robert (and we're using Apache2/Win32, you IIS) I thought I'd share these notes all the same.
Configuring Web Services (SOAP) on Witango 5.5.009 under Apache 2.0.54 (Win32) Attached as MS doc and TXT file. ________________________________________________________ Matt Muro [EMAIL PROTECTED] Harvard University phone: 617.998.8522 Division of Continuing Education fax: 617.495.9176 ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.tafThe following is a list of what we did to get SOAP working on Witango 5.5.009/Apache 2.0.54 (Win32)
1. Built very simple TCF that makes a database call, returning the User ID for the PIDM queried.
htdocs \ webservices \ getID \ getID.tcf
2. Created a WSDL file from our TCF using the WSDL File Generator Utility at witango.com
htdocs \ webservices \ getID \ getID.wsdl
3. Modified our webservices.ini file so it referenced our Web Service
[Webservices] getID=
[getID] webservice=webservices/getID/getID.tcf wsdlfile=webservices/getID/getID.wsdl
4. Made sure our client.ini registered our Web Service extension, .wws
[Witango Client Definitions] witango55_apache2.so=
[witango55_apache2.so] WITANGO_SERVER=WAS_BATMAN_1,127.0.0.1,18000 FORCE_SERVER_ARG_NAME=_SRVID ERROR_HTML=C:\\Program Files\\WitangoServer\\5.5\\MiscFiles\\clienterror.html REGISTER_EXTNS=taf;tcf;tml;thtml;wws REPORTCLIENTERROR=TRUE SENDFULLHEADER=FALSE
5. Created a very simple TAF SOAP client to consume the Web Services.
htdocs \ webservices \ soapd.taf (this may live anywhere)
soapd.taf consists, simply, of 2 results html actions (see next page)
You may easily parse the DOM object that is returned using Witango DOM tags
Results1 ------------------- <@assignrequest$webservice"http://dcematt.brattle.harvard.edu/getid.wws">
<@assignrequest$soapaction"http://dcematt.brattle.harvard.edu/getid.wws">
<@assignrequest$soappayload'
<mns:getid_requestxmlns:mns="witangowebservices"> <mns:pidm>12345</mns:pidm> </mns:getid_request>
</env:body>
</env:envelope>
'>
<@assignrequest$soapresponse'<@domvalue="<@urllocation='@@request$webservice'useragent='witango<@version> <@platform><@crlf>Content-Type: text/xml<@crlf>SOAPAction: "@@request$SOAPAction"'
POSTARGS='<?xmlversion="1.0"encoding="iso-8859-1"?><@crlf><@varrequest$soappayloadencoding="none">'
>">'>
Results2 ------------------- <pre>
SR: <@varrequest$soapresponseencoding="html">
</pre>
Name: <@elementnameobject="<@varrequest$soapresponse>" XPOINTER="root().child(1).child(1).child(1)">
Value: <@elementvalueobject="<@varrequest$soapresponse>" XPOINTER="root().child(1).child(1).child(1)">
soap notes.doc
Description: MS-Word document
