webservice error

Tamer_Ahmed

Centurion
Joined
Dec 20, 2003
Messages
159
Location
Egypt
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
 
Back
Top