Picture of IbrahimAltos
Registered 3 years 76 days
IbrahimAltos Wednesday, 23 March 2022, 10:53 AM
URGENT: Response is not well-formed XML
Hello,

We are IT outsourcing company, and as a developer I am trying to integrate Innovaphone in the code for one of our customers, and getting an error with text: Response is not well-formed XML
when calling the PBX.Initialize method

Here the code:

try
{
_pbx = new pbx();
_pbx.Url = _pbxUrl;
var networkCredentials = new NetworkCredential(httpUser, httpPw, string.Empty);
_pbx.Credentials = new NetworkCredential(httpUser, httpPw, string.Empty);

_sessionHandle = _pbx.Initialize(_pbxUser, _applicationName, true, true, true, true, out int key);

isSessionHandled = true;
}
catch (Exception exc)
{
var test = exc.Message;
}

FYI, I am using httpUser the same as pbxUser!

Please, check the attachment!

Response_is_not_well-formed_XML.png

Andreas Fink
Moderator Registered 13 years 109 days
Andreas Fink (innovaphone) Thursday, 24 March 2022, 09:43 AM
Re: URGENT: Response is not well-formed XML
Hello Ibrahim,

the message "Response is not well-formed XML" suggests that the response is not a valid XML.

The reason could be a wrong URL, so HTTP server delivers something like "Page not found", instead of XML.

Best Regards
Andreas Fink
Picture of IbrahimAltos
Registered 3 years 76 days
IbrahimAltos Thursday, 24 March 2022, 01:13 PM
Re: URGENT: Response is not well-formed XML
Hello Andreas,

Thanks for reply..

Then, how to git the SOAP url?

ex. if using this url: "http://$server/PBX0/user.soap",
then getting 404 error...

should this url be generated in some case?
Or I need to specify it somehow ?

BR,
← You can define your color theme preference here