You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Stefan Schmidt <sc...@fcad.de> on 2004/03/15 19:04:20 UTC

Deserialization of Custom Objects

Does this work properly yet? I have a really simple custom object
containing a string and an integer but this object is not deserialized
correctly.

in Call::Invoke() there is a call to m_pIWSDZ:

pParam = (Param*)m_pIWSDZ->GetParam();

which (when I look into pParam in the debugger) contains the string I am
expecting as part of the custom object rather than the custom object
description.

Then it proceeds to calling the implementation of the deserilization
function of my custom object (as created by wsdl2wc), which does:

param->ACode = pIWSDZ->GetString();
param->NResult = pIWSDZ->GetInt();

but GetString() returns NULL.

When I modify Call::invoke() to do 4x GetParam() I see:

pParam1 - type = ACCESSOR, value = empty
pParam2 - type = USER_TYPE, value = empty
pParam3 - type = XSD_STRING, value = expected string value
pParam4 - type = XSD_INT, value = expected int value

Has anyone got an idea what's going on?

Regards,

Stefan Schmidt
FelixCAD/CeCAD Support and Development
+49 (0)30 89690350