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 <[EMAIL PROTECTED]>
> 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 <[EMAIL PROTECTED]>
>> > 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.

Reply via email to