Invoking webservice

  • Thread starter Thread starter 2G
  • Start date Start date
2

2G

Hi,

I'm new to webservices and I was wondering when you are able to invoke a
webservice in your browser.
When I return a string in a webservice , then i can invoke it but when I
return a ArrayList that I build from data out of my sqlserver, I can't
invoke it.I think it has something do to with serialization but don't
actually kow how to do this.
Could anyone explain this a little bit to me , so good tutorials are more
then welcome.

thanks in advance.
 
Hi 2G,

Webservices are only able to be invoked if they can be serialised into a string component, such examples include a base64 image, string, XML document etc. If you have a collection of objects this will not probably appear, such as an ArrayList.

The best bet is to create a test page to invoke and display the output as you need

Cheers
Jonathan Rucker

----- 2G wrote: ----

Hi

I'm new to webservices and I was wondering when you are able to invoke
webservice in your browser
When I return a string in a webservice , then i can invoke it but when
return a ArrayList that I build from data out of my sqlserver, I can'
invoke it.I think it has something do to with serialization but don'
actually kow how to do this
Could anyone explain this a little bit to me , so good tutorials are mor
then welcome

thanks in advance
 
2G said:
Hi,

I'm new to webservices and I was wondering when you are able to invoke a
webservice in your browser.
When I return a string in a webservice , then i can invoke it but when I
return a ArrayList that I build from data out of my sqlserver, I can't
invoke it.I think it has something do to with serialization but don't
actually kow how to do this.
Could anyone explain this a little bit to me , so good tutorials are more
then welcome.

thanks in advance.


Hi,
The way I do is the hard way, i.e. convert the ArrayList to
object[]. Perhaps there is someone else can give you better idea.

HTH
 
Back
Top