try putting try/catch block around the code in main() routine. Something
like:
try
{
}
catch( AxisException &e)
{
cout << "Exception : " << e.what() << endl;
}
catch(...)
{
cout << "Unknown Exception occured." << endl;
}
Nadir Amra
"ss ak" <[EMAIL PROTECTED]> wrote on 12/04/2008 09:50:25 PM:
> [image removed]
>
> client runtime error
>
> ss ak
>
> to:
>
> Apache AXIS C Developers List
>
> 12/04/2008 09:50 PM
>
> Please respond to "Apache AXIS C Developers List"
>
> client code just have the stub generated by axis C++ call
>
> int main (int argc, char *argv[])
> {
> printf("\n Hello main");
> PortType stub((const char *)"http://device/xmlService",APTHTTP1_1);
>
> return 0;
> }
>
> PortType class declaration(generated by axis c++)
> class PortType :public Stub
> {
> public:
> STORAGE_CLASS_INFO PortType(const char* pchEndpointUri,
> AXIS_PROTOCOL_TYPE eProtocol=APTHTTP1_1);
> STORAGE_CLASS_INFO PortType();
> public:
> STORAGE_CLASS_INFO virtual ~PortType();
> public:
> STORAGE_CLASS_INFO GetResp* get(GetReq* Value0);
> }
>
> generated constructor is empty
> Do i need to set the endpoint or anything here....new Call() or
> something like that to start?????
>
> PortType::PortType(const char* pcEndpointUri, AXIS_PROTOCOL_TYPE
eProtocol)
> :Stub(pcEndpointUri, eProtocol)
> {
> }
>
> /**
>
>
******************************************************************************
> * Constructor for service switchPortType.
>
>
******************************************************************************
> */
>
> PortType::PortType()
> :Stub(" ", APTHTTP1_1)
> {
> m_pCall->setEndpointURI("http://localhost/xapi");
>
> }
>
> I get this runtime error...
>
> D:\New\Debug>ShN.exe
>
> Hello main
> This application has requested the Runtime to terminate it in an unusual
way.
> Please contact the application's support team for more information.
> ----------
>
> Does anyone see any error in this???
>
> please respond...its very valuable to me..at this point...
> Thanks in advance!!!!!!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]