cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benson Margulies" <bimargul...@gmail.com>
Subject Fwd: POJO Types not creating in WSDL
Date Wed, 08 Oct 2008 12:50:31 GMT
You still haven't told me what your data binding and  front end are. Also,
what is in the wsdl? An operation 'getResult'? What sort of types does it
refer to.

Have you looked at our samples?


On Wed, Oct 8, 2008 at 12:32 AM, Viswa.TK <vkuppuswamy@inautix.co.in> wrote:

>
> I have created a implementation class which implements an interface with
> one
> method. The method returns a POJO class and also it takes a POJO object as
> parameter. i. e. it is configured as Code first.
> I have given annotation in both implementation class and interface class as
> given below
>
> Implementation class
> ------------------------
>
> @WebService(endpointInterface = "com.services.Myinterface",
> targetNamespace="http://cxf.apache.org")
> public class MyServices implements Myinterface {
>
>   public DemoPOJO getResult(RequestInfo requestInfo)   throws Exception {
> }
>
> Interface class
> -------------------------
>
> @WebService
> public interface Myinterface {
>        public DemoPOJO getResult(@WebParam(name="requestInfo") RequestInfo
> requestInfo) throws Exception;
> }
>
> spring beans.xml
> --------------------------
>
>        <jaxws:endpoint
>                  id="resultView"
>                  address="/resultView">
>                  <jaxws:implementor>
>                         <bean id="myServices"
> class="com.services.MyServices">
>                                <property name="aViewService"
> ref="aViewService" />
>                </bean>
>                  </jaxws:implementor>
>        </jaxws:endpoint>
>
>
> Using the above code and configuration, WSDL has been created. But WSDL
> does
> not have the definition of the POJO's (DemoPOJO and RequestInfo).
>
>
>
>
> Benson Margulies-4 wrote:
> >
> > But how? I am completely unable to visualize your problem from your
> > description. AJX-WS or Simple? JAX-B or Aegis? Code first or WSDL-first?
> >
> > On Tue, Oct 7, 2008 at 9:56 AM, Viswa.TK <vkuppuswamy@inautix.co.in>
> > wrote:
> >
> >>
> >> Actually i have configured using CXF/Spring...
> >>
> >>
> >>
> >> Benson Margulies-4 wrote:
> >> >
> >> > You will need to give us much more detail. How are you configuring
> CXF?
> >> >
> >> > On Tue, Oct 7, 2008 at 9:01 AM, Viswa.TK <vkuppuswamy@inautix.co.in>
> >> > wrote:
> >> >
> >> >>
> >> >> Hi,
> >> >>
> >> >> I am Apache CXF for Webservice. I have an interface which returns a
> >> POJO.
> >> >> I
> >> >> have implemented CXF for this interface. But it is creating WSDL with
> >> the
> >> >> type of interface only. POJO types are ignored in the WSDL while
> >> creating
> >> >> on
> >> >> the fly. But correct WSDL is generated if i use any maven plugins.
> >> Could
> >> >> some tell me the reason for this?
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/POJO-Types-not-creating-in-WSDL-tp19857670p19857670.html
> >> >> Sent from the cxf-user mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/POJO-Types-not-creating-in-WSDL-tp19857670p19858734.html
> >> Sent from the cxf-user mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/POJO-Types-not-creating-in-WSDL-tp19857670p19872139.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message