Hi,
Yeah, use cxf simple front end is my suggestion.
It's almost same as you use simple frontend with standalone cxf.

Simple frontend means building services from reflection. This is in contrast to the JAX-WS frontend which requires you to annotate your web service classes or create a WSDL first. The simple frontend will use reflection to intelligently map your classes to a WSDL model.

So the pojo you used for cxf se endpoint is a real "pojo", you needn't add annotations in the class. One thing you should know is if you use simple frontend, generally you should use aegis databinding at the same time , just add useAegis="true" attribute for your cxf se endpoint configuration.

You may need take a look at [1] for more about how to use simple frontend.
[1]http://cxf.apache.org/docs/simple-frontend.html

Freeman

On 2010-3-5, at 下午12:22, chris charles harris wrote:


hi..,

I can not go with servicemix-cxf-se because It is tightly coupled with
annotations. Due to the requirement i need two service engine which expose same service with different namespaces. I tried several ways but could not be success. In servicemix-jsr181 component we can easily change namespace dynamically. Do u have any idea with that? If you need more information i
can give you. appreciate your response.

If we can use cxf simple frountend with servicemix-cxf-se it will solve my problem. Can you give any resource that explains how to use simple- frountend
with servicemix-cxf-se ...

Thnaks a lot

chris


Freeman Fang wrote:

Hi,

Could you use servicemix-cxf-se instead? As servicemix-jsr181 is kinda
of deprecated.

Freeman
On 2010-3-4, at 下午8:11, chris charles harris wrote:


Hi,
I am going to use servicemix-jsr181 component for develop my
application
with "annotation = none" condition. I was able pass a string parameter
according to their example. Now I want to pass a complex object to a
method.
I changed the wsdl and create classes.

Lets say this is the method i want to expose as a service.

public String processOrder(Order order );


Order class :

public class Order {

  protected String customerID;
  protected String itemID;

.......

}

I implemented the method and deployed successfully in servicemix.
Then i saw
the generated wsdl it contains different namespace for the my order
class
even i define it the my wsdl. When i test the service with SOAPUI it
always
passes one parameter. Other one is not passing. Can anyone temm me
how to
pass complex object with servicemix-jsr181 componentand
annotation=none
condition.

Thanks
chris

--
View this message in context:
http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27779954.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.



--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com




--
View this message in context: 
http://old.nabble.com/How--to-pass-complex-object-in-to-a-web-service-tp27779954p27789792.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.



--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com

Reply via email to