THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- There are some obvious changes of package names from
org.objectweb.celtix.*
toorg.apache.cxf.*
. If you have used any celtixCeltix-specific non-JAX-WS APIs in your application (for example, using theBus
), then you will have must change imported package names.
...
Later, to get the bus, you can call:
Code Block |
---|
Bus bus = bf.getDefaultBus(); |
...
- If you call
getPort()
on the client side, then you must specify the target namespace of the WSDL contract as the namespace of the port name, like this:
...
In Celtix you could leave the namespace of the port name as an empty string "". However, if you do that in CXF then , the call to getPort()
will fail. This latter behaviour behavior is more in keeping with the JAX-WS specification (see Section 4.2.3 of the JAX-WS Specification).