Yeah I've been messing with this and I have it working but only after
writing my own WSDL to get around this error:

org.xml.sax.SAXException: Found character data inside an array element
while deserializing

Anyway, use a username of "any" and password of "any" as per their PHP example.

The change I made to the wsdl was to replace xsd:base64Binary with
xsd:anyType and it works. The way to output the result to the user
then becomes:

<cfinvoke
 webservice="http://your own version of the.wsdl"
 method="doBarCodes"
 returnvariable="doBarCodesRet" >
        <cfinvokeargument name="username" value="any"/>
        <cfinvokeargument name="password" value="any"/>
        <cfinvokeargument name="num" value="123456"/>
        <cfinvokeargument name="imgtype" value="jpg"/>
</cfinvoke>

<cfcontent 
type="image/jpeg"><cfoutput>#toString(ToBinary(doBarCodesRet))#</cfoutput>

On Wed, Aug 20, 2008 at 10:54 AM, Brad Wood <[EMAIL PROTECTED]> wrote:
> Look at the WSDL.  That method is expecting 4 parameters.  You are only
> supplying two.
>
>  <message name="doBarCodes">
>    <part name="username"        type="xsd:string"/>
>    <part name="password"        type="xsd:string"/>
>    <part name="num"          type="xsd:string"/>
>    <part name="imgtype"         type="xsd:string"/>
>  </message>
>
>
>  Error
>> Web service operation doBarCodes with parameters
>> {imgtype={PNG},num={0123}} cannot be found.
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311296
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to