Menu

how to rename friendlyName

Help
yl yl
2011-02-15
2013-04-29
  • yl yl

    yl yl - 2011-02-15

    hi,all,
    Im using renameFriend(Email email, String friendlyName) to change the friend's name,and when the friendlyName is chinese,there is an error occur.
    the xml is :
    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <soap:Header>
    <ABApplicationHeader xmlns="http://www.msn.com/webservices/AddressBook">
    <ApplicationId>996CDE1E-AA53-4477-B943-2BE802EA6166</ApplicationId>
    <IsMigration>false</IsMigration>
    <PartnerScenario>Timer</PartnerScenario>
    </ABApplicationHeader>
    <ABAuthHeader xmlns="http://www.msn.com/webservices/AddressBook">
    <ManagedGroupRequest>false</ManagedGroupRequest>
    <TicketToken>t=EwDYAcBdAAAURnMnP0xNtZi9ugdf902M4Br/7wKAANQo7uoJZVo9S++ZQ9OcYgc1RAHSwyOTVN3U6VwmMse/ZWqEgvWz4kJBT00tBgZ0uWim36j87ASq3rIj5WMHcEPjawHS3UsTuY4h46JwAoax6dP/w8/fIItyPDktz7YJCOTF0VNF/EoKD6xcA4iTF9vQva2nKHrN1yFghwF2WrgcA2YAAAg6jHPTACgB3CgB/2gPXOFO29wI8osXJ1HP1x1YP5FHjKo/OqLMZpOuZ8n/nIF7+hmrr1ruCDZqMeNMx9ZUwFehkpAvwxCfimHJsohoTAoTF/7G3v5mpHgYdOpA93p4us/ZYmzJp2ts+xLlvichRJxyTrNgojcTGvW9Zu0ueFp9hYr24BZ65hKtXYRRRiHYIeiLQFOZ322pNSfmCFr5bHp8knLETVLu8nKyh9jL1FIt0rmwBG4GrjpGEItDuJtt1eLJFLx6pmEJ0uPdRgOYAnvLHLQZzcOnUIIdOhM+IIaMoq9EzdbMHg57JjXWTA0zlHzAGXjQKZvEmLntDO7hCbCGcwc5giCupg35L1HjT+o+DiGVQXyMl/ILLH7SksKVRToH2XXuCWi4ietwq96YU1GiHexPAQ==&amp;p=</TicketToken>
    </ABAuthHeader>
    </soap:Header>
    <soap:Body>
        <ABContactUpdate xmlns="http://www.msn.com/webservices/AddressBook">        <abId>00000000-0000-0000-0000-000000000000</abId>        <contacts>           <Contact xmlns="http://www.msn.com/webservices/AddressBook">               <contactId>0830f6f4-a009-4d80-a50c-66b2ddc6334a</contactId>               <contactInfo>                   <displayName>中文</displayName>               </contactInfo>               <propertiesChanged>DisplayName</propertiesChanged>           </Contact>        </contacts>    </ABContactUpdate></soap:Body>
    </soap:Envelope>

    Thanks

     
  • yl yl

    yl yl - 2011-02-15

    2011-2-15 13:28:09 net.sf.jml.protocol.soap.ContactList sendRequest
    严重: something wrong!
    java.lang.Exception
    at net.sf.jml.protocol.soap.ContactList.sendRequest(ContactList.java:276)
    at net.sf.jml.protocol.soap.ContactList.sendRequest(ContactList.java:160)
    at net.sf.jml.protocol.soap.ContactList.updateFriend(ContactList.java:1397)
    at net.sf.jml.impl.SimpleMessenger.renameFriend(SimpleMessenger.java:339)
    at jml.LoginAction.changeFriendlyName(LoginAction.java:230)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.