Parameter character case gets changed when a request is created using generated
classes
---------------------------------------------------------------------------------------
Key: XFIRE-398
URL: http://jira.codehaus.org/browse/XFIRE-398
Project: XFire
Type: Bug
Versions: 1.1-RC1
Environment: Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0_06-b05)
Linux prometheus-stfs 2.6.15-22-686 #1 SMP PREEMPT Sun May 7 16:37:57 UTC 2006
i686 GNU/Linux
Reporter: Stefan Freyr Stefansson
Assigned to: Dan Diephouse
Priority: Critical
Attachments: xfire-gencase-bug.zip
Attached is a zip file with a very minimal structure to reproduce this problem.
The zip file contains all libraries that I used when I noticed the problem.
Extract this zip file and refer to the structure within in the description
below:
1) Extract the zip file and take a look at the file
xfire-gencase-bug/src/schema/service.wsdl. Notice in the
GetPartyByPartyIDRequest type that it contains one element called "PartyID"
(note the capital 'P').
2) Go into the xfire-gencase-bug directory and run "ant". This will generate
Java classes by utilizing the wsgen task. The sources will go into
xfire-gencase-bug/src/xfire/.
3) Take a look at
xfire-gencase-bug/src/xfire/foo/interfaces/geysir/company/GetPartyByPartyIDRequest.java
and notice that the @XmlType annotation for the class is:
@XmlType(name = "GetPartyByPartyIDRequest", propOrder = {
"partyID"
While all other references to "PartyID" have a capital 'P' this annotation has
a lower case 'p'. This results in the soap messages being constructed with the
wrong case for the <PartyID> element which causes an error on a .NET web
service (at least).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira