Thanks for the post. I already have an xml file. How can I
read it and then convert it?
This is what I have so far
<cfsavecontent variable="myxml">
<?xml version="1.0" encoding="utf-8"?>
<ImprintedData xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<CustomerHeader>
<Version>1.0</Version>
<CustomerID>2000189</CustomerID>
<CustomerName>Royal Lahaina</CustomerName>
<FormID>2001832</FormID>
<FieldID>2209843</FieldID>
<sourceCreateTS>2007-10-24T22:1:29</sourceCreateTS>
<ch_CustomerPrintSite>Hawaii</ch_CustomerPrintSite>
<ch_CustomerEmpID>123321</ch_CustomerEmpID>
<ch_CustomerEmpName>Melody
Jones</ch_CustomerEmpName>
</CustomerHeader>
<Transaction
TransactionID="E3C20CE4-113C-4CF1-A404-TID3">
<DigitalID>1052RN</DigitalID>
<FormFields>
<FormField name ="RoomType">T1KOL</FormField>
<FormField name
="RatePackage">CIGMSO</FormField>
<FormField name ="RoomNumber">8011</FormField>
<FormField name
="ArrivalDate">10/16/07</FormField>
<FormField name
="DepartureDate">10/19/07</FormField>
<FormField name ="GuestName">Alualu,
Taavao</FormField>
<FormField name ="Address">1440 Ahonui
St</FormField>
<FormField name ="City">Honolulu</FormField>
<FormField name ="State">HI</FormField>
<FormField name ="Zip">96819</FormField>
<FormField name
="PhoneNumber">808-847-7028</FormField>
<FormField name
="Email">soliduso001@yahoo.com</FormField>
<FormField name
="ReservationNotes">Garden</FormField>
<FormField name ="SP">True</FormField>
<FormField name ="VP">False</FormField>
</FormFields>
</Transaction>
</ImprintedData>
</cfsavecontent>
<cfset binaryValue=ToBinary(ToBase64(myxml)) />
<cfinvoke
webservice="
http://voyager3.expedata.net/ExpeData_DAWS/DAWS.asmx?WSDL"
method="sendData" returnvariable="sendDataRet">
<cfinvokeargument name="sessionID"
value="Profile.SessionID"/>
<cfinvokeargument name="batchID"
value="Profile.BatchID"/>
<cfinvokeargument name="dataArray"
value="#BinaryValue#"/>
<cfinvokeargument name="moreDataFlg"
value="Profile.MoreDataFlag"/>
<cfinvokeargument name="dataFileSize"
value="#dirlist.size#"/>
<cfinvokeargument name="errorMsg"
value="#Profile.ErrorMsg#"/>
</cfinvoke>
I'm getting the following error
Web service operation "sendData" with parameters
{moreDataFlg={Profile.MoreDataFlag},errorMsg={
},batchID={Profile.BatchID},dataArray={[B@1d5d6d0},dataFileSize={},sessionID={Profile.SessionID}}
could not be found.
The error occurred in
D:\Inetpub\wwwroot\SMSReg\WDSL\Test1.cfm: line 134
132 : <cfinvokeargument name="moreDataFlg"
value="Profile.MoreDataFlag"/>
133 : <cfinvokeargument name="dataFileSize"
value="#dirlist.size#"/>
134 : <cfinvokeargument name="errorMsg"
value="#Profile.ErrorMsg#"/>
135 : </cfinvoke>
136 :
Jimmy