Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hi all

i'm calling a web service called changepass which accept string parameter

and the string must be like this

 

<new>

 

<user_new_password>User New Password</user_new_password>

 

<user_old_password>User Old Password</user_old_password>

 

<user_email> UserName@DomainName </user_email>

 

<source>M Signup</source>

 

<user_ip>10.0.0.1</user_ip>

 

</new>

 

when i pass the newpassword i pass it with this fucntion

 

Public Function GetRandomString(ByVal numberOfCharacters As Integer) As String

 

Dim r As New Random

 

Dim b(numberOfCharacters) As Byte

 

For x As Integer = 0 To numberOfCharacters - 1

 

b(x) = r.Next(97, 122)

 

Next

 

Return System.ASCIIEncoding.ASCII.GetString(b)

 

End Function

 

when i do this i always get this error when i try to call the web service

 

'', hexadecimal value 0x00, is an invalid character

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...