Hi, Hopefully some SOAP gurus can help me. I have an ASP.NET web service to consume:
http://trial.lex.thelearningfederation.edu.au/WebServices/LearningExchange.asmx?WSDL The TestConnection(Username, Password) method is easy to consume because both are string arguments - tested and works fine (called from CF). The QueryLO method requires 1 more argument which I can't work out how to pass. Using SOAPScope I know the web service works - a sample envelope used to send: <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:s0="http://lex.thelearningfederation.edu.au/webservices/2002/07/LORAX" xmlns:s2="http://lex.thelearningfederation.edu.au/webservices/2002/07/Definitions/QuerySyntax" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <soap:Body> <s0:QueryLO> <s2:QUERY><QUERY><Title>*</Title></QUERY></s2:QUERY> <s0:Username>***USERNAME GOES HERE***</s0:Username> <s0:Password>***PASSWORD GOES HERE***</s0:Password> </s0:QueryLO> </soap:Body> </soap:Envelope> How can I pass the QUERY argument in the format requested? It's obviously not just a string? Here's what I got so far... <CFSCRIPT> ws = createObject("webservice", "http://trial.lex.thelearningfederation.edu.au/WebServices/LearningExchange.asmx?WSDL"); // some magic goes in here // the actual query text is <QUERY><Title>*</Title></QUERY> the_query = ???; stuff = ws.QueryLO(the_query,"***USERNAME***","***PWD***"); </CFSCRIPT> I don't really want to create the entrie SOAP envelope from scratch and post it using CFHTTP for the sake of one argument? Any thoughts? Cheers, Ron
<<winmail.dat>>
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/
