It might be good to post a *minimal* Java class that reproduces the same error; basically rip out as much as you can from the SEI to give the simplest class that provides the same error. Checking to see what Metro does (same error? no error?) might also be informative: http://www.jroller.com/gmazza/entry/java_first_web_service.

Offhand, I know the default JAXB is different between Java 6 and 7 (JAXB 2.1 vs. JAXB 2.2), so that could be the issue.

Glen

On 08/20/2012 06:33 AM, Pavel Khodchenkov wrote:

Hi folks,

When I use jdk 7 I have the following warning in jaxws-maven-plugin when importing the wsdl generated by cxf-java2ws-plugin 2.6.0:

[WARNING] src-resolve: Cannot resolve the name 'ns1:multiItemEntitlementDTO' to a(n) 'element declaration' component.

line 163 of file:/E:/IdeaProjects/transaction-service/web/target/generated/wsdl/TransactionService.wsdl#types?schema1

[WARNING] src-resolve: Cannot resolve the name 'ns1:multiItemEntitlementDTO' to a(n) 'element declaration' component.

line 163 of file:/E:/IdeaProjects/transaction-service/web/target/generated/wsdl/TransactionService.wsdl#types?schema1

And the stub generated this wsdl does not work very well: server fails with namespace mismatch.

There is no such issues when I use jdk 6.

I have attached both wsdls generated by jdk 6 and jdk 7.

Does somebody have any ideas?


Reply via email to