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?
This topic has been locked.
3 replies Latest Post - 2013-01-31T15:36:00Z by CarlD
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 060000VQ202367 PostsACCEPTED ANSWER
Re: Web Experience Factory JAXB generated web services problem2013-01-18T14:47:42Z in response to saikiranIt 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 PostsACCEPTED ANSWER
Re: Web Experience Factory JAXB generated web services problem2013-01-24T23:53:01Z in response to mburatiHi
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 PostsACCEPTED ANSWER
Re: Web Experience Factory JAXB generated web services problem2013-01-31T15:36:00Z in response to saikiranI stumbled on your post and just wanted to mention that we've been using custom java web services on our project for a while with minimal annotations (no JAXB annotations required). I even blogged about it a few years ago here:
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