Question: I upload some video using *Browser-based upload* method. The video is uploaded fine, however I can't manage to fetch this recently uploaded video's id. 
Here's what I did:

```
$vidEntry = new Zend_Gdata_YouTube_VideoEntry();
...
...
$tokenHandlerUrl = 'http://gdata.youtube.com/action/GetUploadToken';
$tokenArray = $yt->getFormUploadToken($vidEntry, $tokenHandlerUrl);
$tokenValue = $tokenArray['token'];
$postUrl = $tokenArray['url'];
...
...
posting using cURL...

```

And the problematic code:

```
$state = $vidEntry->getVideoState();
if($state) {
    $video_id = $vidEntry->getVideoId();
} else {
    die("Error");
}

```

And the **$state** here is **NULL**. What's the problem?

BTW according to manual:

> 
> After uploading the video file, the user is redirected to the nexturl
>  specified in your form. If the upload was successful, YouTube appends
>  **id and status parameters to the URL** as shown in the following example:
> 
> 
> 

But I still can't get them (Maybe I'm thinking of the wrong URL?).

Answer: 
There is a specialized library called WSDL4J that allows to parse WSDL files.
[JAXB](http://www.oracle.com/technetwork/articles/javase/index-140168.html) is much more powerful and much less code than **manual** DOM manipulation will be.