axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samisa Abeysinghe (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Commented: (AXISCPP-617) an exception occurs in running WS client
Date Mon, 18 Apr 2005 02:20:57 GMT
     [ http://issues.apache.org/jira/browse/AXISCPP-617?page=comments#action_63020 ]
     
Samisa Abeysinghe commented on AXISCPP-617:
-------------------------------------------

What is the exception you get?
Is it "cannot deserialize" error?

> an exception occurs in running WS client
> ----------------------------------------
>
>          Key: AXISCPP-617
>          URL: http://issues.apache.org/jira/browse/AXISCPP-617
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Stub
>     Versions: current (nightly)
>  Environment: Win2K, UNIX
>     Reporter: anson ye
>  Attachments: umbpi.wsdl
>
> Such codes of WS client are generated by WDSL2WS tool. If the result type is a complex
type, in type deserialize function create below code:
> int Axis_DeSerialize_GenericOutput(GenericOutput* param, IWrapperSoapDeSerializer* pIWSDZ)
> {
> 	param->ResultCode = pIWSDZ->getElementAsString( "ResultCode",0);
> 	param->ResultMsg = pIWSDZ->getElementAsString( "ResultMsg",0);
> 	return pIWSDZ->getStatus();
> }
>  here, ResultCode and ResutluMsg are elements in Result:
>   <Result>
>      <ResultCode>...</ResultCode>
>      <ResultMsg>...</ResultMsg>
>   </Result>
> Due to the second parameter is 0 (NULL), when the program execute it will access the
address 0, so a exception occurs.
>  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message