Hi all,
I'm using a web service that get a string as aparameter. how maximum length string can the web service get.
Can I send it a 15K length string.
Is there an option to send it a bytes array [] parameters instead of string.
Please help.
Best regards...

Web service data length
ThePerfessor
of course you can send any datatype to the webservice, assuming the method supports it.
the way to look at it is a webservice is just as if a normal application in C#/VB.NET. Methods etc... would be the same as if doing it on a normal C#/VB.NET file
so if you want to send data in byte array, webservice method:
public void SomeWebMethod(byte[] someParam)
{
string theParamInString = System.Text.Encoding.ASCII.GetString(someParam);
}
on your client:
someWebService.SomeWebMethod(System.Text.Encoding.ASCII.GetBytes("hi how are you ");
your client is calling the webmethod, giving it the appropriate parameter type, in this case, bytes.
Dan Freeman
In addition to ahmedilyas's answer:
If you're thinking of passing considerable long strings into your web service you should be aware of the fact that default request size is equal to 4Mb.
To increase the maximum size of the request - modify maxRequestLength attribute of <httpRuntime> element in web.config file.