Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-2748

generating xsi:type which causes exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: 1.4
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      unix , java 1.4.2, Axis 1.4,

      Description

      Used axis 1.4 to generate the java classes from wsdl.

      An exception is thrown when the xsi:type is sent as part of the XML

      Tried to set all the below property values to false
      msgContext.getAxisEngine().setOption(AxisEngine.PROP_SEND_XSI, Boolean.FALSE);
      call.getMessageContext().setProperty(call.SEND_TYPE_ATTR, Boolean.FALSE);
      call.setOption(call.SEND_TYPE_ATTR,Boolean.FALSE);
      call.setProperty(call.SEND_TYPE_ATTR,Boolean.FALSE);
      call.setOption(AxisEngine.PROP_SEND_XSI,Boolean.FALSE);
      call.setProperty(AxisEngine.PROP_SEND_XSI,Boolean.FALSE);

      Sample XML:

      <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope
      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

      <soapenv:Body>
      <Data>
      <phone xsi:type="xsd:string">111111</phone>
      <zip>5000</zip>
      <lastName xsi:type="xsd:string"> TEST </lastName>
      </Data>
      </soapenv:Body>

      Thanks

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alertmenow Gopal
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: