This content has been marked as final. Show 3 replies
I've included some sample code below for the complex type (WSDL) and how I'm calling it:
OK, so maybe some progress, maybe not. I've managed to retrieve the .java files from the WSDL using C:\CFUSIONMX7\Runtime\Bin\wsdl2java.exe. This gave me a directory tree that looked something like this:
I used my Java IDE to compile the java files into class files (required the appropriate jars:
I then placed my compiled classes (directory structure and all) in my CFUSIONMX7/Lib directory and restarted the server.
I can now instantiate the custom Java class for the problem Web Service parameter. Again, it works fine on my machine, but when I try to instantiate / call the webservice on my STAGING server, I get the following error:
Could not instantiate stub objects for web service invocation.
The rootcause was that: java.lang.reflect.InvocationTargetException
Well, after about a day and a half of troubleshooting, I finally figured out how to get it to work. It seemed as if my last error had to do with the fact that I had class files for the webservice objects scattered around my computer and CF has having problems (name collisions, maybe?) creating the stub files it needed for the web service invocation.
This, however, worked:
1) Update my machine to CF 7.0.2. so I don't have to keep uploading to the staging server to test
2) After doing some more research in the following articles, it seemed as if my initial approach (recreating complex object in CF structure/array) should have worked:
3) After playing around with syntax, I FINALLY found a solution that worked. It wound up being as simple as:
(see my code above)
Now why the previous code worked in 7.0.0 and this syntax works in 7.0.2, I have no idea.
But it works now, and that's all that matters.