Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, all

I am developing ONVIF application base on gSOAP.
When I try to pull event from IPCAMs, some problems appeared.

I called CreatePullPointSubscription to subscript events from IPCAM, then I called PullMessages along with the entry point provided by previous CreatePullPointSubscription call.

Unfortunately, IPCAM returned a PullMessagesFaultResponse to indicate me MaxMessageLimit is too large to accept.

Here is the SOAP message:

XML
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
    xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
    xmlns:xs="http://www.w3.org/2000/10/XMLSchema"
    xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    xmlns:tt="http://www.onvif.org/ver10/schema"
    xmlns:wsa="http://www.w3.org/2005/08/addressing"
    xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
    xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
    xmlns:tet="http://www.onvif.org/ver10/events/wsdl">
    <soap:Body>
        <tet:PullMessagesFaultResponse>
            <tet:MaxTimeout>
            </tet:MaxTimeout>
            <tet:MaxMessageLimit>
                10
            </tet:MaxMessageLimit>
        </tet:PullMessagesFaultResponse>
    </soap:Body>
</soap:Envelope>


gSOAP failed to parse the message correctly (Fill the details member of soap structure) but told me we just got a "XML tag 'PullMessagesFaultResponse' is mismatch" error. (The formal response excepts "PullMessageResponse" tag, not "PullMessageFaultResponse" tag) Obviously either the Message is not well-formed or I missed something.

Can any one help me?
Posted
Updated 12-Dec-12 15:16pm
v2
Comments
vaishali thaker 25-Oct-13 6:11am    
Even i m facing the same problem. If u find solution please tell me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900