I've also been able to successfully call salesforce.com web services - see my recent blog entry...
Begin forwarded message:
On Jun 3, 2004, at 7:01 AM, Barry L Beattie wrote:
<quote>The problem is that it seems our ability to set soap headers is limited.</quote>
Here's some code that correctly calls the stratapay WS (and gets the expected result of 0 back):
<cfscript>
// create the web service object:
ws = createObject("webservice", "https://www.stratapay.com.au/ecommservices.asmx?WSDL");
// create the SOAP Header Element called StrataPayAuthenticator:
authHeader = createObject("java","org.apache.axis.message.SOAPHeaderElement")
.init("http://tempuri.org/stratapayMKII/eCommServices", "StrataPayAuthenticator");
// add the three child elements:
authHeader.addChildElement("authID").addTextNode("test");
authHeader.addChildElement("password").addTextNode("test");
authHeader.addChildElement("timeStamp").addTextNode("2003-11-12");// set the header:
ws.setHeader(authHeader);
// call the method:
ans = ws.checkPaymentComplex("test", "test 123");
</cfscript> <cfoutput>#ans#</cfoutput>
Sean A Corfield -- http://www.corfield.org/blog/
"There are no solutions, only trade-offs." -- Thomas Sowell
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
