Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Darryl A. J. Staflund #1
Using WS Stubs in CFINVOKE Tags
Hi there,
I am developing a CF family of web service components that make use of complex
data types. I've noticed that CFMX generates stub Java classes based on the
WSDL files that I am working with that I can access as Java objects from within
CFMX. This is nice, because, similar to Java and .NET practices, I should be
able to use these classes to publish and consume web services with.
Alas, I don't seem able to do this in practice, however, because CFMX only
seems to accept structs as arguments to the <cfinvoke /> tag or web service
invocation method. For example, although I can do this:
....<cfset val = StructNew () />
....<cfset val.a = "a" />
....<cfset val.b = "b" />
....
....<cfset ws = CreateObject ("webservice",
"http://web.service.goes.here/a?wsdl") />
....<cfset ws.invokedMethod (args = val) />
I don't seem able to do this:
....<cfset stub = CreateObject ("java", "cfmx.autogenerated.ws.stub.Here") />
....<cfset stub.setA ("a") />
....<cfset stub.setB ("b") />
....
....<cfset ws = CreateObject ("webservice",
"http://web.service.goes.here/a?wsdl") />
....<cfset ws.invokedMethod (args = stub) />
Is there any way in CFMX that I can achieve this result without have to create
structs all the time?
Thanks,
Darryl Staflund
Darryl A. J. Staflund Guest
-
Access Stubs Library from Webservices
Hi I am using Microsoft Webservices MapPoint like this in MX7: <CFSCRIPT> // RenderServiceSoap myRenderServiceSoap =... -
CFINVOKE
Hi, I've a problem invoking 2 cfc's in one function which has same return variable. please see the below code. my question is how does it affect... -
Accessing complex COM objects in ColdFusion MC usingJava Stubs
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tf_18211 Step 3c: I am confused on this step. The server that I have ColdFusion... -
Stumped on Stubs
Hi, I'm trying to create stub projectors (pc, OSX, OS9) on a mac using dmx2004, to play my main movie. I've read the technotes, forum posts ,... -
Director stubs
We are having problems while copying director project from a mac to pc from an external hard drive. When it is burned onto a cd, it starts looking... -
Bruno Gubler #2
Re: Using WS Stubs in CFINVOKE Tags
I have the same Problem/whishes with Arrays and I would like the have a Answer to this.
Thanks
Bruno
Bruno Gubler Guest



Reply With Quote

