Hi Barry, Would you think of using Flash instead of CF, Flash components are easy to configure and might be easier to do what you want, create the component, configure it with the data connection wizard and another grideditor wizard, very cool allowing you to skin the component and do addrequestheader stuff like setting up the fields you want to use) I see on LiveDocs http://livedocs.macromedia.com/flash/mx2004/main/wwhelp/wwhimpl/common/html/ wwhelp.htm?context=Flash_MX_2004_Documentation&file=12_as293.htm: its used with flash Loadvars class. Do a search under loadvars in Flash 6 for more info. I have an example of the following somewhere "Using Macromedia Flash MX Pro 04, 7.01(updater), mxp datagrid and data connection wizard extensions, the following Flash component grabs The Macromedia Developer Center RSS 1.0 feed which contains information about articles, tutorials and other resources published on the Macromedia Developer Center. Similar methods as in the following to use Flash to connect to web services. devnet,http://www.macromedia.com/devnet/mx/flash/articles/datawizards.html http://www.macromedia.com/devnet/articles/xml_resource_feed.html" I`m sure a similar appoach can be used to talk to ASP.NET and the Flash data connection wizard though it won't connect to every web service can connect to very many and handles a lot of the ugly coding by itself.
there's a workaround for CF5 instead of CF MX using wddx and cfhttp for calling web services also though you are on MX if you want. Colm Colm Brazel MA CB Publications Web Site Design & Development http://www.cbweb.net MMUG-DUBLIN usergroup Manager http://www.mmug-dublin.com [EMAIL PROTECTED] Coldfusion Hosting mySQL 4.1 on CF5.0 Probably the cheapest web hosting in Ireland -----Original Message----- From: Barry L Beattie [mailto:[EMAIL PROTECTED] Sent: 02 June 2004 05:47 To: [EMAIL PROTECTED] Subject: [ cf-dev ] anyone called a webservice with addRequestHeader() sucessfully? Hi all We're trying to connect our CF app to an ASP.NET (asmx) webservice. Has anyone called a webservice with addRequestHeader(), sucessfully? It can't be a network problem (it works with other tools) so it's either (1) sheer incompetance on my part or (2) something funny with CF calling other webservices. - all our CF servers have had the webservice headers hot-fix applied. I've stumped our local list (CFAussie) - aparently not many webservices are used in Australia (or they work without grief so (1) above applies here) <cfscript> ws = CreateObject("webservice", "https://www.stratapay.com.au/ecommservices.asmx?WSDL"); addRequestHeader(ws, "authID", "test"); addRequestHeader(ws, "password", "test"); addRequestHeader(ws, "timeStamp", "#now()#"); ans = ws.checkPaymentComplex("test", "test 123"); </cfscript> <cfoutput>#ans#</cfoutput> <cfdump var="#ws#"> no go. "Could not generate stub objects for web service invocation" HOWEVER, we can using a tool called soapScope and it all works fine - correct response headers, sensible answer, etc. We can CFDUMP the webservice object (before the method call) and it all looks good. Start adding header info and it craps out. I just hope it doesn't go down this path. I really don't want to re-do this in Java http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=7&th readid=781179 any thoughts greatfully recieved thanx barry beattie request (using soapScope): =============================== <soap:Envelope xmlns:s0="http://tempuri.org/stratapayMKII/eCommServices" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <soap:Header> <s0:StrataPayAuthenticator> <s0:authID>test</s0:authID> <s0:password>test</s0:password> <s0:timeStamp>2003-11-12</s0:timeStamp> </s0:StrataPayAuthenticator> </soap:Header> <soap:Body> <s0:checkPaymentComplex> <s0:payID>test</s0:payID> <s0:invoiceNumber>test</s0:invoiceNumber> </s0:checkPaymentComplex> </soap:Body> </soap:Envelope> response (using soapScope): ================================= <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Header> <StrataPayAuthenticator xmlns="http://tempuri.org/stratapayMKII/eCommServices"> <authID>test</authID> <password>test</password> <timeStamp /> </StrataPayAuthenticator> </soap:Header> <soap:Body> <checkPaymentComplexResponse xmlns="http://tempuri.org/stratapayMKII/eCommServices"> <checkPaymentComplexResult>0</checkPaymentComplexResult> </checkPaymentComplexResponse> </soap:Body> </soap:Envelope> CODE: ======= <cfscript> ws = CreateObject("webservice", "https://www.stratapay.com.au/ecommservices.asmx?WSDL"); addRequestHeader(ws, "authID", "test"); addRequestHeader(ws, "password", "test"); addRequestHeader(ws, "timeStamp", "#now()#"); ans = ws.checkPaymentComplex("test", "test 123"); </cfscript> <cfoutput>#ans#</cfoutput> <cfdump var="#ws#"> ERROR (using CF code above) ======== Could not generate stub objects for web service invocation. Name: https://www.stratapay.com.au/ecommservices.asmx?WSDL. WSDL: https://www.stratapay.com.au/ecommservices.asmx?WSDL. java.net.MalformedURLException: unknown protocol: https It is recommended that you use a web browser to retrieve and examine the requested WSDL document for correctness. If the requested WSDL document can't be retrieved or it is dynamically generated, it is likely that the target web service has programming errors. The Error Occurred in C:\CFusionMX\wwwroot\webservice\testwscall.cfm: line 15 13 : 14 : <cfscript> 15 : ws = CreateObject("webservice", "https://www.stratapay.com.au/ecommservices.asmx?WSDL"); 16 : addRequestHeader(ws, "authID", "test"); 17 : addRequestHeader(ws, "password", "test"); -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED] --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0423-1, 02/06/2004 Tested on: 03/06/2004 14:43:46 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED]