Question: I am facing a problem to upload version in magento connect extension. When I am trying to upload the package file for the extension, it's giving the following error.

> 
> An error occurred during upload to channel MagentoConnect: Version not
> found
> 
> 
> 

However I have given the Version Number to 1.0.0.0 and also given the Release Version same in package extension in magento admin. Then the package file is namespace\_module-1.0.0.0.tgz. I am trying to upload this file in Upload package section and giving the following error.

May I know what wrong I have done to upload package extension.

Answer: 
You need to wrap your soap call into `try and catch` construction to find a reason of your error.
This can be done in the follows way:

```
$client = new \SoapClient($wsdl, ['trace' => true]);
try {
    // use client to call some soap method
} catch (\SoapFault $e) {
    // handle exception message
}

```

This construction allows to do next two things:

1. You can get exception message -> `$e->getMessage()` and exception details `$e->detail`.
2. The `trace` option allows seeing details of your `$client` request. For example, if you use xdebug and set break point in the catch block, you can get request and response details: `$client->__last_request` and `$client->__last_response`, which allow you to find reason of your problem
Your request parameters may be getting stripped if they don't comply with what is described in the WSDL.

For more info on this look here: <http://php.net/manual/en/soapclient.call.php>