AdobeStock_455007340

Blackstone And XML Method Arguments

Home » Blackstone And XML Method Arguments

Arguments (parameters) passed to (for UDFs and CFC methods) may be validated using the TYPE attribute which takes a data type as a value. One important type that is missing in CFMX is XML, and we plan to fix this by supporting TYPE=”xml” in Blackstone. Oh, and of course itself supports RETURNTYPE=”xml”.

4 responses to “Blackstone And XML Method Arguments”

  1. Rob Brooks-Bilson Avatar
    Rob Brooks-Bilson

    Ben,
    Is this going to be for validating "real" XML, or for validating a CF XML Document Object?

  2. Doug Hughes Avatar
    Doug Hughes

    One thing I’ve missed are the ability to validate java types in cffunction or cfargument. From time to time I might pass in or return something like a bufferedImage or something.
    Doug

  3. Ben Forta Avatar
    Ben Forta

    Rob, I have not tested it, but I have to assume that it is the CF XML object.
    Doug, that won’t happen in Blackstone.

  4. DK Avatar
    DK

    Hi Ben,
    CFMX7 has introduced returntype="xml" but looks like it has some issues. When I try to access a CF web service with returntype=xml from .Net, i get an error: "Custom tool error: Unable to import WebService/Schema. Unable to import binding ‘test.cfcSoapBinding’ from namespace ‘http://ws.mm_api’. Unable to import operation ‘test1’. The datatype ‘Document’ is missing."
    I am able to call it from ColdFusion without issues. I have posted this on Macromedia forums – but no replies – so to me it looks like it may be a bug – or the implementation may be ‘non-standard’.
    DK

Leave a Reply