Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-163

Problems mapping between xsd:unsignedLong and javax.xml.rpc.holders.BigIntegerHolder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-ws4ee-4.0.3
    • jboss-ws4ee-4.0.1
    • jbossws-native
    • None

      I try to consume a webservice from a SLSB. The webservice operation has one IN, one INOUT and one OUT parameter, all of the type xsd:unsignedLong.

      I use wscompile to generate the needed files. wscompile maps the OUT and INOUT parameter to java.math.BigInteger in the mapping file and uses javax.xml.rpc.holders.BigIntegerHolder in the SEI. When I call my SLSB an exception occurs:

      "ERROR [JavaUtils] Cannot set holder value '8888' on javax.xml.rpc.holders.BigIntegerHolder"

      If I change my SEI to use org.apache.axis.holders.UnsignedLongHolder instead of javax.xml.rpc.holders.BigIntegerHolder, it all works fine. (I do not need to do any changes to my mapping file).

            tdiesler@redhat.com Thomas Diesler
            anders.hedstrom_jira Anders Hedstrom (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: