|
|
Home / Groups / ColdFusion Talk (CF-Talk)
Error register asp net web service in ColdFusion 7 adminHere is my code: <!--- ready test.txt file into a binary variable ---> <cffile action="readBinary" file="#FileName#" variable="objBinaryData"> <!--- convert the binary variable to Base64 ---> <cfset b64file = #toBase64(objBinaryData)#> <!--- invoke .net web service ---> <cfinvoke webservice = "http://xxxx/fileservice.asmx?wsdl" method = "UploadFileBasic" returnVariable = "recordNumber"> <cfinvokeargument name="trimURL" value="trim/trimWSdev/trim.asmx" /> <cfinvokeargument name="incomingArray" value="#b64file#" /> <cfinvokeargument name="FileName" value="#form.FILENAME#" /> <cfinvokeargument name="TrimRecordTypeName" value="Document" /> </cfinvoke> The way I pass in the base64 binary variable is probably not right. But I thought if the web service can not register in CF admin, there must be some problem. Thanks, Hong > I got the "Could not generate stub objects for web service invocation."as I > posted before when I directly invoke the web service without pre register it > in CF Admin. Based on your original error: > Could not generate stub objects for web service invocation. > Name: http://xxxx/xxx.asmx?wsdl. WSDL: http://xxxx/xxx.asmx?wsdl. > org.xml.sax.SAXException: Fatal Error: URI=null Line=11: The element type > "META" must be terminated by the matching end-tag " it looks like there's a problem with the file that CF's bringing back. Can you post a copy here? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! |
Mailing Lists
|
Latest Fusion Authority Articles
|