You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
Is Java source roundtripping (java->xsd->java) a requirement ? #12
This is an issue for a JAXRPC service client brought up in the JAXRPC
2.0 F2F.
The following text (reproduced here to avoid document chasing)
provides the background for this issue and and is taken from the
second bullet item in Section 9.1,�Requirements� in JAXRPC 1.1
specification:
A service client environment should be capable of importing a WSDL
document and generating a Java based client side representation for a
service described in this document. A client side representation
includes classes Requirements generated based on the mapping of
the WSDL definitions to the corresponding Java representation.
ISSUE: [Issue is from JAXRPC 2.0 F2F March 11,12 F2F]. It was noted at
the JAXRPC 2.0 F2F that the classes generated from a WSDL document on
a JAXRPC service client should be similar not necessarily identical to
the JAXRPC service classes from which the WSDL document was generated
on the server. The example discussed was that Date can be mapped to
xsd:date in the WSDL document generated when a JAXRPC service is
exported. But xsd:date may be mapped to Calendar in the generated
classes on the JAXRPC service client. This is a JAXB 2.0 issue since
JAXB 2.0 specifies the mapping rules used in the generation of the
section.
While roundtripping may be desirable, since JAXRPC service client’s view is the
WSDL document - not the JAXRPC service classes - a requirement for rountripping
is not totally clear. JAXB 2.0 can assist in the roundtripping by generating schema
annotations on the XML schema constructs generated in the
section.
NOTE: Roundtripping of source for Schema -> Java -> Schema case is not
a requirement.
sekhar said:
This was discused in the JAXB 2.0 F2F on March 30, 31 2004. Here
are the notes from the minutes:
[ Notes from Roberto Chinnici ]
After a pretty long discussion, we concluded that the actual
requirement from JAX-RPC is weaker that what's stated here. In
particular, in this diagram
Java -(1)> XML Schema --(2)-> Java
step (1) is actual code generation, but (2) doesn't have to be. For
JAXRPC our purposes, it'd be sufficient to allow a developer to carry
over the classes he used at step (1), provided there is enough
metadata to allow tools to do the right thing (i.e. map schema to
existing Java classes so that the logical roundtripping is
preserved).
Activity
glassfishrobot commentedon Apr 12, 2004
Reported by sekhar
glassfishrobot commentedon Apr 12, 2004
Was assigned to sekhar
glassfishrobot commentedon Apr 12, 2004
sekhar said:
This was discused in the JAXB 2.0 F2F on March 30, 31 2004. Here
are the notes from the minutes:
[ Notes from Roberto Chinnici ]
After a pretty long discussion, we concluded that the actual
requirement from JAX-RPC is weaker that what's stated here. In
particular, in this diagram
Java -(1)> XML Schema --(2)-> Java
step (1) is actual code generation, but (2) doesn't have to be. For
JAXRPC our purposes, it'd be sufficient to allow a developer to carry
over the classes he used at step (1), provided there is enough
metadata to allow tools to do the right thing (i.e. map schema to
existing Java classes so that the logical roundtripping is
preserved).
glassfishrobot commentedon Jul 12, 2004
sekhar said:
Updating the status to follow the lifecycle issue outlined in the
jaxb20-note-0007.txt.
glassfishrobot commentedon May 11, 2017
This issue was imported from java.net JIRA JSR222-12