Question: The EU VIES VAT validation from WSDL is not working when running via java code. But the same is working from some soap API testing tools.
 Eg, <https://wsdlbrowser.com/soapclient?wsdl_url=https%3A%2F%2Fec.europa.eu%2Ftaxation_customs%2Fvies%2FcheckVatService.wsdl> and <https://app.boomerangapi.com/?ext>

Even its not working when I trid to get source code from wsimport. (C:\Program Files\Java\jdk1.8.0\_151\bin>wsimport -keep -verbose <http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl>)

Error is “The element type "BR" must be terminated by the matching end-tag "".” The same error is coming when trying to access SOAP service via java code.

Any suggestions on how to use this EU wsdl for validating VAT nos?

Answer: 
Assuming it's for browser.. you could create a new script tag (so that the content of the javascript file will be parsed) and then assign the new variable from there.
Here is some code for reference:

```
const newScriptTag = document.createElement('script')
newScriptTag.textContent = content; // content is the value of the js file (var oc... )
document.body.append(newScriptTag)
let newArray = oc;
// then remove the script tag
document.body.removeChild(scriptTag)

```
Turn each object into an array using `Object.entries` and merge the arrays.

```js
const obj1 = { "1": 500, "2": 15, "5": 4, "4": 480, "10": 87 };
const obj2 = { "1": 500, "2": 15, "5": 4, "4": 480, "10": 87 };
const myArray = Object.entries(obj1).concat(Object.entries(obj2));;
console.log(myArray);
```