Not receiving eventing (from Airconditioner tutorial)

23 views
Skip to first unread message

Peter

unread,
Dec 1, 2011, 2:47:16 AM12/1/11
to WS4D-gSOAP Users
Hi,

When I compile the example from the original code (from ws4d-
gsoap-0.8.src). I can receive the eventing (using DPWS Explorer).

However, when I followed the airconditioner tutorial, I can't receive
the eventing data (using DPWS Explorer).
The device (airconditioner) seems to send out an event, but the DPWS
Explorer prints out an error "[ERROR] Missing required element
http://www.w3.org/2003/05/soap-envelope:Header"

There was one time I managed to capture the raw message & made a
comparison between "my airconditioner" and "the original
airconditioner". It seems that there's a missing <wse:Identifier> in
my airconditioner.

Is there any additional step that I need to do to solve this problem?

Thanks.

Peter

unread,
Dec 2, 2011, 10:47:23 AM12/2/11
to WS4D-gSOAP Users
I've found the missing section.
It's the "dpws_header_gen_wseIdentifier" function.

It's not stated in the airconditioner tutorial.
In the original code, that function is used by void deliver_event.

On Dec 1, 3:47 pm, Peter <ming...@gmail.com> wrote:
> Hi,
>
> When I compile the example from the original code (from ws4d-
> gsoap-0.8.src). I can receive the eventing (using DPWS Explorer).
>
> However, when I followed the airconditioner tutorial, I can't receive
> the eventing data (using DPWS Explorer).
> The device (airconditioner) seems to send out an event, but the DPWS

> Explorer prints out an error "[ERROR] Missing required elementhttp://www.w3.org/2003/05/soap-envelope:Header"

Elmar Zeeb

unread,
Dec 2, 2011, 11:24:35 AM12/2/11
to ws4d-gso...@googlegroups.com
Am Fr 02 Dez 2011 16:47:23 CET schrieb Peter:
> I've found the missing section.
> It's the "dpws_header_gen_wseIdentifier" function.
>
> It's not stated in the airconditioner tutorial.
> In the original code, that function is used by void deliver_event.
>
> On Dec 1, 3:47 pm, Peter<ming...@gmail.com> wrote:
>> Hi,
>>
>> When I compile the example from the original code (from ws4d-
>> gsoap-0.8.src). I can receive the eventing (using DPWS Explorer).
>>
>> However, when I followed the airconditioner tutorial, I can't receive
>> the eventing data (using DPWS Explorer).
>> The device (airconditioner) seems to send out an event, but the DPWS
>> Explorer prints out an error "[ERROR] Missing required elementhttp://www.w3.org/2003/05/soap-envelope:Header"
>>
>> There was one time I managed to capture the raw message& made a

>> comparison between "my airconditioner" and "the original
>> airconditioner". It seems that there's a missing<wse:Identifier> in
>> my airconditioner.
>>
>> Is there any additional step that I need to do to solve this problem?
>>
>> Thanks.
>

Sorry for my late response. The wse:Identifier is missing in the
tutorial. I have update the tutorial.

Regards,
Elmar

Reply all
Reply to author
Forward
0 new messages