Hi All-

When I submit a call to the Axis Server without XSD/XSI types and when the
date field element is empty, the serializer throws
the java.lang.StringIndexOutOfBounds Exception. When I pass the value in the
date field element it works fine.

Here is the XML stream that throws error: The <activationDt/>
 and  <openDt/> are null. These nulls cause the exception and they are
matched to java.util.Date

soapenv:Body>
  <ns1:doTillActivation xmlns:ns1="CdbFacadeHome">
   <TillActivationValueObject xsi:type="ns2:TillActivationValueObject"
xmlns:ns2="urn:CdbFacadeHome">
    <activationDt/>
    <cashDrawerCd>001</cashDrawerCd>
    <openBal>10.0</openBal>
    <openDt/>
    <openInit>MRR</openInit>
    <storeCd>YX</storeCd>
    <tenderRepositoryId>TR001</tenderRepositoryId>
   </TillActivationValueObject>
  </ns1:doTillActivation>
 </soapenv:Body>
</soapenv:Envelope>

The following XML stream works but it has XSI and XSD.

soapenv:Body>
  <ns1:doTillActivation xmlns:ns1="CdbFacadeHome">
   <TillActivationValueObject xsi:type="ns2:TillActivationValueObject"
xmlns:ns2="CdbFacadeHome">
    <activationDt xsi:nil="true"/>
    <cashDrawerCd xsi:type="xsd:string">001</cashDrawerCd>
    <openBal xsi:type="xsd:double">10.0</openBal>
    <openDt xsi:nil="true"/>
    <openInit xsi:type="xsd:string">MRR</openInit>
    <storeCd xsi:type="xsd:string">YX</storeCd>
    <tenderRepositoryId xsi:type="xsd:string">TR001</tenderRepositoryId>
   </TillActivationValueObject>
  </ns1:doTillActivation>
 </soapenv:Body>
</soapenv:Envelope>

Question: How can I pass null values to the date when I don't specify the
XSD and XSI? Appreciate your input.

Thanks.,




Reply via email to