Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

...

Description

This method is used to edit a professional's user profile. The Finnit Server credentials should be given with all the mandatory fields. If user doesn't  Exceptions are thrown if the input values for all mandatory fields error messages will be given. If user didn't input values for optional fields, those fields will be updated in database with null values. After edit user  this method will return a boolean value to indicate edit is success or notare not filled with valid data. If optional field inputs are not provided, the database updates these fields with null values. A Boolean value output indicates whether the edit is successful.


Notes

  • This web method is only accessed by The the Finnit Server
  • The Preference could should be either be Mobile or Email. If any strings other than these two are given the default value "Mobile" would be is set.
  • Supported image types jpg ,png, gif, jpeg, bmp
  • The maximum image site size supported is 2MB.
  • please make sure Ensure the base64 encoded string is a valid image file.
  • Supported image types are jpg ,png, gif, jpeg, bmp


Request

Parameter

Type

Mandatory/OptionalComments

Maximum character length/limit

Description

input

EditUserProfileInput

Mandatory

Not relevant

Model containing the with details of the user which is getting being edited

applicationNamestringMandatoryThird party application identifier, identifying the client consuming the web service – (Length of the applicationName should Should be less than or equal to 10 )

 

charactersThe name of the integration partner

 

Request - sample input

<EditUserProfile>
  <MethodParameters>
    <UserAuthentication>
      <UserName>username</UserName>
      <Password>password</Password>
      <AnyAttr attr0="XmlAttributeArray" isNull="false">
        <XmlAttributeArray0>System.Xml.XmlAttribute</XmlAttributeArray0>
      </AnyAttr>
    </UserAuthentication>
    <input>
      <BoligmappaUserName>charlizeT</BoligmappaUserName>
      <ProfileImage>
        <Url>http://imgsv.imaging.nikon.com/lineup/lens/zoom/normalzoom/af-s_dx_18-300mmf_35-56g_ed_vr/img/sample/sample4_l.jpg</Url>
        <Data isNull="false" />
      </ProfileImage>
      <ProfileDescription>Test profile</ProfileDescription>
      <FirstName>Charlize</FirstName>
      <LastName>Theron</LastName>
      <TelephoneNumber>+4740485956</TelephoneNumber>
      <Email>sandrinaa@99x.lk</Email>
      <PreferredCommunication>Mobile</PreferredCommunication>
    </input>
    <applicationName>test</applicationName>
  </MethodParameters>
</EditUserProfile>

Response

Type

Description

EditUserProfileOutput

The Boolean value to indicate is edit successfulindicates whether the edit is successful


Response - sample output

<EditUserProfile>
  <MethodParameters>
    <EditUserProfileOutput>
      <IsEditSuccessfull>True</IsEditSuccessfull>
    </EditUserProfileOutput>
  </MethodParameters>
</EditUserProfile>


Exceptions

Error Code

Description

113

One or more mandatory fields have not been supplied as input

123

An exception occurred while processing your request

167

You are not authorized to use this web method

260Contact The contact Email Address address is not valid
363Telephone Number Not validTelephoneNumber is invalid
366The Given given UserName is does not existingexist
367Maximum length of FirstName/LastName length has exceeded the maximum character limit allowed (50) 
368Maximum length of UserName exceeded UserName length has exceeded the maximum character limit allowed (50) 
369Maximum Email length of Email exceeded has exceeded the maximum character limit allowed (50) 
370Maximum length of Profile Description exceeded Specializations length has exceeded the maximum character limit allowed (250) 
372Invalid Profile Image ProfileImage input is invalid
373

Maximum length of Profile Description exceeded ProfileDescription length has exceeded the maximum character limit allowed (250)

374The given URL Url is not a valid image file type
375The Given Image given image is more than 2MB in size
376The Given given Base64 String string is not validinvalid