argument of webservice

M

Mr. x

Hello,
I have tried to pass a string parameter to webservice like this :

On client side (javascript) :
var iCallID ;
....
var s
s = "<abc></ab";
iCallD = service.myfuncs.callService("myfunc1", s);

and on the server side (web-service - VB) :

<WebMethod()> Public Function myfunc1(my_str as string) as Integer
return(0)
end function


What I get by sending the specific string : "<abc></ab", is the following
error :

System.Web.Services.Protocols.SoapException : Server was unable to read
request

System.InvalidOperationException : There is an error in Xml document. the
abc start tag doesn't match the end tag of ab ...

I just want to pass a string, without any check.

1) What are the pros that Web-service check the validity of a parameter
string ? - Can this check be ignored by web-service, and just pass the
string as is ?
2) For String parameter - is there any limit to size of the string.
3) Can I pass Hebrew xml as a string ?
4) question 3 is like this : Can I pass xml string with header ? i.e : <?xml
version = "1.0" encoding = "windows-1255" ?> ? ...

Thanks :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top