]
Darran Lofthouse updated JBWS-1260:
-----------------------------------
Comment: was deleted
WSDL To Java - Parameter unwrapping fails for a lot of scenarios.
-----------------------------------------------------------------
Key: JBWS-1260
URL:
http://jira.jboss.com/jira/browse/JBWS-1260
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: wstools
Affects Versions: jbossws-1.0.4
Reporter: Ole Matzura
Assigned To: Darran Lofthouse
Fix For: jbossws-1.0.5
Testing parameter unwrapping when using wsdl to java with the following scenarios: -
A - Element contains anonymous complex type which contains a single element.
B - Element contains anonymous complex type which contains two elements.
C - Element references complex type which contains a single element.
D - Element references complex type which contains two elements.
E - Element references complex type which contains an anonymous type which contains a
single element.
F - Element references complex type which contains an anonymous type which contains two
elements.
G - Element contains anonymous complex type which contains a single element which is an
array. (1)
H - Element references complex type which contains a single element which is an array.
(3)
I - Element references complex type which contains an anonymous type which contains a
single element which is an array. (5)
J - Element contains anonymout complex type which contains an empty sequence.
K - Element references complex type which contains an empty sequence.
L - Element references complex type which contains an anonymous type which contains an
empty sequence.
Scenarios A, B, and G are failing with the following error: -
org.jboss.ws.WSException: String passed is null
at org.jboss.ws.metadata.wsdl.WSDLUtils.firstLetterUpperCase(WSDLUtils.java:455)
at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:137)
at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:113)
Scenario D
The parameter is being unwrapped even though it contains two elements, one of the
elements is being lost.
Scenarios E, F, I, and L are failing with the following error: -
java.lang.IllegalArgumentException: local part cannot be "null" when
creating a QName
at javax.xml.namespace.QName.<init>(Unknown Source)
at javax.xml.namespace.QName.<init>(Unknown Source)
at org.jboss.ws.tools.WSDLToJava.unwrapResponseParticles(WSDLToJava.java:316)
Scenarios J, and K are failing with the following error: -
org.jboss.ws.WSException: Attempt to unwrap a response type with no particles
at org.jboss.ws.tools.WSDLToJava.unwrapResponse(WSDLToJava.java:285)
at org.jboss.ws.tools.WSDLToJava.getReturnType(WSDLToJava.java:540)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: