You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Girish Kumar (JIRA)" <ji...@apache.org> on 2011/02/03 08:14:29 UTC

[jira] Updated: (AXIS2C-1535) Getting HTTP Status Code as 0 instead of 408

     [ https://issues.apache.org/jira/browse/AXIS2C-1535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Girish Kumar updated AXIS2C-1535:
---------------------------------

    Description: 
I am using WSF CPP 2.1.0 version to build a web service client which I believe is internally build on top of AXIS2C 1.6.0 version. I am observing that Axis is returning HTTP Status Code of web service operation as 0 whenever remote Web Server is not reachable or operation times out. It should instead return 408 code in such scenario. Correct status code of 200 is returned for successful operation.

I am using following code snippet to get the HTTP Status Code.

MyServiceStub *myService = new MyServiceStub(axis2ClientHomeString, serviceUriString);
MyInputObject myInput;
// Setting input parameters here...
MyFaultObject myFault;
MyOutputObject *myOutput = myService->MyOperation(&myInput, &myFault);
int httpStatusCode = axis2_svc_client_get_http_status_code( myService->getServiceClient()->getAxis2SvcClient(), Environment::getEnv());

  was:
I am using WSF CPP 2.1.0 version to build a web service client which I believe is internally build on top of AXIS2C 1.6.0 version. I am observing that Axis is returning HTTP Status Code of web service operation as 0 whenever remote Web Server is not reachable or operation times out. It should instead return 408 code in such scenario. Correct status code of 200 is returned for successful operation.

I am using following code snippet to get the HTTP Status Code.

MyServiceStub *myService = new MyServiceStub(axis2ClientHomeString, serviceUriString);
MyInputObject myInput;
// Setting input parameters here...
MyFaultObject myFault;
MyOutputObject *myOutput = myService->MyOperation(&myInput, &myFault);
int httpStatusCode = axis2_svc_client_get_http_status_code( myService->getServiceClient()->getAxis2SvcClient(), Environment::getEnv());

Please let me know if this mechanism is correct. Am I missing something in the code?


> Getting HTTP Status Code as 0 instead of 408
> --------------------------------------------
>
>                 Key: AXIS2C-1535
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1535
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/clientapi
>            Reporter: Girish Kumar
>
> I am using WSF CPP 2.1.0 version to build a web service client which I believe is internally build on top of AXIS2C 1.6.0 version. I am observing that Axis is returning HTTP Status Code of web service operation as 0 whenever remote Web Server is not reachable or operation times out. It should instead return 408 code in such scenario. Correct status code of 200 is returned for successful operation.
> I am using following code snippet to get the HTTP Status Code.
> MyServiceStub *myService = new MyServiceStub(axis2ClientHomeString, serviceUriString);
> MyInputObject myInput;
> // Setting input parameters here...
> MyFaultObject myFault;
> MyOutputObject *myOutput = myService->MyOperation(&myInput, &myFault);
> int httpStatusCode = axis2_svc_client_get_http_status_code( myService->getServiceClient()->getAxis2SvcClient(), Environment::getEnv());

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org