Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

hi all

i want to make a SOAP CLIENT using my BREW SDK tool . Can somebody tell me whether its possible and how?

thanx
rajat

hi all i wanted to know which version of brew has this interface IXMLSAXReader
. can it be used to build a SOAP client application.
thanx
rajat_gupta

hi all i wanted to know which version of brew has this interface IXMLSAXReader
. can it be used to build a SOAP client application.
thanx
rajat_gupta

By default BREW does not have any SOAP library support, unless you create on your own.

By default BREW does not have any SOAP library support, unless you create on your own.

hi there
i want to build a SOAP client applicatiion. Will it be possible to just add the libraries of brew as ia MFC application in vc++.:confused:
can i add SOAP lib directly to my brew project
thanx
rajat :rolleyes:

hi there
i want to build a SOAP client applicatiion. Will it be possible to just add the libraries of brew as ia MFC application in vc++.:confused:
can i add SOAP lib directly to my brew project
thanx
rajat :rolleyes:

There are couple of basic points, which you need to be aware of,
- MFC is very windows specific. In order for you to run MFC application or application which uses MFC support you need to have MFC run time dll in your target system. BREW does not have MFC runtime support.
- Are you planning to port/implement SOAP library to BREW? Implementation of SOAP library is fairly big project by itself.
What are you trying to achieve?

There are couple of basic points, which you need to be aware of,
- MFC is very windows specific. In order for you to run MFC application or application which uses MFC support you need to have MFC run time dll in your target system. BREW does not have MFC runtime support.
- Are you planning to port/implement SOAP library to BREW? Implementation of SOAP library is fairly big project by itself.
What are you trying to achieve?

hi there
thanx for your response.
i want to port Soap libraries provided with MS toolkit directly into my brew project as i do with other non-brew applications. and then build my application same as i do in other programs.
will it be useful? what's wrong with this approach
thanx
rajat

hi there
thanx for your response.
i want to port Soap libraries provided with MS toolkit directly into my brew project as i do with other non-brew applications. and then build my application same as i do in other programs.
will it be useful? what's wrong with this approach
thanx
rajat

There is nothing wrong with that approach.
While porting SOAP lib You have make sure that SOAP lib is not doing something assuming that the system is like windows. There should not be reference to any windows header files. While doing development in emulator if you follow BREW programming guidelines you will save lots of time when you compile using ARM compiler.
Then there is size consideration. How big is the SOAP lib?

There is nothing wrong with that approach.
While porting SOAP lib You have make sure that SOAP lib is not doing something assuming that the system is like windows. There should not be reference to any windows header files. While doing development in emulator if you follow BREW programming guidelines you will save lots of time when you compile using ARM compiler.
Then there is size consideration. How big is the SOAP lib?

hi ruben
thanx for giving me the releiving answer. i am starting with the programming.
the size of SOAP libraries are
mssoap30.h : 347 kb
mssoap30 : 75 kb
will it make my app too bulky
thanx
rajat

hi ruben
thanx for giving me the releiving answer. i am starting with the programming.
the size of SOAP libraries are
mssoap30.h : 347 kb
mssoap30 : 75 kb
will it make my app too bulky
thanx
rajat

It's not going to work for the simple reason that the MS lib is compiled for x86 processors and Brew phones use an ARM processor.

It's not going to work for the simple reason that the MS lib is compiled for x86 processors and Brew phones use an ARM processor.

the size of your source (or header) files doesn't matter at all
the size of the compiled code, the space it will consume at the user handset is what matters
I assume that the soap lib win implementation is quite big
your own may not be, since you can just code the part you are going to use instead of the entire soap definition

the size of your source (or header) files doesn't matter at all
the size of the compiled code, the space it will consume at the user handset is what matters
I assume that the soap lib win implementation is quite big
your own may not be, since you can just code the part you are going to use instead of the entire soap definition

hey frenz
its a bit difficult. but i want to implement a client on brew to access web services like WSDL. i want to use SOAP as the protocol. are there any other posibilities.please somebody give me some code depicting client implementation.
thanx :(
rajat

hey frenz
its a bit difficult. but i want to implement a client on brew to access web services like WSDL. i want to use SOAP as the protocol. are there any other posibilities.please somebody give me some code depicting client implementation.
thanx :(
rajat

Recc. "Understanding SOAP" by Scribner & Silver

Recc. "Understanding SOAP" by Scribner & Silver

hi thanx for your "coded reply" . but neither i have acess to this book right now nor i could really understand if it has some relavence to my question.
i searched over the net and all i found was a PPT material. which i already knew. ;)
can you tell in detail what topic in this book you want will be of some interest to me
thanx
rajat

hi thanx for your "coded reply" . but neither i have acess to this book right now nor i could really understand if it has some relavence to my question.
i searched over the net and all i found was a PPT material. which i already knew. ;)
can you tell in detail what topic in this book you want will be of some interest to me
thanx
rajat

Since you want to port SOAP lib to BREW and implement a BREW client, this book will give you basic understanding. Check Amazon.com for preview/review
http://www.amazon.com/exec/obidos/tg/detail/-/0672319225/104-3568820-305...

Since you want to port SOAP lib to BREW and implement a BREW client, this book will give you basic understanding. Check Amazon.com for preview/review
http://www.amazon.com/exec/obidos/tg/detail/-/0672319225/104-3568820-305...

hi everyone
thanx for all of your constant support. ia m finding this site very useful.
on ruben's advice i tried to mix SOAP in brew. for it i downloaded SOAP Client 3.6
of SQLData Systems and then i added theit SoapClientApi.h file in a simple Helloworld app.
i didn't change anything else and it gave a very peculier error in compilation it was:
fatal error C1189: #error : "eh.h is only for C++!"
I searched for solution and somebody told to change the file extension from Helloworld.c to Helloworld.cpp. I did it and this problem was removed but the compilation produced following 102 errors:
--------------------Configuration: helloworld - Win32 Debug--------------------
Compiling...
helloworld.cpp
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(14) : error C2065: 'TCHAR' : undeclared identifier
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(24) : error C2146: syntax error : missing ';' before identifier 'ExecuteMethod'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(24) : error C2433: 'HRESULT' : 'virtual' not permitted on data declarations
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(24) : error C2501: 'HRESULT' : missing storage-class or type specifiers
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(24) : error C2143: syntax error : missing ',' before '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(24) : error C2059: syntax error : '*'
.
.
.
.
.
C2501: 'HRESULT' : missing storage-class or type specifiers
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(26) : error C2143: syntax error : missing ',' before '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(26) : error C2059: syntax error : '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(26) : error C2535: 'int __thiscall SoapAgent::ExecuteMethod(const int)' : member function already defined or declared
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(24) : see declaration of 'ExecuteMethod'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(26) : error C2253: 'ExecuteMethod' : pure specifier only applies to virtual function - specifier ignored
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(28) : error C2146: syntax error : missing ';' before identifier 'ExecuteMethod'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(28) : error C2433: 'HRESULT' : 'virtual' not permitted on data declarations
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(28) : error C2501: 'HRESULT' : missing storage-class or type specifiers
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(28) : error C2143: syntax error : missing ',' before '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(28) : error C2059: syntax error : '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(28) : error C2535: 'int __thiscall SoapAgent::ExecuteMethod(const int)' : member function already defined or declared
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(24) : see declaration of 'ExecuteMethod'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(28) : error C2253: 'ExecuteMethod' : pure specifier only applies to virtual function - specifier ignored
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(29) : error C2143: syntax error : missing ',' before '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(29) : error C2059: syntax error : '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(31) : error C2143: syntax error : missing ',' before '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(31) : error C2059: syntax error : '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(64) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.
helloworld.obj - 102 error(s), 0 warning(s)
what could be the reason
thanx
rajat

hi everyone
thanx for all of your constant support. ia m finding this site very useful.
on ruben's advice i tried to mix SOAP in brew. for it i downloaded SOAP Client 3.6
of SQLData Systems and then i added theit SoapClientApi.h file in a simple Helloworld app.
i didn't change anything else and it gave a very peculier error in compilation it was:
fatal error C1189: #error : "eh.h is only for C++!"
I searched for solution and somebody told to change the file extension from Helloworld.c to Helloworld.cpp. I did it and this problem was removed but the compilation produced following 102 errors:
--------------------Configuration: helloworld - Win32 Debug--------------------
Compiling...
helloworld.cpp
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(14) : error C2065: 'TCHAR' : undeclared identifier
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(24) : error C2146: syntax error : missing ';' before identifier 'ExecuteMethod'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(24) : error C2433: 'HRESULT' : 'virtual' not permitted on data declarations
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(24) : error C2501: 'HRESULT' : missing storage-class or type specifiers
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(24) : error C2143: syntax error : missing ',' before '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(24) : error C2059: syntax error : '*'
.
.
.
.
.
C2501: 'HRESULT' : missing storage-class or type specifiers
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(26) : error C2143: syntax error : missing ',' before '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(26) : error C2059: syntax error : '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(26) : error C2535: 'int __thiscall SoapAgent::ExecuteMethod(const int)' : member function already defined or declared
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(24) : see declaration of 'ExecuteMethod'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(26) : error C2253: 'ExecuteMethod' : pure specifier only applies to virtual function - specifier ignored
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(28) : error C2146: syntax error : missing ';' before identifier 'ExecuteMethod'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(28) : error C2433: 'HRESULT' : 'virtual' not permitted on data declarations
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(28) : error C2501: 'HRESULT' : missing storage-class or type specifiers
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(28) : error C2143: syntax error : missing ',' before '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(28) : error C2059: syntax error : '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(28) : error C2535: 'int __thiscall SoapAgent::ExecuteMethod(const int)' : member function already defined or declared
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(24) : see declaration of 'ExecuteMethod'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(28) : error C2253: 'ExecuteMethod' : pure specifier only applies to virtual function - specifier ignored
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(29) : error C2143: syntax error : missing ',' before '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(29) : error C2059: syntax error : '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(31) : error C2143: syntax error : missing ',' before '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(31) : error C2059: syntax error : '*'
c:\program files\brew sdk v2.0.1\inc\soapclientapi.h(64) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.
helloworld.obj - 102 error(s), 0 warning(s)
what could be the reason
thanx
rajat

From the error message it is very evident that you are trying to compile windows code straight into BREW environment. TCHAR, HRESULT defines are windows specific.
Before you proceed further a basic crash course on porting would help you a lot.

From the error message it is very evident that you are trying to compile windows code straight into BREW environment. TCHAR, HRESULT defines are windows specific.
Before you proceed further a basic crash course on porting would help you a lot.

Hi Guys,
Is there any support in BREW for developing SOAP client for accessing web-service ? Any toolkits to generate C code from WSDL ?
Thanks,
Sudhir

Hi Guys,
Is there any support in BREW for developing SOAP client for accessing web-service ? Any toolkits to generate C code from WSDL ?
Thanks,
Sudhir

sudhirkd wrote:Hi Guys,
Is there any support in BREW for developing SOAP client for accessing web-service ? Any toolkits to generate C code from WSDL ?
Thanks,
Sudhir
AFAIK No. I'm sure I could code up an extension to do it,
but I'd probbly lean toward doing the SOAP communication from
my socket server and then just simple raw sockets between BREW
and my server (parsing on the faster, server machine to get the data
I really need).

sudhirkd wrote:Hi Guys,
Is there any support in BREW for developing SOAP client for accessing web-service ? Any toolkits to generate C code from WSDL ?
Thanks,
Sudhir
AFAIK No. I'm sure I could code up an extension to do it,
but I'd probbly lean toward doing the SOAP communication from
my socket server and then just simple raw sockets between BREW
and my server (parsing on the faster, server machine to get the data
I really need).

ruben wrote:Since you want to port SOAP lib to BREW and implement a BREW client, this book will give you basic understanding. Check Amazon.com for preview/review
http://www.amazon.com/exec/obidos/tg/detail/-/0672319225/104-3568820-305...
Open source Web Services and Clients implementation. Be aware, reviewing and porting the soap client side code genrated by this tools will take enough time and may impose serious brew limitation http://www.cs.fsu.edu/~engelen/soap.html
thanks
wizz

ruben wrote:Since you want to port SOAP lib to BREW and implement a BREW client, this book will give you basic understanding. Check Amazon.com for preview/review
http://www.amazon.com/exec/obidos/tg/detail/-/0672319225/104-3568820-305...
Open source Web Services and Clients implementation. Be aware, reviewing and porting the soap client side code genrated by this tools will take enough time and may impose serious brew limitation http://www.cs.fsu.edu/~engelen/soap.html
thanks
wizz