Description
Pass a business entity key as the service key when saving a binding yields:
org.apache.juddi.model.BusinessEntity cannot be cast to org.apache.juddi.model.BusinessService
Caused by: java.lang.ClassCastException: org.apache.juddi.model.BusinessEntity cannot be cast to org.apache.juddi.model.
BusinessService
at org.apache.juddi.api.impl.UDDIPublicationImpl.setOperationalInfo(UDDIPublicationImpl.java:870)
at org.apache.juddi.api.impl.UDDIPublicationImpl.saveBinding(UDDIPublicationImpl.java:540)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
this should be handled in a cleaner way