Peer Example

23 views
Skip to first unread message

Michael Abel

unread,
Aug 27, 2012, 5:25:44 AM8/27/12
to ws4d-gso...@googlegroups.com, michae...@isw.uni-stuttgart.de

Hello Folks,

I'd like to use your DPWS gSOAP Stack for my research.
For this purpose I like to get the peer example running, but I was yet
only partly successful.
Can you please help me?

I'm using the current trunk (Rev: 586) as some other examples are not
functional in the stable version 0.8.
(http://trac.e-technik.uni-rostock.de/projects/ws4d-gsoap/ticket/24)

When trying to compile the peer example I got compile errors concerning
the method ws4d_qnamelist_addstring which I've tried to fix by
reordering the arguments (see below). With this fix I've got the
acc_device running.

Could you please check if my fix is valid?

Unfortunately, I still got such runtime warnings and I'm not sure if the
peer-example works as it should.

.../ws4d-gsoap/src/libdpws/ws4d_mm.c:447) expression failed: (entry &&
ws4d_list_check(&entry->list) && entry->alist)

I was also looking for documentation about the peer example. Is there
maybe anything I have overlooked?

Thanks a lot

With best Regards,

Michael Abel


----
Compile Errors:

.../peer-example/src/acc_device.c: In function �main�:
.../peer-example/src/acc_device.c:155: warning: passing argument 1 of
�ws4d_qnamelist_addstring� from incompatible pointer type

.../include/ws4d-gSOAP/ws4d_qnamelist.h:140: note: expected �struct
ws4d_qnamelist *� but argument is of type �char *�

.../peer-example/src/acc_device.c:155: warning: passing argument 2 of
�ws4d_qnamelist_addstring� from incompatible pointer type

.../include/ws4d-gSOAP/ws4d_qnamelist.h:140: note: expected �const char
*� but argument is of type �struct ws4d_qnamelist *�

.../peer-example/src/acc_device.c:155: error: too many arguments to
function �ws4d_qnamelist_addstring�

---
Diff:

diff -u acc_device.c_old acc_device.c
...
+++ acc_device.c 2012-08-27 10:15:37.000000000 +0200
@@ -150,8 +150,8 @@

ws4d_qnamelist_init (&acdevice_type_list);
ws4d_qnamelist_addstring
-
("\"http://www.ws4d.org/axis2/tutorial/AirConditioner\":AirConditioner",
- &acdevice_type_list, &alist);
+ (&acdevice_type_list,
"\"http://www.ws4d.org/axis2/tutorial/AirConditioner\":AirConditioner");
+
if (ws4d_dtracker_init (&dtracker, &acdevice_type_list, NULL, NULL,
NULL))
{
printf ("\nAirconditioner: Can't init device tracker\n");
@@ -161,8 +161,7 @@

ws4d_qnamelist_init (&acservice_type_list);
ws4d_qnamelist_addstring
-
("\"http://www.ws4d.org/axis2/tutorial/AirConditioner\":ACServiceInterface",
- &acservice_type_list, &alist);
+ (&acservice_type_list,
"\"http://www.ws4d.org/axis2/tutorial/AirConditioner\":ACServiceInterface");
if (ws4d_stracker_init
(&stracker, &dtracker, &acservice_type_list, NULL, NULL))
{

--
----------------------------------------------------------------
Dipl.-Ing. Michael Abel

Graduate School advanced Manufacturing Engineering
GSaME - Universit�t Stuttgart

Institut f�r Steuerungstechnik
der Werkzeugmaschinen und Fertigungseinrichtungen
ISW - Universit�t Stuttgart

Seidenstr. 36
70174 Stuttgart

Tel.: ++49 (0) 711 685-82532
Fax : ++49 (0) 711 685-82808

michae...@isw.uni-stuttgart.de
michae...@gsame.uni-stuttgart.de

www.isw.uni-stuttgart.de
www.gsame.uni-stuttgart.de


michael_abel.vcf
Reply all
Reply to author
Forward
0 new messages