Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
Posts: 40
Registered: ‎04-27-2010
My Device: BOLD
My Carrier: INFORMATICO

pass parameters in WebService

Hi,

 

I need to pass a string parameter to my webservice but don't goes with this code. Is the code correct?

 

             var url = "...";

             xmlHttp.open('GET', url, true);
             xmlHttp.onreadystatechange = callbackFunction;
             xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
             xmlHttp.send('00060000963');

 

thanks,

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: pass parameters in WebService

Hi racsus,

 

There are a bunch of posts in the forum showing how to pass parameters to a web service.

 

An example can be found here.

http://supportforums.blackberry.com/t5/Web-Development/web-service-parameter/m-p/421999

 

I would encourage you to do a board search to find others that are similar.

 

Cheers

 

 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter