All objects waiting for .NET are serialized by Axis and are available to you. Unfortunately, ColdFusion does not allow easy access.
To get to the stubs, you must:
- Access WSDL in any way with coldfusion.
- Look in the CF application catalog for stubs. They are located in the "submarine" directory organized by WSDL.ike: C: \ ColdFusion8 \ butts \ WS \ WS-21028249 \ com \ Foo \ bar \
- Copy everything from "com" down to the new directory that exists in the path of the CF class. or you can do one of them: C: \ ColdFusion8 \ MyStubs \ com \ Foo \ bar \
- If you created a new directory, add it to the class path. and restart CF services.
- Use them, like any other Java object, using or CreateObject () MyObj = CreateObject ("Java", "com.foo.bar.MyObject");
Your dataset object must be somewhere in any Java format that Axis has decided. Most likely you will need to do almost all of this in cfscript
EDIT QUESTIONS
A SOAP object will determine the structure of the object, and Axis will create methods for managing it. Take a look at the Java object that creates the axis. Remember that you can use CFDUMP to view methods and properties.
Now I saw .NET objects that axis gets tangled past, like a scary non-generic collection that turns into an "ArrayOfAnyType". It is important for .NET developers to use Generics in their services, so that the axis can define arrays correctly .... if they do not, then it sucks, and you may not be able to work with it in soap.
but donโt be afraid, winning ... there is another way. You can always interact with .NET web services in XML / RPC style. This is not automatic, a lot of manual XML parsing, it sucks, but sometimes this is the only way to do this. You can get some help from .NET by clicking on the .asmx file without the "? Wsdl" at the end. If you do, then .NET will create a bunch of documentation and examples of how calls and XML look. In this case, you can simply create the XML and pass it over the wire, as indicated by cfhttp. Good luck
PS I should also note that, as far as I know, there is no way to mix hand-rolled XML with ColdFusion / Apache Axis objects, there is also no way to model your own object for use with CF / Axis ... you should use stubs or nothing
ryber
source share