web service with document literal and complex types
andy_wagg Feb 3, 2005 11:14 AMDoes JBoss support this as I am having difficulty figuring this out and making it work. I have a supplied wsdl file that I cannot change. This has methods with complex types.
I was generating the server side from the wsdl, this was generating a SEI for the methods with multiple parameters. Looking at the Axis debug I was getting an error about differing number of parameters. Looking at the deployed wsdd it seems it operation only has a single parameter, and from googling and reading the WIKI I get the impression that this is all thats allowed.
I changed my wscompile option to include the -f:wsi option, that now generates me a SEI with a single parameter.Having deployed this, I now get errors about not being able to convert the param classes.
2005-02-03 08:48:55,239 DEBUG [org.apache.axis.description.ServiceDesc] Enter: syncOperationToClass org.apache.axis.description.Oper ationDesc name: getStatus returnQName: null returnType: null returnClass: null elementQName:{http://opcfoundation.org/webservices/XMLDA/1.0/}GetStatus soapAction: null style: document use: literal numInParams: 1 method:null ParameterDesc[0]: name: {http://opcfoundation.org/webservices/XMLDA/1.0/}GetStatusResponse typeEntry: null mode: INOUT isReturn: false typeQName: {http://opcfoundation.org/webservices/XMLDA/1.0/}GetStatusResponse javaType: null inHeader: false outHeader: false 2005-02-03 08:48:55,239 DEBUG [org.apache.axis.description.ServiceDesc] Sync method: public abstract org.opcfoundation.webservices.X MLDA._1_0.GetStatusResponse org.opcfoundation.webservices.XMLDA._1_0.Service.getStatus(org.opcfoundation.webservices.XMLDA._1_0.GetS tatus) throws java.rmi.RemoteException 2005-02-03 08:48:55,240 DEBUG [org.apache.axis.description.ServiceDesc] Converting param: class org.opcfoundation.webservices.XMLDA. _1_0.GetStatus 2005-02-03 08:48:55,241 DEBUG [org.apache.axis.description.ServiceDesc] Setting param class from TypeQName: class org.opcfoundation. webservices.XMLDA._1_0.GetStatusResponse 2005-02-03 08:48:55,245 DEBUG [org.apache.axis.utils.JavaUtils] Not convertible: [src=class org.opcfoundation.webservices.XMLDA._1_0 .GetStatusResponse,dest=class org.opcfoundation.webservices.XMLDA._1_0.GetStatus] 2005-02-03 08:48:55,245 DEBUG [org.apache.axis.description.ServiceDesc] Param class is not convertible: [param=class org.opcfoundati on.webservices.XMLDA._1_0.GetStatusResponse,actual=class org.opcfoundation.webservices.XMLDA._1_0.GetStatus] 2005-02-03 08:48:55,246 FATAL [org.apache.axis.InternalException] Exception: java.lang.Exception: The OperationDesc for getStatus was not synchronized to a method of org.opcfoundation.webservices.XMLDA._1_0.Se rvice.
Is there a solution to this, does JBoss support what I'm trying to do.
Thanks in advance.