Title: Re: Witango-Talk: Tango TAF file to display results in XML
Thanks much for the info. I’m trying this out and seeing where it’s taking me. If we’re wanting for the program to take the variables that are received from the form and have it sent via XML format, is it possible to create a Results HTML with the code, store that bit as a DOM variable and have the DOM variable sent in the URL post args?


____________________________________________________
Kaustav Acharya
   Customer Service Manager

  U. Inc.
      12250 El Camino Real, Suite #104
      San Diego, CA. 92130

  Office: (858) 847-3350 x1004
  Fax: (858) 847-3340
  email: [EMAIL PROTECTED]
 
  http://www.colleges.com
____________________________________________________

 All the News. No Ink. - http://www.onlinetimes.com
 Power to the People - http://www.campaign.com
____________________________________________________


On 7/13/06 12:37 PM, "Robert Garcia" <[EMAIL PROTECTED]> wrote:

CLARIFICATION:  There are bugs in the <@dom> when building dynamic xml WITH NAMESPACES. If you are building xml, with NO namespaces, and in ISO-8859-1 encoding, witango <@dom> works pretty well, but outside that box, it does not.
 

 
-- 
 

 
Robert Garcia
 
President - BigHead Technology
 
VP Application Development - eventpix.com
 
13653 West Park Dr
 
Magalia, Ca 95954
 
ph: 530.645.4040 x222 fax: 530.645.4040
 
[EMAIL PROTECTED] - [EMAIL PROTECTED]
 
http://bighead.net/ - http://eventpix.com/
  

On Jul 13, 2006, at 12:35 PM, Robert Garcia wrote:

Here is a post from witango support:

<@ASSIGN request$WebService "http://www.witango.com/AddService.wws">

<@ASSIGN request$SoapPayload '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://127.0.0.1/webservice/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
   <SOAP-ENV:Body>
      <Add_In_Request>
         <Value1>10</Value1>
         <Value2>20</Value2>
      </Add_In_Request>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>'>


<@URL LOCATION='@@request$WebService' USERAGENT='Witango <@VERSION> <@PLATFORM><@CRLF>Content-Type: text/xml<@CRLF>SOAPAction: "http://www.witango.com/AddService.wws"' POSTARGS='<?xml version="1.0" encoding="ISO-8859-1" ?><@CRLF><@VAR request$SoapPayload ENCODING="NONE">'>

This is will call a tcf that is exposed as a web service on the witango web site.

Calling a SOAP service on any platform from Witango Server 5.5 is just as easy.  The SOAPAction is also exposed via @HTTPATTRIBUTE.

All you need to do with the result is put it into a DOM variable and grab the components you need using their element names with XPATH expressions.

 
Unfortunately, you cannot use UTF-8, which is why the workaround above uses a unique way of using ISO. Also, you notice that the dom, and xml tags were not used. Unfortunately, there are several bugs in witango <@dom> that don't work well with building xml dynamically, so you kind of have to hack it, with just plain text, and using IS)-8859-1 encoding, like above.


 
-- 
 

 
Robert Garcia
 
President - BigHead Technology
 
VP Application Development - eventpix.com
 
13653 West Park Dr
 
Magalia, Ca 95954
 
ph: 530.645.4040 x222 fax: 530.645.4040
 
[EMAIL PROTECTED] - [EMAIL PROTECTED]
 
http://bighead.net/ - http://eventpix.com/
  

On Jul 13, 2006, at 12:22 PM, Kaustav Acharya wrote:

Greetings fellow Tango Programmers,
 
 
 I am very new to Tango and the programming field, but in the first few months of working here, I have learned how powerful it can be! :) My newest and most difficult project yet is to export the data we have from Tango into XML format.
 
 My question is a simple, yet difficult one: how does one go about doing this? Here’s what our client says the SOAP encapsulated XML post should look like:
 
 
 POST /location/xmlpost.asmx HTTP/1.1
 Host: myhost.myhost2.edu
 Content-Type: text/xml; charset=utf-8
 Content-Length: length
 SOAPAction: "http://url/leadServicePoster"
 
 <?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>
     <ProcessLead xmlns="http://URL/leadServicePoster">
       <lead>
         <vendorCode xmlns="">string</vendorCode>
         <vendorLeadIdentifier xmlns="">token</vendorLeadIdentifier>
         <versionIdentifier xmlns="">integer</versionIdentifier>
         <testCase xmlns="">token</testCase>
         <nameLast xmlns="">token</nameLast>
         <nameMiddle xmlns="">token</nameMiddle>
         <nameFirst xmlns="">token</nameFirst>
         <nameSuffix xmlns="">token</nameSuffix>
         <addressLine1 xmlns="">string</addressLine1>
         <addressLine2 xmlns="">string</addressLine2>
         <addressCity xmlns="">token</addressCity>
         <addressState xmlns="">token</addressState>
         <addressZip xmlns="">token</addressZip>
         <addressCountryCode xmlns="">token</addressCountryCode>
         <homePhone xmlns="">token</homePhone>
         <workPhone xmlns="">token</workPhone>
         <otherPhone xmlns="">token</otherPhone>
         <internationalPhone xmlns="">token</internationalPhone>
         <email xmlns="">token</email>
         <bestTimeToCall xmlns="">string</bestTimeToCall>
         <highSchoolGradYear xmlns="">integer</highSchoolGradYear>
         <educationCompleted xmlns="">token</educationCompleted>
         <dateDegreeCompleted xmlns="">token</dateDegreeCompleted>
         <studentVisaRequired xmlns="">token</studentVisaRequired>
         <countryCitizenship xmlns="">token</countryCitizenship>
         <militaryStatus xmlns="">token</militaryStatus>
         <locationCode xmlns="">token</locationCode>
         <areaOfInterest xmlns="">token</areaOfInterest>
         <programOfInterest xmlns="">token</programOfInterest>
         <educationObjective xmlns="">token</educationObjective>
         <inquiredBefore xmlns="">token</inquiredBefore>
         <programOfInterest xmlns="">token</programOfInterest>
         <educationObjective xmlns="">token</educationObjective>
         <inquiredBefore xmlns="">token</inquiredBefore>
         <sourceCode xmlns="">token</sourceCode>
         <sourceDate xmlns="">token</sourceDate>
         <sourceTime xmlns="">token</sourceTime>
         <sourceTimeOffset xmlns="">token</sourceTimeOffset>
         <sourceNumber xmlns="">token</sourceNumber>
         <vendorAffiliate xmlns="">token</vendorAffiliate>
         <comments xmlns="">string</comments>
         <preassignedAda xmlns="">token</preassignedAda>
         <warmTransferResult xmlns="">token</warmTransferResult>
         <other xmlns="">xml</other>
         <validationResults xmlns="">string</validationResults>
         <validationNotes xmlns="">string</validationNotes>
        <validationMessage xmlns="">string</validationMessage>
       </lead>
     </ProcessLead>
   </soap:Body>
 </soap:Envelope>
 
 Any ideas? Is it as simple as passing the values into the fields? Please help me out! Thanks!
 
 
____________________________________________________
 Kaustav Acharya
 
 U. Inc.
       12250 El Camino Real, Suite #104
       San Diego, CA. 92130
 
   Office: (858) 847-3350 x1004
   Fax: (858) 847-3340
   email: [EMAIL PROTECTED]
  
   http://www.colleges.com
 ____________________________________________________
 
  All the News. No Ink. - http://www.onlinetimes.com
  Power to the People - http://www.campaign.com
 ____________________________________________________
 
   
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

 
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to