Yes..I checked CXF samples and i have created my class based on
java_first_spring_support sample only. 
But in my project, i have kept my interface class and webservice
implementation class in different packages. I tried creating wsdl using the
maven plugin and it was working properly (i.e. it contains all definitions
of the service class and pojo's that are available). But wsdl is not created
properly if i try on the fly (i.e. directly giving the url in browser. wsdl
contains service class details. it does not have pojo elements.). 

just now i have solved the problem by giving same targetNamespace in both
interface class and implementation class...

but could you please tell me watever i have done is correct...if i dont give
targetNamespace, i will have to keep my interface class and webservice
implementation class in the same package....could you pls tell me the actual
reason?



Benson Margulies-4 wrote:
> 
> 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 <[EMAIL PROTECTED]>
> 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 <[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.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/POJO-Types-not-creating-in-WSDL-tp19857670p19878557.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to