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
New Developer
Posts: 23
Registered: ‎07-05-2013
My Device: Z10
My Carrier: Binus

How to using KdSoap?

Hi there,

 

Can you help me how to using KdSoap to parse asmx web services in details?

 

Thanks a lot.

Victor

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

Re: How to using KdSoap?

The most difficult part was building it for bb10.

 

Here is my installation guide (build on windows):

building kdsoap (text in brackets for the first time only):

(install Qt4, msysgit, python 2)

(create directory c:\kdsoap (for example))

git pull in kdsoap source (git) directory, then git submodule update

run cmd, execute bbndk-env.bat

change into c:\kdoap (mkdir kdsoap) DO NOT EXECUTE FROM C:\ !
python C:\workspace\ndk\KDSoap\autogen.py -hostqmake C:\Qt\4.8.5\bin\qmake.exe -qmake C:\bbndk\host_10_1_0_235\win32\x86\usr\bin\qmake.exe -prefix C:\kdsoap -shared

wait quite some time until message appears (Ok, now run nmake (for Visual Studio) or mingw32-make (for mingw) to build the framework.), press enter

(copy QtCore4.dll, QtNetwork4.dll and QtXml4.dll from C:\Qt\4.8.5\bin\ to c:\kdsoap\bin)

make

make install

copy C:\kdsoap\include\KDSoapClient to the KDSoapClient directory of the workspace
copy C:\kdsoap\lib\libkdsoap.so to the lib directory of the workspace

rebuild the webservice files by executing kdwsdl2cpp.exe (copy Services.wsdl, types.xsd, messages.xsd to c:\kdsoap\bin)
kdwsdl2cpp -o ews.h Services.wsdl
kdwsdl2cpp -o ews.cpp -impl ews.h Services.wsdl

 

 

----------------------------------------------------------
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
Developer
Posts: 146
Registered: ‎05-18-2012
My Device: PlayBook & STL100-1 LE Z10 & Dev Alpha C
My Carrier: Telefonica Spain

Re: How to using KdSoap?

Hi Simon !

 

Only a question. Qt4 needs to be compiled for BB10 to build KdSoap?

 

Thanks

---------------------------------------------------------------
Leandro Cerdan - Duantox Apps
BlackBerry Elite dev
TapyHold, Built for Blackberry multimedia scrapbook
Developer
Posts: 17,011
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to using KdSoap?

i just installed qt4.8, i did not build or compiled it myself.
----------------------------------------------------------
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
Highlighted
Developer
Posts: 146
Registered: ‎05-18-2012
My Device: PlayBook & STL100-1 LE Z10 & Dev Alpha C
My Carrier: Telefonica Spain

Re: How to using KdSoap?

Ok. Thanks very much Simon Smiley Very Happy
---------------------------------------------------------------
Leandro Cerdan - Duantox Apps
BlackBerry Elite dev
TapyHold, Built for Blackberry multimedia scrapbook