0 Replies Latest reply on Aug 11, 2009 5:14 AM by Larry Compton

    JBoss 5.1.0.GA - Subclassing problem in SOAPMessage

    Larry Compton Newbie

      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:

      <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
      <tns:execute xmlns:tns="http://xyz.abc.com/">
      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?