<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 subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
