Hi 

I am new to web services programming. I just downloaded IBM's MQC2: Web
Services Client for C++ and have installed it. I created some C++ stubs from
a wsdl provided to me from another department at my company. I have
successfully compiled the stubs with our application. The problem I'm facing
is that when I call the authenticateUser() method the m_pCall->checkMessage
call is failing and I don't know why. Here are the details of our
environment:

Server: AIX 5.2 
Compiler: IBM C++ 8.0

I highlighted the offending line of code below:

xsd__int ILDAPUtilsPortType::authenticateUser(xsd__string Value0,
xsd__string Value1)
{
        xsd__int Ret = 0;
        const char* pcCmplxFaultName;
        pcCmplxFaultName = NULL;
        try
        {       if (AXIS_SUCCESS != m_pCall->initialize(CPP_DOC_PROVIDER))
return Ret;
                if (NULL==m_pCall->getTransportProperty("SOAPAction",false))
        {
                m_pCall->setTransportProperty(SOAPACTION_HEADER , "");
        }
        m_pCall->setSOAPVersion(SOAP_VER_1_1);
        m_pCall->setOperation("authenticateUser",
"http://ldap.reportrepository.msuite.cgi.com";);
        includeSecure();
        applyUserPreferences();
        char cPrefixAndParamName0[13];
        sprintf( cPrefixAndParamName0, "%s:in0",
m_pCall->getNamespacePrefix("http://ldap.reportrepository.msuite.cgi.com";));
        m_pCall->addParameter((void*)Value0, cPrefixAndParamName0,
XSD_STRING);
        char cPrefixAndParamName1[13];
        sprintf( cPrefixAndParamName1, "%s:in1",
m_pCall->getNamespacePrefix("http://ldap.reportrepository.msuite.cgi.com";));
        m_pCall->addParameter((void*)Value1, cPrefixAndParamName1,
XSD_STRING);
        if (AXIS_SUCCESS == m_pCall->invoke())
        {
                if(AXIS_SUCCESS ==
m_pCall->checkMessage("authenticateUserResponse",
"http://ldap.reportrepository.msuite.cgi.com";))
                {
                        xsd__int * pReturn = m_pCall->getElementAsInt("out",
0);
                        if(pReturn)
                        {
                                Ret = *pReturn;
                                Axis::AxisDelete( (void *) pReturn,
XSD_INT);
                        }
                }
        }
        m_pCall->unInitialize();
        return Ret;


Please respond,
Thanks
-- 
View this message in context: 
http://www.nabble.com/axis-m_pCall-%3EcheckMessage-failing-tf4056585.html#a11523419
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to