XFire

WsGen generates String datatype in to JaxbElement when generating Client Stubs

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

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

Activity

Hide
Saurav added a comment -

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

Show
Saurav added a comment - 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
Hide
alpheratz added a comment -

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

Show
alpheratz added a comment - 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
Hide
Yannis Lionis added a comment -

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

Show
Yannis Lionis added a comment - 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
Hide
Zarar Siddiqi added a comment -

Yeah, can we please raise the priority for this one. It's extremely painful to modify the generated code.

Show
Zarar Siddiqi added a comment - Yeah, can we please raise the priority for this one. It's extremely painful to modify the generated code.
Hide
Tomasz Sztelak added a comment -

Priority raised

Show
Tomasz Sztelak added a comment - Priority raised
Hide
Tomasz Sztelak added a comment -

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.

Show
Tomasz Sztelak added a comment - 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.
Hide
Yannis Lionis added a comment -

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

Show
Yannis Lionis added a comment - 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
Hide
Ronald Pieterse added a comment -

Touching the WSDL is an absolute no go, so I hope you will be able to fix this issue really soon now.

Show
Ronald Pieterse added a comment - Touching the WSDL is an absolute no go, so I hope you will be able to fix this issue really soon now.
Hide
Tomasz Sztelak added a comment -

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).

Show
Tomasz Sztelak added a comment - 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).

People

Vote (4)
Watch (5)

Dates

  • Created:
    Updated:
    Resolved: