cancel
Showing results for 
Search instead for 
Did you mean: 

Error in decoding Wsdl

Error in decoding Wsdl

Hi All,

when I call the soap api salesOrderRepositoryV1Get, I get this error:

 

SOAP-ERROR: Parsing WSDL: Couldn't load from 'data://text/plain;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCgoNCjxkZWZpbml0aW9ucyB4bWxucz0iaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3NkbC8iIHhtbG5zOndzZGw9Imh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzZGwvIiB4bWxuczp0bnM9Imh0dHBzOi8vYmUtc3RhZ2UuY3VjaW5hYmFyaWxsYS5pdC9zb2FwL2V1cl9pdF9pdD9zZXJ2aWNlcz1pbnRlZ3JhdGlvbkFkbWluVG9rZW5TZXJ2aWNlVjElMkNzYWxlc09yZGVyUmVwb3NpdG9yeVYxJTJDc2FsZXNPcmRlck1hbmFnZW1lbnRWMSUyQ3NhbGVzU2hpcG1lbnRUcmFja1JlcG9zaXRvcnlWMSUyQ2NhdGFsb2dJbnZlbnRvcnlTdG9ja1JlZ2lzdHJ5VjElMkNjdXN0b21lckN1c3RvbWVyUmVwb3NpdG9yeVYxJTJDaEZBUk1FeHRlbmRBcGlFeHRlbmRTaGlwbWVudFRyYWNrUmVwb3NpdG9yeVYxJTJDaEZBUk1HZXN0aW9uZUFiYm9uYW1lbnRpQXBpVjEiIHhtbG5zOnNvYXA9Imh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzZGwvc29hcC8iIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOnNvYXAtZW5jPSJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy9zb2FwL2VuY29kaW5nLyIgeG1sbnM6c29hcDEyPSJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93c2RsL3NvYXAxMi8iIG5hbWU9Ik1hZ2VudG9XU0RMIiB0YXJnZXROYW1lc3B

The only change that I made was add an extension attribute to order address.

Could you help me, please?

Thanks

2 REPLIES

Re: Error in decoding Wsdl

The error was throwed here: app/code/Magento/Webapi/Model/Soap/ServerFactory.php at line 44 in the create method

Re: Error in decoding Wsdl

I was able to resolve introducing a double new line after and before any new tags, in method

getWsdlLocalUri in file app/code/Magento/Webapi/Model/Soap/Server.php

 

 

$wsdlBody=str_replace(">",">\r\n\r\n",$wsdlBody);
	$wsdlBody=str_replace("<","\r\n\r\n<",$wsdlBody);
	$wsdlBody = trim($wsdlBody);

But Why?