gravity00/SimpleSOAPClient

SOAP Security - Timestamp - Property Created serialized as an element named Timestamp

gravity00 opened this issue · 0 comments

The property Timestamp.Created is being serialized as an element named Timestamp instead of Created.

Example:

<?xml version="1.0" encoding="utf-16"?>
<q1:Envelope xmlns:q1="http://schemas.xmlsoap.org/soap/envelope/">
  <q1:Header>
    <q1:Security d1p1:mustUnderstand="1" xmlns:d1p1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
      <q1:Timestamp Id="_TSc6f62dcfa7a6428a8db194856947260a">
        <Timestamp xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2016-05-18T12:35:14.598977+01:00</Timestamp>
        <Expires xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2016-05-18T12:50:14.598977+01:00</Expires>
      </q1:Timestamp>
      <q1:UsernameToken d2p1:Id="_UTc6f62dcfa7a6428a8db194856947260a" xmlns:d2p1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
        <q1:Username>...</q1:Username>
        <q1:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">...</q1:Password>
      </q1:UsernameToken>
    </q1:Security>
  </q1:Header>
  <q1:Body>
    ...
  </q1:Body>
</q1:Envelope>