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 | Mandatory | Not relevant | Model containing the with details of the user which is getting being edited | |
applicationName | string | Mandatory | Third party application identifier, identifying the client consuming the web service – (Length of the applicationName should Should be less than or equal to 10 ) |
characters | The 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 |
---|---|
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 |
260 | Contact The contact Email Address address is not valid |
363Telephone Number Not valid | TelephoneNumber is invalid |
366 | The Given given UserName is does not existingexist |
367 | Maximum length of FirstName/LastName length has exceeded the maximum character limit allowed (50) |
368 | Maximum length of UserName exceeded UserName length has exceeded the maximum character limit allowed (50) |
369 | Maximum Email length of Email exceeded has exceeded the maximum character limit allowed (50) |
370 | Maximum length of Profile Description exceeded Specializations length has exceeded the maximum character limit allowed (250) |
372 | Invalid Profile Image ProfileImage input is invalid |
373 | Maximum length of Profile Description exceeded ProfileDescription length has exceeded the maximum character limit allowed (250) |
374 | The given URL Url is not a valid image file type |
375 | The Given Image given image is more than 2MB in size |
376 | The Given given Base64 String string is not validinvalid |