<div class="panel panel-default">
    <div class="panel-heading">
        <h4 class="panel-title">
            <a data-toggle="collapse" data-parent="#accordion" href="#collapseUserAdd">
                Location Add
            </a>
        </h4>
    </div>
    <div id="collapseUserAdd" class="panel-collapse collapse">
        <div class="panel-body">

            {% include 'SsoHelpBundle:Location:identify.html.twig' %}
            <p>If you want to add a user without an email-address, do not submit the email-tag or leave it empty.</p>
            <pre>{% include 'SsoHelpBundle:Location:xml/add.html.twig' %}</pre>

            <h2>Example</h2>

            <h3 class="bc-info">Request Success for active user</h3>
            <pre>&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;SsoRequest&gt;
  &lt;Credentials&gt;
    &lt;ServiceProvider&gt;
      &lt;ServiceToken&gt;X2222cOhc6Vttcxs6r6bmtdlc8Z1ryTN1TQ16pjivEcprZhye9e17ba7508a4358f99c8ba52ded0f70RnZDhDyKMXLEWobXI2ZOrJ7mXjcPJJNk7wxoAw8WUTk0IMYa&lt;/ServiceToken&gt;
      &lt;ServiceName&gt;MyService&lt;/ServiceName&gt;
    &lt;/ServiceProvider&gt;
    &lt;ServiceTrigger&gt;
      &lt;UserIdentifier&gt;1b996273f3fe3d67a1f363f8d83c1e27b4a3d0aed0b6e2f815ba2d64221ca92c8d7e28053c78c9859582b02274f6a3efba8279c1bd90cc3dce54eecbbd21be0d&lt;/UserIdentifier&gt;
    &lt;/ServiceTrigger&gt;
    &lt;ServiceCountry&gt;
      &lt;Code&gt;DE&lt;/Code&gt;
    &lt;/ServiceCountry&gt;
  &lt;/Credentials&gt;
  &lt;User&gt;
    &lt;Add&gt;
      &lt;Value&gt;
        &lt;UserType&gt;
          &lt;Email&gt;john.doe@example.com&lt;/Email&gt;
          &lt;Username&gt;JohnDoe&lt;/Username&gt;
          &lt;Firstname&gt;John&lt;/Firstname&gt;
          &lt;Lastname&gt;Doe&lt;/Lastname&gt;
          &lt;Password&gt;ZuhH_23Sd&lt;/Password&gt;
          &lt;Active&gt;1&lt;/Active&gt;
        &lt;/UserType&gt;
      &lt;/Value&gt;
    &lt;/Add&gt;
  &lt;/User&gt;
&lt;/SsoRequest&gt;
</pre>

            <h3 class="bc-success">Response Success</h3>
            <pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;SsoResponse&gt;
  &lt;Status&gt;Success&lt;/Status&gt;
  &lt;Trackid&gt;a4edbaf268&lt;/Trackid&gt;
  &lt;Date&gt;2014-08-11T12:49:46+02:00&lt;/Date&gt;
  &lt;User&gt;
    &lt;Add&gt;
      &lt;Status&gt;Success&lt;/Status&gt;
      &lt;Message&gt;User added&lt;/Message&gt;
      &lt;UserType&gt;
        &lt;User&gt;
          &lt;Guid&gt;a5580514b619b65ed4503ebc119227b4804655850ccf7aa6b31f054da4f9d4d0&lt;/Guid&gt;
          &lt;Username&gt;JohnDoe&lt;/Username&gt;
          &lt;Email&gt;john.doe@example.com&lt;/Email&gt;
          &lt;Firstname&gt;John&lt;/Firstname&gt;
          &lt;Lastname&gt;Doe&lt;/Lastname&gt;
          &lt;Active&gt;1&lt;/Active&gt;
        &lt;/User&gt;
      &lt;/UserType&gt;
    &lt;/Add&gt;
  &lt;/User&gt;
&lt;/SsoResponse&gt;</pre>

            <h3 class="bc-info">Request Success for inactive user</h3>
            <pre>&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;SsoRequest&gt;
  &lt;Credentials&gt;
    &lt;ServiceProvider&gt;
      &lt;ServiceToken&gt;X2222cOhc6Vttcxs6r6bmtdlc8Z1ryTN1TQ16pjivEcprZhye9e17ba7508a4358f99c8ba52ded0f70RnZDhDyKMXLEWobXI2ZOrJ7mXjcPJJNk7wxoAw8WUTk0IMYa&lt;/ServiceToken&gt;
      &lt;ServiceName&gt;MyService&lt;/ServiceName&gt;
    &lt;/ServiceProvider&gt;
    &lt;ServiceTrigger&gt;
      &lt;UserIdentifier&gt;1b996273f3fe3d67a1f363f8d83c1e27b4a3d0aed0b6e2f815ba2d64221ca92c8d7e28053c78c9859582b02274f6a3efba8279c1bd90cc3dce54eecbbd21be0d&lt;/UserIdentifier&gt;
    &lt;/ServiceTrigger&gt;
    &lt;ServiceCountry&gt;
      &lt;Code&gt;DE&lt;/Code&gt;
    &lt;/ServiceCountry&gt;
  &lt;/Credentials&gt;
  &lt;User&gt;
    &lt;Add&gt;
      &lt;Value&gt;
        &lt;UserType&gt;
          &lt;Email&gt;john.doe@example.com&lt;/Email&gt;
          &lt;Username&gt;JohnDoe&lt;/Username&gt;
          &lt;Firstname&gt;John&lt;/Firstname&gt;
          &lt;Lastname&gt;Doe&lt;/Lastname&gt;
          &lt;Password&gt;ZuhH_23Sd&lt;/Password&gt;
          &lt;Active&gt;0&lt;/Active&gt;
        &lt;/UserType&gt;
      &lt;/Value&gt;
    &lt;/Add&gt;
  &lt;/User&gt;
&lt;/SsoRequest&gt;
</pre>

            <h3 class="bc-success">Response Success</h3>
            <pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;SsoResponse&gt;
  &lt;Status&gt;Success&lt;/Status&gt;
  &lt;Trackid&gt;a4edbaf268&lt;/Trackid&gt;
  &lt;Date&gt;2014-08-11T12:49:46+02:00&lt;/Date&gt;
  &lt;User&gt;
    &lt;Add&gt;
      &lt;Status&gt;Success&lt;/Status&gt;
      &lt;Message&gt;User added&lt;/Message&gt;
      &lt;UserType&gt;
        &lt;User&gt;
          &lt;Guid&gt;a5580514b619b65ed4503ebc119227b4804655850ccf7aa6b31f054da4f9d4d0&lt;/Guid&gt;
          &lt;Username&gt;JohnDoe&lt;/Username&gt;
          &lt;Email&gt;john.doe@example.com&lt;/Email&gt;
          &lt;Firstname&gt;John&lt;/Firstname&gt;
          &lt;Lastname&gt;Doe&lt;/Lastname&gt;
          &lt;Active&gt;1&lt;/Active&gt;
          &lt;ActivateToken&gt;XXX&lt;/ActivateToken&gt;
          &lt;ActivateTokenExpire&gt;XXX&lt;/ActivateTokenExpire&gt;
        &lt;/User&gt;
      &lt;/UserType&gt;
    &lt;/Add&gt;
  &lt;/User&gt;
&lt;/SsoResponse&gt;</pre>

            <h3 class="bc-error">Response Error - User exists</h3>
            <pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;SsoResponse&gt;
  &lt;Status&gt;Failure&lt;/Status&gt;
  &lt;Trackid&gt;8bec7175fc&lt;/Trackid&gt;
  &lt;Date&gt;2014-08-11T12:51:51+02:00&lt;/Date&gt;
  &lt;User&gt;
    &lt;Add&gt;
      &lt;Status&gt;Failure&lt;/Status&gt;
      &lt;Errors&gt;
        &lt;Error&gt;
          &lt;ErrorCode&gt;&lt;![CDATA[u10]]&gt;&lt;/ErrorCode&gt;
          &lt;ErrorRef&gt;&lt;![CDATA[v001]]&gt;&lt;/ErrorRef&gt;
          &lt;ShortMessage&gt;&lt;![CDATA[Invalid email-address]]&gt;&lt;/ShortMessage&gt;
          &lt;LongMessage&gt;&lt;![CDATA[Email-address already in use.]]&gt;&lt;/LongMessage&gt;
        &lt;/Error&gt;
        &lt;Error&gt;
          &lt;ErrorCode&gt;&lt;![CDATA[u20]]&gt;&lt;/ErrorCode&gt;
          &lt;ErrorRef&gt;&lt;![CDATA[v001]]&gt;&lt;/ErrorRef&gt;
          &lt;ShortMessage&gt;&lt;![CDATA[Invalid username]]&gt;&lt;/ShortMessage&gt;
          &lt;LongMessage&gt;&lt;![CDATA[Username already in use.]]&gt;&lt;/LongMessage&gt;
        &lt;/Error&gt;
      &lt;/Errors&gt;
    &lt;/Add&gt;
  &lt;/User&gt;
&lt;/SsoResponse&gt;</pre>

            <h3 class="bc-error">Response Error - Invalid Data</h3>
            <pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;SsoResponse&gt;
  &lt;Status&gt;Failure&lt;/Status&gt;
  &lt;Trackid&gt;3659ecdd2e&lt;/Trackid&gt;
  &lt;Date&gt;2014-08-11T12:52:57+02:00&lt;/Date&gt;
  &lt;User&gt;
    &lt;Add&gt;
      &lt;Status&gt;Failure&lt;/Status&gt;
      &lt;Errors&gt;
        &lt;Error&gt;
          &lt;ErrorCode&gt;&lt;![CDATA[u31]]&gt;&lt;/ErrorCode&gt;
          &lt;ErrorRef&gt;&lt;![CDATA[v001]]&gt;&lt;/ErrorRef&gt;
          &lt;ShortMessage&gt;&lt;![CDATA[Invalid password]]&gt;&lt;/ShortMessage&gt;
          &lt;LongMessage&gt;&lt;![CDATA[Password should be at least 8 characters or more and should have 127 characters or less and must contain at least one number, one special character, one lower case and one upercase letter. Password must not match username or email.]]&gt;&lt;/LongMessage&gt;
        &lt;/Error&gt;
        &lt;Error&gt;
          &lt;ErrorCode&gt;&lt;![CDATA[u22]]&gt;&lt;/ErrorCode&gt;
          &lt;ErrorRef&gt;&lt;![CDATA[v001]]&gt;&lt;/ErrorRef&gt;
          &lt;ShortMessage&gt;&lt;![CDATA[Invalid username]]&gt;&lt;/ShortMessage&gt;
          &lt;LongMessage&gt;&lt;![CDATA[Username must be at least 5 characters or more.]]&gt;&lt;/LongMessage&gt;
        &lt;/Error&gt;
      &lt;/Errors&gt;
    &lt;/Add&gt;
  &lt;/User&gt;
&lt;/SsoResponse&gt;</pre>
        </div>
    </div>
</div>
