-
1. Re: Problem getting unexpected element name returned to clie
acxsjones Mar 25, 2005 8:54 AM (in response to acxsjones)Let me add the wscompile from server and client
server wscompile<wscompile fork="true" base="${build.dir}" features="rpcliteral" sourceBase="${src.dir}" keep="true" server="true" model="${src.dir}/com/acxiom/test/ejb/helloworld2/META-INF/HelloWorld.xml.gz" mapping="${src.dir}/com/acxiom/test/ejb/helloworld2/META-INF/mapping.xml" nonClassDir="${src.dir}/com/acxiom/test/ejb/helloworld2/META-INF/wsdl" config="${config.dir}/HelloWorld2-config.xml" verbose="true" xprintstacktrace="true"> <classpath refid="build.classpath"/> </wscompile>
client wscompile<wscompile keep="true" client="true" base="${build.dir}" sourceBase="${src.dir}" verbose="true" xprintstacktrace="true" features="rpcliteral" config="${wsdl.dir}/HelloWorld2-config.xml"> <classpath refid="wspack.classpath"/> </wscompile>
-
2. Re: Problem getting unexpected element name returned to clie
md5georg Mar 29, 2005 3:19 AM (in response to acxsjones)Hello,
I am guessing you are using jboss 4.0.0 or 4.0.1sp1? In this case, it is a bug and it is fixed in the 4.0.2RC1 which you can find here:
http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=16942
If you can not, for legacy reason or you just do not want to use an RC :), change to 4.0.2 you can implement an type mapping override with the correct 'result' in the ws4ee-deployment.xml descriptor as described here:
http://www.jboss.org/wiki/Wiki.jsp?page=WSTypeMapping
The easiest way of doing it is to copy the type mapping from an already deployed wsdd file (JBOSS_HOME/server/<server nam>/data/wsdl//...), then change the 'returnQName' as follows:returnQName='result'
This did resolve my problems.
Best regards,
Georg -
3. Re: Problem getting unexpected element name returned to clie
thomas.diesler Apr 13, 2005 6:19 AM (in response to acxsjones)The override mechanism to the generated WSDD is the ws4ee-deployment.xml descriptor. You can create this additional descriptor and copy your modified type-mapping to it.
-
4. Re: Problem getting unexpected element name returned to clie
platinumdragon Apr 22, 2005 5:05 PM (in response to acxsjones)"md5georg" wrote:
I am guessing you are using jboss 4.0.0 or 4.0.1sp1? In this case, it is a bug and it is fixed in the 4.0.2RC1 which you can find here:
http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=16942
I am running across the same problem, but 4.0.2RC1 produces the same error. Is this planned for the 4.0.2 final?
Thanks,
Mike -
5. Re: Problem getting unexpected element name returned to clie
platinumdragon Apr 22, 2005 5:43 PM (in response to acxsjones)Hmm,
I can't get the ws4ee-deployment.xml override to work either. Rather, it works in that it replaces the instances in the wsdd file on the server, but I get the same message. It looks like "result" is still in the "message-part" tag in the jaxrpc-mapping.xml.
Thanks,
Mike -
6. Re: Problem getting unexpected element name returned to clie
md5georg Apr 24, 2005 4:45 AM (in response to acxsjones)That is strange.... I did not have any problems at all using 4.0.2 RC1 (+others if you search this forum).
Can you please post some information about it, client error message (stack trace), wsdd snippet for the returned object, soap response, etc...
Best regards,
Georg