> The problem is not with Axis; it is that there is not syntax in CFINVOKE
to indicate which of the multiple services defined in the WSDL file you want
to use, so CFMX just ends up picking a 'random' one (the 'first' one).  We
need to fix this. :-)
>

Desperately awaiting this fix!! This is absolutely killing me right now.

> You should be able to remove all of the <portType>, <binding>, and
<service> elements (except the one you want).  Leave the <types> section
alone, along with the <message> elements.
>
> Just do this 4 times, once for each portType, and you will have 4 WSDL
files that should work just fine.
>

OK, so I did all this, and from the command line was able to successfully
run the WSDL2Java utility on the resulting WSDL files. However, when I go
the the CF Admin and try and register my 4 WSDL files via the Web Services
section, I constantly get an error. From the stack trace, I've been able to
extract the error below. Any thoughts on why I might be getting this? I know
that the webservices.jar file is in my classpath, so find the appropriate
AXIS classes shouldn't be a problem.

coldfusion.jsp.CompilationFailedException: Errors reported by Java compiler:
Found 1 semantic error compiling
"/opt/jrun4/servers/dave/cfusion/WEB-INF/cfusion/stubs/CommonService/net/map
point/s/mappoint_30/ArrayOfInt.java":

    83. elemField.setMinOccurs(0);
                        <----------------------->
*** Error: No method named "setMinOccurs" was found in type
"org/apache/axis/description/ElementDesc".
.
at coldfusion.jsp.JavaCompiler.compileClass(JavaCompiler.java:136)
at coldfusion.xml.rpc.XmlRpcServiceImpl$2.run(XmlRpcServiceImpl.java:258)
at java.security.AccessController.doPrivileged(Native Method)
at
coldfusion.xml.rpc.XmlRpcServiceImpl.registerWebService(XmlRpcServiceImpl.ja
va:233)
at
coldfusion.xml.rpc.XmlRpcServiceImpl.registerWebService(XmlRpcServiceImpl.ja
va:155)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at coldfusion.runtime.StructBean.invoke(StructBean.java:326)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1650)

I'm using CFMX 6.1 for J2EE for JRun on Solaris 8 (and Linux).

Thanks,
Dave.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to