Tom -- Recently you noted in this forum that a CFML Struct can be crafted to correspond to any arbitrary XML document required as input to any arbitrary (i.e., not necessarily CF-based) web service. However, it remains unclear how one can craft a CFML Struct that will be transformed by the CF web services engine into both the necessary XML element tags, element subtags, element text, and element attributes for services that require such complex input.
Would you please give an example of how to create a CFML Struct that would lead to the following XML document being passed as an input argument? ----the XML document the web service needs to receive as the input1 arg: ----- <tag attr1="attr1val"> <subtag attr2="attr2val">subtagtext</subtag> </tag> ------cfml struct build and cfinvoke: --------- <cfset xml_doc = #StructNew()#> <!--- what goes here? ---> <cfinvoke webservice="someURLthatreturnsaWSDL" input1 = #xml_doc# </cfinvoke> It would be enormously helpful if you could please fill in the "what goes here?" part, as the CF documentation doesn't provide an example for this tricky variant of complex-within-complex typing that some of us are facing in our dealings with foreign web services. Thank you! -- Larry Afrin Medical University of South Carolina Tom Jordahl wrote: > Phil, > > 1. Yes, CFMX 6.1 can consume document/literal web services. > > 2. You would construct CFML variables that match the XML Schema in the WSDL. > For instance, a complexType would be created as a CFML Struct. > > Tom Jordahl > Macromedia Server Development > > -----Original Message----- > From: Phillip Duba [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 01, 2005 10:02 AM > To: CF-Talk > Subject: Document Literal WebService with CFMX6.1 > > All, > > I'm having difficulty calling a web service that is of type document-literal > with a binding definition of <soap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http"/> using CFMX6.1. I guess > there are two questions: > 1. Is CFMX6.1 capable of consuming this type of webservice? > 2. If so, the expectation is an argument of XML-mapped object (I'm using > HR-XML) using marshalling. > > Thanks, > > Phil > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197494 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

