Nira Amit

Greenhorn
+ Follow
since Aug 27, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nira Amit

hi guys, thanks for answering.
the wsdl has no errors, so i checked the latest code distribution (apache-cxf-2.2.3-src) as you suggested and here's what i found:
the problem is with a list called "serviceList" that is being filled in WSDLToJavaContainer by the following code:

List<ServiceInfo> serviceList = (List<ServiceInfo>)context.get(ToolConstants.SERVICE_LIST);
if (serviceList == null) {
serviceList = new ArrayList<ServiceInfo>();

// Build the ServiceModel from the WSDLModel
if (version == WSDLConstants.WSDLVersion.WSDL11) {
@SuppressWarnings("unchecked")
AbstractWSDLBuilder<Definition> builder = (AbstractWSDLBuilder<Definition>)frontend
.getWSDLBuilder();
builder.setContext(context);

// yada-yada-yada... doing more stuff...

} else {
// TODO: wsdl2.0 support
}
}

so basically, support for wsdl 2.0 is not implemented
but looking at the bug repository of the CXF project you see stuff like: https://issues.apache.org/jira/browse/CXF-48?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
which leads innocent people like me to believe that wsdl2.0 is supported...

anybody knows of a wsdl2java tool that supports wsdl2.0 AND lets you pass parameters to xjc?
14 years ago
hi all,
i'm trying to use wsdl2java by typing:
C:\dev\apache-cxf-2.2.3\bin>wsdl2java -wv 2.0 -p my.pkg -client -d src C:/my/service.wsdl
and all i get is

WSDLToJava Error: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

i did manage to generate code from this wsdl using axis2, but i want to use cxf because it lets you use xjc plugins (by passing parameters directly to the xjc).

any ideas? i've been googling for ages...
14 years ago