Tamer_Ahmed Posted September 19, 2004 Posted September 19, 2004 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 Quote
Administrators PlausiblyDamp Posted September 19, 2004 Administrators Posted September 19, 2004 Could you show the code for the actual WebMethod? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Tamer_Ahmed Posted September 20, 2004 Author Posted September 20, 2004 unfortunately i'm not the owner of the web services i only have the parameters Quote
Administrators PlausiblyDamp Posted September 20, 2004 Administrators Posted September 20, 2004 Do you have access to the .wsdl file of the web service? Could you post the code where you are calling the service? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.