Question

I have a few JAX-WS web services hosted on the same server. They use the same entity objects, but when the web services are consumed by a client, the reflected entity objects are always different between the web services.

How do I force all the clients to identify the entity objects to be of the same data type across multiple web services?

i.e.

webservice.Student class for web service StudentAdministration and webservice.Student class for web service ClassAdministration

are both different objects in the consumer's point of view. How do I change my web service to expose the webservice.Student class to let the consumer know that both are the same entity types, even though they are exposed from different web services?

Was it helpful?

Solution

You need to define the common entities in a single XML schema as described here:

https://jax-ws.dev.java.net/guide/Compiling_multiple_WSDLs_that_share_a_common_schema.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top