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 Valmir Macário <va...@gmail.com> on 2006/04/25 21:25:17 UTC
Problems with client
Hi all,
I´m trying a long time put a client cpp to consume a service deployed with
axis java. I´m using visual studio 2003 and always give the follow exception
when new Call is called in constructor:
An unhandled exception of type 'System.Runtime.InteropServices.SEHException'
occurred in Client.exe
I apreciate if someone can help-me, may time is over and i´m still don´nt
get. Follow the client code, thanks:
#include "axis\client\Stub.hpp"
#include "axis\AxisWrapperAPI.hpp"
#include "axis\Axis.hpp"
#include "axis\GDefine.hpp"
#pragma comment(lib, "axis_client.lib")
#include <string.h>
using namespace std;
extern int Axis_DeSerialize_Passe(Passe* param, IWrapperSoapDeSerializer*
pDZ);
extern void* Axis_Create_Passe(Passe *Obj, bool bArray = false, intnSize=0);
extern void Axis_Delete_Passe(Passe* param, bool bArray = false, intnSize=0);
extern int Axis_Serialize_Passe(Passe* param, IWrapperSoapSerializer* pSZ,
bool bArray = false);
extern int Axis_GetSize_Passe();
Call* m_pCall;
LicenseControler::LicenseControler(const char* pchEndpointUri,
AXIS_PROTOCOL_TYPE eProtocol)
{
m_pCall = new Call();
m_pCall->setProtocol(APTHTTP1_1);
m_pCall->setEndpointURI(pchEndpointUri);
}
LicenseControler::~LicenseControler()
{
delete m_pCall;
}
/*Methods corresponding to the web service methods*/
/*
* This method wrap the service method getPasses
*/
Passe* LicenseControler::getPasses(xsd__string Value0)
{
const char * pcCmplxFaultName = NULL;
....