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

Does not marshall boolean

XMLWordPrintable

      $ ant -Dtest=org.jboss.test.ws.marshall.rpclit.MarshallRpcLitTestCase one-test

      JavaBean2 inner = new JavaBean2();
      inner.setMyBigDecimal(new BigDecimal("100"));
      inner.setMyBigInteger(new BigInteger("101"));
      inner.setMyBoolean(true);
      inner.setMyByte((byte)1);
      inner.setMyCalendar(cal1);
      inner.setMyDouble(1.1);
      inner.setMyFloat(1.2f);
      inner.setMyInt(1);
      inner.setMyLong(1);
      inner.setMyShort((short)1);
      inner.setMyString("one");

      JavaBean in = new JavaBean();
      in.setMyBigDecimal(new BigDecimal("200"));
      in.setMyBigInteger(new BigInteger("201"));
      in.setMyBoolean(true);
      in.setMyByte((byte)1);
      in.setMyCalendar(cal2);
      in.setMyDouble(2.1);
      in.setMyFloat(2.2f);
      in.setMyInt(2);
      in.setMyJavaBean(inner);
      in.setMyLong(2);
      in.setMyShort((short)2);
      in.setMyString("two");

      marshalls to

      <ns1:javaBeanTest xmlns:ns1='http://org.jboss.ws/marshall/rpclit'>
      <JavaBean_1 xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
      <myBigDecimal>200</myBigDecimal>
      <myBigInteger>201</myBigInteger>
      <myByte>1</myByte>
      <myCalendar>1970-06-16T14:23:55.000Z</myCalendar>
      <myDouble>2.1</myDouble>
      <myFloat>2.2</myFloat>
      <myInt>2</myInt>
      <myJavaBean>
      <myBigDecimal>100</myBigDecimal>
      <myBigInteger>101</myBigInteger>
      <myByte>1</myByte>
      <myCalendar>1968-06-16T14:23:55.000Z</myCalendar>
      <myDouble>1.1</myDouble>
      <myFloat>1.2</myFloat>
      <myInt>1</myInt>
      <myLong>1</myLong>
      <myShort>1</myShort>
      <myString>one</myString>
      </myJavaBean>
      <myLong>2</myLong>
      <myShort>2</myShort>
      <myString>two</myString>
      </JavaBean_1>
      </ns1:javaBeanTest>

      myBoolean is missing

            olubyans@redhat.com Alexey Loubyansky
            tdiesler@redhat.com Thomas Diesler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: