[
https://issues.apache.org/jira/browse/CXF-3282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp resolved CXF-3282.
------------------------------
Resolution: Not A Problem
Fix Version/s: Invalid
CXF doesn't implement a Castor databinding at this time.
However, this can be accomplished with JAXB just fine via the normal JAXB
annotations on the class. Using @XmlElement(name = "name") on the "fullName"
field, you can map it to the appropriate XML.
> How do we implement castor mapping during marshalling of request and
> unmarshalling of response xml using CXF framework.
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: CXF-3282
> URL: https://issues.apache.org/jira/browse/CXF-3282
> Project: CXF
> Issue Type: Bug
> Components: Integration
> Affects Versions: 2.2.9
> Environment: JDK 1.6,
> Reporter: Asif Ali Mohammed
> Fix For: Invalid
>
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> Hi,
> I have an existing web service developed using Axis 1.2 where I use Castor
> Mapping API and perform custom mapping for the request xml received and
> outgoing response xml.
> Example:
> Request: <soap:body><Person ><fname>abc</name><id>rta</id></soap:body>
> Mapping: Person - > Employee; name -> fullName; id - > employeeId
> Objects inside my service :
> public class Employee{
> private String fullName;
> private String employeeId
> }
> Is there any similar and flexible way of doing a custom mapping in CXF.
> Please suggest.
> Thanks,
> Asif Ali Mohammed.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira