We need to call an existing software service here from our CF8 and
Flex app, and we need to access it (to submit a file for storage) via
"SOAP with Attachments".
We can't see how to do this from within CF and haven't had much luck
with Google.
If you try to mix the request content types in the SOAP call, you get
a CF error.

Here's the code:
-----------------------------------------------------------------------------
<cfxml variable="theXML">
 <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <StoreImageRequest xmlns:urn="urn:company-com-
au:service:easyimage:2007:05">
         <logicalRepository>CustomerTest</logicalRepository>
         <image>
            <!--- <urn:imageData>cid:827370646852</urn:imageData> --->
 
<imageData>Bluehills.jpg</imageData>
         </image>
      </StoreImageRequest>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</cfxml>

<cfhttp url="http://servername:16400/easyimage/services/
EasyImageService" username="username" password="password"
method="post" resolveurl="no" redirect="yes" charset="utf-8"> --->
                <cfhttpparam type="xml" value="#theXML#" />
    <cfhttpparam type="file" file="Bluehills.jpg"
name="Bluehills.jpg" />
</cfhttp>
--------------------------------------------------------------------------------------------

Here's the error:
You may not mix the use of cfhttpparam tags of type FILE or FORMFIELD
with cfhttpparam tags of type BODY or XML.

The error occurred in E:\euc_smallapps\_test\cfml\Fred_SOAP1.cfm: line
45
43 : <!--- <cfhttpparam type="" type="header" name="SOAPAction" value
= "getProductInfoXML"> --->
44 :    <cfhttpparam type="xml" value="#theXML#" />
45 :     <cfhttpparam type="file" file="Bluehills.jpg"
name="Bluehills.jpg" />
46 : </cfhttp>
47 :


Has anyone ever been able to get this to work?
Does anyone have any suggestions?

Regards
Darren Tracey
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to