You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Bochnak Filip <Fi...@edmb.debis.com> on 2004/05/11 22:01:41 UTC

wrong float result C++ client / Tomcat ?

Hi guys
Can anybody help me out? 
I wrote a c++ client which connects to a Tomcat Server. 
My method is giving me the wrong number?
what I am doing wrong? I suppose that´s a parsing problem ?!?

my method looks like:
float GetQuote::getQuote(xsd__string Value0)
{
	float Ret;
	if (AXIS_SUCCESS != m_pCall->Initialize(CPP_RPC_PROVIDER,
NORMAL_CHANNEL)) return Ret;
	m_pCall->SetTransportProperty(SOAPACTION_HEADER , "getQuote");
	m_pCall->SetSOAPVersion(SOAP_VER_1_1);
	m_pCall->SetOperation("getQuote", "urn:xmltoday-delayed-quotes");
	m_pCall->AddParameter((void*)&Value0, "symbol", XSD_STRING);
	if (AXIS_SUCCESS == m_pCall->Invoke())
	{
		if(AXIS_SUCCESS == m_pCall->CheckMessage("getQuoteResponse",
"urn:xmltoday-delayed-quotes"))
		{
			Ret = m_pCall->GetElementAsFloat("result", 0);
		}
	}
	m_pCall->UnInitialize();
	return Ret;
}

Result is -1.07374e+008 instead of 55.25

Thanks for ur help

Kind Regards

Phil