2

How can I force CXF to serialize all auto generated client classes? Any parameters I need to pass when runing the client generator?

bluish
  • 26,356
  • 27
  • 122
  • 180
Viren Pushpanayagam
  • 2,397
  • 6
  • 35
  • 39

1 Answers1

6

What XML Binding are you using? If you are using JAXB, you'll need to have a binding file like this:

How to generate a Java class which implements Serializable interface from xsd using JAXB?

When you use maven to generate your client stubs, you can add the binding file like this:

http://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html

Best regards, Alexander.

Community
  • 1
  • 1
ahus1
  • 5,782
  • 24
  • 42