回答済み Smart Reply giving Error 103

  • 2012年7月18日 4:34
     
     

    Hi,

    I am able to successfully send email using SendMail command.

    Following is the xml i am sending.

    String xml="<?xml version=\"1.0\" encoding=\"utf-8\"?>"
                    +"<SendMail xmlns=\"ComposeMail:\">"
                        +"<ClientId>my_id1234565</ClientId>"
                        +"<SaveInSentItems />"
                          +"<MIME>"
                                  +"From: &lt;xxx@mycompany.com&gt;"+CRLF
                                +"To: &lt;yyy@mycompany.com;"+CRLF
                                +"Subject:custom subject"+CRLF
                                +"MIME-Version: 1.0"+CRLF
                                +"Content-type: text/plain;"+"charset=\"iso-8859-1\""+CRLF
                                +"Content-Transfer-Encoding: 7 bit"+CRLF
                                +"X-MimeOLE: Produced By Microsoft"+CRLF
                                +"MimeOLE V6.00.2900.3350"+CRLF+CRLF
                                +"my body"+CRLF
                         +"</MIME>"
                     +"</SendMail>";

    The above xml works perfectly fine.

    However when i am trying to use the SmartReply command i receive the 103 error (The XML provided in the request does not follow the protocol requirements.)

    Following is my SmartReply xml

    String xml="<?xml version=\"1.0\" encoding=\"utf-8\"?>"
                    +"<SmartReply xmlns=\"ComposeMail:\">"
                        +"<ClientId>my_new_id_1345</ClientId>"
                        +"<Source>"
                        +"<FolderId>6</FolderId>"
                        +"<ItemId>6:1</ItemId>"
                        +"</Source>"
                        +"<MIME>"
                        +"From: &lt;xxx@mycompany.com&gt;"+CRLF
                        +"To: &lt;yyy@mycompany.com&gt;"+CRLF
                        +"Subject:custom subject"+CRLF
                        +"MIME-Version: 1.0"+CRLF
                        +"Content-type: text/plain;"+"charset=\"iso-8859-1\""+CRLF
                        +"Content-Transfer-Encoding: 7 bit"+CRLF
                        +"X-MimeOLE: Produced By Microsoft"+CRLF
                        +"MimeOLE V6.00.2900.3350"+CRLF+CRLF
                        +"my body"+CRLF
                        +"</MIME>"
                     +"</SmartReply>";

    The only difference between the 2 XML's is that i have replaced the SendMail with SmartReply and added a <Source> element. I have made sure that the item 6:1 is present by sync command.

    Also i am changing the client ID's for each communication.

    I have also tried to include the CDATA section for MIME element but that is also not working.

    All the communication is happening as per WBXML standard.

    Please let me know if there is anything which i am missing in the SmartReply xml.

    Thanks & Regards,

    Pankaj

すべての返信

  • 2012年7月18日 12:57
    モデレータ
     
     

    Hi Pankaj,

    Thank you for your question.  A colleague will follow up with you to investigate this issue.

    Regards,
    Mark Miller
    Open Protocols Team

  • 2012年7月19日 18:21
    モデレータ
     
     

    Hi Pankaj,

    I am the engineer who will be working with you on this issue. I am currently researching the problem and will provide you with an update soon.

    Regards,
    Vilmos Foltenyi - MSFT

  • 2012年7月23日 15:28
     
     

    Hi Vilmos,

    Please let me know if you need any further information to resolve the issue.

    I have tried at my end some other options too..but couldn't solve the problem.

    Thanks in advance.

    Best Regards,

    Pankaj

  • 2012年7月30日 18:21
    モデレータ
     
     

    Hi Pankaj,

    Please provide more information about what happened before the failure. What is the topology of your setup, including versions?

    I would like to see what happened before the failure, could you provide an unencrypted network capture starting from the TCP/IP connection establishment? Have you tried to get a Fiddler capture? Be sure that the capture doesn’t contain any confidential information. If the size of the capture is less than 5MB you can send it as attachment to ‘dochelp (at) microsoft (dot) com’. If the size is bigger than 5MB I can create a secure workspace for you to upload the trace. In either case in the e-mail indicate that it is for me.

    Thanks, Vilmos

  • 2012年9月1日 20:07
    モデレータ
     
     

    From the offline emails perhaps one thing might be interested for a wider audience. Pankaj asked for a working SmartReply example.
    Using a Windows 7.5 smart phone I made a capture, what can be seen below.

    Thanks, Vilmos

    The WBXML for SmartReply is below, the dump has this structure:
    <SmartReply>
      <SaveInSentItems/>
      <ClientId>”oid{7372:f}”</ClientId>
      <Source>
        <FolderId>”5”</FolderId>
        <ItemId>”5:2”</ItemId>
      </Source>
      <Mime>
        1347 bytes
      </Mime>
    </SmartReply>

    (the email addresses are x-ed out)

                                     03 01 6a 00 00               ..j..
    15 47 08 51 03 6f 69 64 7b 37 33 37 32 3a 66 7d    .G.Q.oid{7372:f}
    00 01 4b 4c 03 35 00 01 4d 03 35 3a 32 00 01 01    ..KL.5..M.5:2...
    50 c3 8a 43 4d 49 4d 45 2d 56 65 72 73 69 6f 6e    P..CMIME-Version
    3a 20 31 2e 30 0d 0a 63 6f 6e 74 65 6e 74 2d 63    : 1.0..content-c
    6c 61 73 73 3a 20 75 72 6e 3a 63 6f 6e 74 65 6e    lass: urn:conten
    74 2d 63 6c 61 73 73 65 73 3a 6d 65 73 73 61 67    t-classes:messag
    65 0d 0a 46 72 6f 6d 3a 20 3c 66 72 65 64 40 xx    e..From: <fred@x
    xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx    xxxxxxxxxxxxxxxx
    xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx    xxxxxxxxxxxxxxxx
    xx 3e 0d 0a 53 75 62 6a 65 63 74 3a 20 52 45 3a    x>..Subject: RE:
    20 74 65 73 74 20 38 2f 32 32 20 32 31 3a 35 32     test 8/22 21:52
    0d 0a 44 61 74 65 3a 20 57 65 64 2c 20 32 32 20    ..Date: Wed, 22
    41 75 67 20 32 30 31 32 20 32 31 3a 35 36 3a 34    Aug 2012 21:56:4
    34 20 2d 30 37 30 30 0d 0a 54 6f 3a 20 6a 69 6d    4 -0700..To: jim
    6d 79 20 3c 6a 69 6d 6d 79 40 xx xx xx xx xx xx    my <jimmy@xxxxxx
    xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx    xxxxxxxxxxxxxxxx
    xx xx xx xx xx xx xx xx xx xx xx xx 3e 0d 0a 43    xxxxxxxxxxxx>..C
    6f 6e 74 65 6e 74 2d 54 72 61 6e 73 66 65 72 2d    ontent-Transfer-
    45 6e 63 6f 64 69 6e 67 3a 20 71 75 6f 74 65 64    Encoding: quoted
    2d 70 72 69 6e 74 61 62 6c 65 0d 0a 43 6f 6e 74    -printable..Cont
    65 6e 74 2d 54 79 70 65 3a 20 74 65 78 74 2f 68    ent-Type: text/h
    74 6d 6c 3b 20 63 68 61 72 73 65 74 3d 22 75 74    tml; charset="ut
    66 2d 38 22 0d 0a 0d 0a 3c 68 74 6d 6c 3e 3c 68    f-8"....<html><h
    65 61 64 3e 3c 6d 65 74 61 20 63 6f 6e 74 65 6e    ead><meta conten
    74 3d 33 44 22 74 65 78 74 2f 68 74 6d 6c 3b 20    t=3D"text/html;
    63 68 61 72 73 65 74 3d 33 44 75 74 66 2d 38 22    charset=3Dutf-8"
    20 68 74 74 70 2d 65 71 75 69 76 3d 33 44 22 43     http-equiv=3D"C
    6f 6e 74 3d 0d 0a 65 6e 74 2d 54 79 70 65 22 3e    ont=..ent-Type">
    3c 2f 68 65 61 64 3e 3c 62 6f 64 79 3e 3c 64 69    </head><body><di
    76 3e 3c 64 69 76 20 73 74 79 6c 65 3d 33 44 22    v><div style=3D"
    66 6f 6e 74 2d 66 61 6d 69 6c 79 3a 20 43 61 6c    font-family: Cal
    69 62 72 69 2c 73 61 6e 73 2d 73 65 72 69 66 3b    ibri,sans-serif;
    20 3d 0d 0a 66 6f 6e 74 2d 73 69 7a 65 3a 20 31     =..font-size: 1
    31 70 74 3b 22 3e 52 65 70 6c 79 3c 62 72 3e 3c    1pt;">Reply<br><
    62 72 3e 3c 62 72 3e 53 65 6e 74 20 66 72 6f 6d    br><br>Sent from
    20 6d 79 20 57 69 6e 64 6f 77 73 20 50 68 6f 6e     my Windows Phon
    65 3c 62 72 3e 3c 2f 64 69 76 3e 3c 2f 64 69 3d    e<br></div></di=
    0d 0a 76 3e 3c 68 72 3e 3c 73 70 61 6e 20 73 74    ..v><hr><span st
    79 6c 65 3d 33 44 22 66 6f 6e 74 2d 66 61 6d 69    yle=3D"font-fami
    6c 79 3a 20 54 61 68 6f 6d 61 2c 73 61 6e 73 2d    ly: Tahoma,sans-
    73 65 72 69 66 3b 20 66 6f 6e 74 2d 73 69 7a 65    serif; font-size
    3a 20 31 30 70 74 3b 20 66 6f 6e 74 2d 3d 0d 0a    : 10pt; font-=..
    77 65 69 67 68 74 3a 20 62 6f 6c 64 3b 22 3e 46    weight: bold;">F
    72 6f 6d 3a 20 3c 2f 73 70 61 6e 3e 3c 73 70 61    rom: </span><spa
    6e 20 73 74 79 6c 65 3d 33 44 22 66 6f 6e 74 2d    n style=3D"font-
    66 61 6d 69 6c 79 3a 20 54 61 68 6f 6d 61 2c 73    family: Tahoma,s
    61 6e 73 2d 73 65 72 69 66 3b 20 3d 0d 0a 66 6f    ans-serif; =..fo
    6e 74 2d 73 69 7a 65 3a 20 31 30 70 74 3b 22 3e    nt-size: 10pt;">
    6a 69 6d 6d 79 3c 2f 73 70 61 6e 3e 3c 62 72 3e    jimmy</span><br>
    3c 73 70 61 6e 20 73 74 79 6c 65 3d 33 44 22 66    <span style=3D"f
    6f 6e 74 2d 66 61 6d 69 6c 79 3a 20 54 61 68 6f    ont-family: Taho
    6d 61 2c 73 61 6e 73 2d 73 3d 0d 0a 65 72 69 66    ma,sans-s=..erif
    3b 20 66 6f 6e 74 2d 73 69 7a 65 3a 20 31 30 70    ; font-size: 10p
    74 3b 20 66 6f 6e 74 2d 77 65 69 67 68 74 3a 20    t; font-weight:
    62 6f 6c 64 3b 22 3e 53 65 6e 74 3a 20 3c 2f 73    bold;">Sent: </s
    70 61 6e 3e 3c 73 70 61 6e 20 73 74 79 6c 65 3d    pan><span style=
    33 44 22 66 6f 6e 74 3d 0d 0a 2d 66 61 6d 69 6c    3D"font=..-famil
    79 3a 20 54 61 68 6f 6d 61 2c 73 61 6e 73 2d 73    y: Tahoma,sans-s
    65 72 69 66 3b 20 66 6f 6e 74 2d 73 69 7a 65 3a    erif; font-size:
    20 31 30 70 74 3b 22 3e 38 2f 32 32 2f 32 30 31     10pt;">8/22/201
    32 20 32 31 3a 35 35 3c 2f 73 70 61 6e 3e 3c 62    2 21:55</span><b
    72 3e 3c 73 70 3d 0d 0a 61 6e 20 73 74 79 6c 65    r><sp=..an style
    3d 33 44 22 66 6f 6e 74 2d 66 61 6d 69 6c 79 3a    =3D"font-family:
    20 54 61 68 6f 6d 61 2c 73 61 6e 73 2d 73 65 72     Tahoma,sans-ser
    69 66 3b 20 66 6f 6e 74 2d 73 69 7a 65 3a 20 31    if; font-size: 1
    30 70 74 3b 20 66 6f 6e 74 2d 77 65 69 67 68 74    0pt; font-weight
    3a 20 62 3d 0d 0a 6f 6c 64 3b 22 3e 54 6f 3a 20    : b=..old;">To:
    3c 2f 73 70 61 6e 3e 3c 73 70 61 6e 20 73 74 79    </span><span sty
    6c 65 3d 33 44 22 66 6f 6e 74 2d 66 61 6d 69 6c    le=3D"font-famil
    79 3a 20 54 61 68 6f 6d 61 2c 73 61 6e 73 2d 73    y: Tahoma,sans-s
    65 72 69 66 3b 20 66 6f 6e 74 2d 73 69 7a 65 3a    erif; font-size:
    20 3d 0d 0a 31 30 70 74 3b 22 3e 66 72 65 64 3c     =..10pt;">fred<
    2f 73 70 61 6e 3e 3c 62 72 3e 3c 73 70 61 6e 20    /span><br><span
    73 74 79 6c 65 3d 33 44 22 66 6f 6e 74 2d 66 61    style=3D"font-fa
    6d 69 6c 79 3a 20 54 61 68 6f 6d 61 2c 73 61 6e    mily: Tahoma,san
    73 2d 73 65 72 69 66 3b 20 66 6f 6e 74 2d 73 3d    s-serif; font-s=
    0d 0a 69 7a 65 3a 20 31 30 70 74 3b 20 66 6f 6e    ..ize: 10pt; fon
    74 2d 77 65 69 67 68 74 3a 20 62 6f 6c 64 3b 22    t-weight: bold;"
    3e 53 75 62 6a 65 63 74 3a 20 3c 2f 73 70 61 6e    >Subject: </span
    3e 3c 73 70 61 6e 20 73 74 79 6c 65 3d 33 44 22    ><span style=3D"
    66 6f 6e 74 2d 66 61 6d 69 6c 79 3a 20 3d 0d 0a    font-family: =..
    54 61 68 6f 6d 61 2c 73 61 6e 73 2d 73 65 72 69    Tahoma,sans-seri
    66 3b 20 66 6f 6e 74 2d 73 69 7a 65 3a 20 31 30    f; font-size: 10
    70 74 3b 22 3e 74 65 73 74 20 38 2f 32 32 20 32    pt;">test 8/22 2
    31 3a 35 32 3c 2f 73 70 61 6e 3e 3c 62 72 3e 3c    1:52</span><br><
    62 72 3e 3c 2f 62 6f 64 79 3e 3c 3d 0d 0a 2f 68    br></body><=../h
    74 6d 6c 3e 3d 0d 0a 01 01                         tml>=....

  • 2012年9月6日 16:56
    モデレータ
     
     回答済み
    The offline correspondence ended when the error was found, quote from Pankaj’s email:
    “The SmartReply is working now. There was an issue in the command url which was being passed on to the server.
    The command name was different. I changed it to SmartReply and it worked fine.”
    Vilmos