locked
OMADM VPN configuration fails with 500 error code RRS feed

  • Question

  • Neither MSCHAPv2 nor EAP-TLS worked for us.

    sample XML and response below:

    <SyncML xmlns="SYNCML:SYNCML1.2">
      <SyncHdr>
        <VerDTD>1.2</VerDTD>
        <VerProto>DM/1.2</VerProto>
        <SessionID>25</SessionID>
        <MsgID>3</MsgID>
        <Target>
          <LocURI>IMEI:356491063445762</LocURI>
        </Target>
        <Source>
          <LocURI>https://dev.com/omadm/WindowsPhone.ashx?SID=3u7e2u90abl93njq2rl2hflok7</LocURI>
          <LocName>MDMSRV187974</LocName>
        </Source>
      </SyncHdr>
      <SyncBody>
        <Status>
          <CmdID>1</CmdID>
          <MsgRef>3</MsgRef>
          <CmdRef>0</CmdRef>
          <Cmd>SyncHdr</Cmd>
          <TargetRef>https://dev.com/omadm/WindowsPhone.ashx?SID=3u7e2u90abl93njq2rl2hflok7</TargetRef>
          <SourceRef>IMEI:356491063445762</SourceRef>
          <Data>200</Data>
        </Status>
        <Atomic>
          <CmdID>2</CmdID>
          <Add>
            <CmdID>3</CmdID>
            <Item>
              <Target>
                <LocURI>./Vendor/MSFT/VPN/ffEAPtls6/Server</LocURI>
              </Target>
              <Meta>
                <Format xmlns="syncml:metinf">chr</Format>
              </Meta>
              <Data>samplevpn.com</Data>
            </Item>
          </Add>
          <Add>
            <CmdID>4</CmdID>
            <Item>
              <Target>
                <LocURI>./Vendor/MSFT/VPN/ffEAPtls6/Authentication/Method</LocURI>
              </Target>
              <Meta>
                <Format xmlns="syncml:metinf">chr</Format>
              </Meta>
              <Data>EAP</Data>
            </Item>
          </Add>
          <Add>
            <CmdID>5</CmdID>
            <Item>
              <Target>
                <LocURI>./Vendor/MSFT/VPN/ffEAPtls6/TunnelType</LocURI>
              </Target>
              <Meta>
                <Format xmlns="syncml:metinf">chr</Format>
              </Meta>
              <Data>IKEv2</Data>
            </Item>
          </Add>
          <Add>
            <CmdID>6</CmdID>
            <Item>
              <Target>
                <LocURI>./Vendor/MSFT/VPN/ffEAPtls6/Authentication/EAP</LocURI>
              </Target>
              <Meta>
                <Format xmlns="syncml:metinf">chr</Format>
              </Meta>
              <Data>&lt;EapHostConfig xmlns="http://www.Contoso.com/provisioning/EapHostConfig" xmlns:eapCommon="http://www.Contoso.com/provisioning/EapCommon" xmlns:baseEap="http://www.Contoso.com/provisioning/BaseEapMethodConfig"&gt;&lt;EapMethod&gt;&lt;eapCommon:Type&gt;13&lt;/eapCommon:Type&gt;&lt;eapCommon:AuthorId&gt;0&lt;/eapCommon:AuthorId&gt;&lt;/EapMethod&gt;&lt;Config xmlns:baseEap="http://www.Contoso.com/provisioning/BaseEapConnectionPropertiesV1" xmlns:eapTls="http://www.Contoso.com/provisioning/EapTlsConnectionPropertiesV1"&gt;&lt;baseEap:Eap&gt;&lt;baseEap:Type&gt;13&lt;/baseEap:Type&gt;&lt;eapTls:EapType&gt;&lt;eapTls:CredentialsSource&gt;&lt;eapTls:CertificateStore&gt;&lt;eapTls:SimpleCertSelection&gt;true&lt;/eapTls:SimpleCertSelection&gt;&lt;/eapTls:CertificateStore&gt;&lt;/eapTls:CredentialsSource&gt;&lt;/eapTls:EapType&gt;&lt;/baseEap:Eap&gt;&lt;/Config&gt;&lt;/EapHostConfig&gt;</Data>
            </Item>
          </Add>
        </Atomic>
        <Final/>
      </SyncBody>
    </SyncML>

    Response:

    <SyncML xmlns="SYNCML:SYNCML1.2">
      <SyncHdr>
        <VerDTD>1.2</VerDTD>
        <VerProto>DM/1.2</VerProto>
        <SessionID>25</SessionID>
        <MsgID>4</MsgID>
        <Target>
          <LocURI>https://dev.com/omadm/WindowsPhone.ashx?SID=3u7e2u90abl93njq2rl2hflok7</LocURI>
        </Target>
        <Source>
          <LocURI>IMEI:356491063445762</LocURI>
        </Source>
      </SyncHdr>
      <SyncBody>
        <Status>
          <CmdID>1</CmdID>
          <MsgRef>3</MsgRef>
          <CmdRef>0</CmdRef>
          <Cmd>SyncHdr</Cmd>
          <Data>200</Data>
        </Status>
        <Status>
          <CmdID>2</CmdID>
          <MsgRef>3</MsgRef>
          <CmdRef>2</CmdRef>
          <Cmd>Atomic</Cmd>
          <Data>507</Data>
        </Status>
        <Status>
          <CmdID>3</CmdID>
          <MsgRef>3</MsgRef>
          <CmdRef>3</CmdRef>
          <Cmd>Add</Cmd>
          <Data>500</Data>
        </Status>
        <Status>
          <CmdID>4</CmdID>
          <MsgRef>3</MsgRef>
          <CmdRef>4</CmdRef>
          <Cmd>Add</Cmd>
          <Data>216</Data>
        </Status>
        <Status>
          <CmdID>5</CmdID>
          <MsgRef>3</MsgRef>
          <CmdRef>5</CmdRef>
          <Cmd>Add</Cmd>
          <Data>216</Data>
        </Status>
        <Status>
          <CmdID>6</CmdID>
          <MsgRef>3</MsgRef>
          <CmdRef>6</CmdRef>
          <Cmd>Add</Cmd>
          <Data>216</Data>
        </Status>
        <Final/>
      </SyncBody>
    </SyncML>

    any ideas how to make it working?


    Jan Jedrzejczyk

    Thursday, May 28, 2015 10:03 AM

Answers

  • For one thing... the namespace definitions (xmlns) should start with: "http://www.microsoft.com/..."  NOT "http://www.Contoso.com/..." 

    This appears to be an error in the protocol documentation as well.  (Probably the result of some misunderstanding on the part of someone trying to standardize placeholder references in the sample XML.)


    Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast your votes for existing suggestions.

    • Marked as answer by Eric Fleck Monday, June 1, 2015 3:26 PM
    Thursday, May 28, 2015 6:06 PM

All replies

  • For one thing... the namespace definitions (xmlns) should start with: "http://www.microsoft.com/..."  NOT "http://www.Contoso.com/..." 

    This appears to be an error in the protocol documentation as well.  (Probably the result of some misunderstanding on the part of someone trying to standardize placeholder references in the sample XML.)


    Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast your votes for existing suggestions.

    • Marked as answer by Eric Fleck Monday, June 1, 2015 3:26 PM
    Thursday, May 28, 2015 6:06 PM
  • Worked perfectly.

    The latest protocol description from May 21, 2015 has it corrected.

    Thanks


    Jan Jedrzejczyk

    Friday, May 29, 2015 7:04 AM
  • Hi,

    Can you please tell t he correct examples of Namespaces, networks and App product IDs?

    Thanks,

    Charu

    Monday, October 5, 2015 6:41 AM