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

Native Development

Reply
Contributor
Posts: 11
Registered: ‎12-18-2012
My Device: 9900
My Carrier: Airtel

How to call SOAP Webservice with security header in blackberry 10

I am new to BB 10 Cascade. I need to call SOAP webservice with security header. How to use qtsoap ?

Thanks in advance.

Developer
Posts: 163
Registered: ‎04-28-2012
My Device: BlackBerry 9800
My Carrier: BlackBerry

Re: How to call SOAP Webservice with security header in blackberry 10

[ Edited ]

Hi,

 

    Please go through this link, you can understand how to use QTSOAP.

http://qt.gitorious.org/qt-solutions/qt-solutions/trees/534707f5288181af50a5f560a0a26601fdd01531/qts....

And use QtSoapStruct to add a secure soap header to the request.

    request.addHeaderItem(QtSoapStruct);

Where request is a QtSoapMessage.

 

 

Regards,

Naresh

Developer
Posts: 17,019
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to call SOAP Webservice with security header in blackberry 10

in qtsoap you have direct access to the network request.
you can add headers there.
or, if it is a soap header, use addHeaderItem of QtSoapMessage.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter