Issue Details (XML | Word | Printable)

Key: XFIRE-843
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Dan Diephouse
Reporter: Saurav
Votes: 4
Watchers: 5
Operations

If you were logged in you would be able to see more operations.
XFire

WsGen generates String datatype in to JaxbElement when generating Client Stubs

Created: 16/Jan/07 11:09 AM   Updated: 21/May/07 03:18 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide
String elements in the WSDL are being mapped to JaxbElement while using WsGen for generating client stubs.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Saurav added a comment - 16/Jan/07 11:55 AM
I use the following command line params

org.codehaus.xfire.gen.WsGen -wsdl http://dc1dev02:8080/CMPS-1.0-SNAPSHOT/services/CmpsWebService?wsdl -o . -p test -overwrite true -b jaxb


alpheratz added a comment - 27/Jan/07 05:05 AM
May I request you raise the priority?

It has affected me and required quite a bit of effort to find a workaround (admittedtly there IS a workaround, but its a bit ugly).

See: http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&p=72145#72145

I SUSPECT it will affect MANY myeclipse users.

Cheers,

Alph


Yannis Lionis added a comment - 05/Feb/07 05:28 AM
I would second that request on raising the priority. It is affecting us as well, and it's proving quite difficult coming up with a viable workaround.

Is there a plan to fix this soon?

Yannis


Zarar Siddiqi added a comment - 27/Feb/07 09:53 AM
Yeah, can we please raise the priority for this one. It's extremely painful to modify the generated code.

Tomasz Sztelak added a comment - 27/Feb/07 10:00 AM
Priority raised

Tomasz Sztelak added a comment - 21/Apr/07 02:10 PM
If you can't control service server side, then the only way to fix it i'm aware of is to save WSDL to local file and modify minOccur=0 ( or nillable=true )to minOccur=1 and generate client from modified WSDL.

Yannis Lionis added a comment - 26/Apr/07 08:20 AM
Dissapointing result. Hacking the WSDL to get around the issue is less than ideal, especially since this isn't a case of mis-written WSDL. I hope this gets revised and fixed in the future.

Yannis


Ronald Pieterse added a comment - 21/May/07 02:08 PM
Touching the WSDL is an absolute no go, so I hope you will be able to fix this issue really soon now.

Tomasz Sztelak added a comment - 21/May/07 03:18 PM
This is just how Jaxb works and XFire can't do much about it. But you can customize client generation via external binding ( check jaxb docs).