I am using WEF (8.0) to consume the JAXB generated web services. The response object contains the return keyword as the element name.
<xs:sequence><xs:element minOccurs="0" name="return" type="tns:employee"/></xs:sequence>
Because of that The Data page never identifies the return ... I have to change it to return1. Because of this I am facing the No data display problem in the Data page.
If I use the Data Page like this then the data is getting displayed:
If I use the Data Page like this then the data is not getting displayed:
Any body faced similar problems? Is there any bettter solution to avoid these kind of problem?
Pinned topic Web Experience Factory JAXB generated web services problem
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-31T15:36:00Z at 2013-01-31T15:36:00Z by CarlD
mburati 060000VQ202590 Posts
Re: Web Experience Factory JAXB generated web services problem2013-01-18T14:47:42ZThis is the accepted answer. This is the accepted answer.It sounds like one of the options you tried worked, so is there a reason you can't use that option?
For situations where the data coming back from any back end in any provider model isnt' suitable for automatically generating the page data, WEF provides Transform builders to transform the data (structure too not just names) to something more suitable for use in consumer models. There's also a more limited set of transform mapping that you can do directly in the Service layer builders.
I hope that info helps,
The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM.
saikiran 060000AFWX20 Posts
Re: Web Experience Factory JAXB generated web services problem2013-01-24T23:53:01ZThis is the accepted answer. This is the accepted answer.
- mburati 060000VQ20
By the way I found the way to avoid return while services generated using JAXB.
We can use @WebResult annotation to avoid the return keyword.
CarlD 270003JST046 Posts
Re: Web Experience Factory JAXB generated web services problem2013-01-31T15:36:00ZThis is the accepted answer. This is the accepted answer.
- saikiran 060000AFWX
I'm not sure if this is similar to what your project is using, but it works great for us.
Just FYI. Carl.
IBM Certified Solution Developer - WebSphere Portlet Factory 7.0
My blog http://dsixe-wpf.blogspot.com