I'm trying to use wsdl2java from the Axis2 v1.3 distribution to
generate soap headers, and import xml schemas via either jibx or
xmlbeans databinding. I've run into some limitations using wsdl2java
and wanted to confirm my findings. All my tests used the
StockQuoteService wsdl provided in the quickstartjibx and
quickstartxmlbeans examples.
1) Test Results for more than one <part> element per <message> element:
-jibx: obtained the following error.
Caused by: org.apache.axis2.AxisFault: message
{http://quickstart.samples/}myHeaderMessage not found in the WSDL
-xmlbeans: obtained the following error.
Caused by:
org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException: More than one part for message
getPriceMessage
2) Test Results for Cirular imports in a wsdl, where xml schema A
imports schema B, which imports the original schema A:
-jibx: didn't try. xml schema is complicated.
-xmlbeans: Get 'Duplicate global element' Error.
Caused by: org.apache.xmlbeans.XmlException:
project://local/AlertInfrastructureTransactions.xsd:14:5: error:
sch-props-correct.2: Duplicate global element:
[EMAIL PROTECTED] (Original global
element found in file: null)
3) Test Results for soap headers added to binding.
-jibx: Get mapping error when <soap:header ...> is added to binding.
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: No mapping defined for element
{http://quickstart.samples/xsd}myHeader
-xmlbeans: works, as long as there is a separate 1 part message for
the header.
Based on these findings, I plan to use xmlbeans databinding and pass
the xml documents as string parameters, then use xmlbeans to create
the binding objects in the invoked service method.
Has anyone run into the issues cited above or had different experiences?
Thanks,
Jonathan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]