We're having problems writing JAX-WS clients that interface with our own web services (housed in JBoss 5.1.0.GA). We're trying to call the following method:
public List execute(
@WebParam(name = "algorithm") String algorithm,
@WebParam(name = "algorithmRequest") AlgorithmRequest<? extends AlgorithmParameters> algorithmRequest)
The client indicates that the actual type of "algorithmRequest" is one of the valid subclasses of AlgorithmRequest, but the pojo instantiated on the server side is of type AlgorithmRequest. Here is a typical SOAPMessage:
Jena Add Source
<algorithmRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="tns:ActualRequest">
The SOAP request is built using the JAX-WS SOAPMessage class and its subordinates.
As far as I can tell, this is the right way to construct the SOAP request. Is that the proper way to indicate the type?