Hello everyone, I'm using WSDL2RPG and HTTPAPI to call a SOAP webservice that gives back a response formatted in a weird way, I know from the debug that the connection is all ok, but the response is this: HTTP/1.1 200 OK Cache-Control: private,no-cache, no-store, must-revalidate Pragma: no-cache Content-Type: multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:ee5337ad-9052-478b-be62-1101352ba594+id=1280";start-info="text/xml" Expires: 0 Server: Microsoft-IIS/10.0 MIME-Version: 1.0 X-AspNet-Version: 4.0.30319 Date: Thu, 25 Oct 2018 16:20:23 GMT Content-Length: 1088 --uuid:ee5337ad-9052-478b-be62-1101352ba594+id=1280 Content-ID: <http://tempuri.org/0> Content-Transfer-Encoding: 8bit Content-Type: application/xop+xml;charset=utf-8;type="text/xml" <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><DoLoginResponse xmlns="http://tempuri.org/"><DoLoginResult xmlns:a="http://schemas.datacontract.org/2004/07/xxx" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><a:ErrorList i:nil="true"/><a:IsError>false</a:IsError><a:IsWarning>false</a:IsWarning><a:WarningList i:nil="true"/><a:Token>xxx</a:Token></DoLoginResult></DoLoginResponse></s:Body></s:Envelope> --uuid:ee5337ad-9052-478b-be62-1101352ba594+id=1280-- and in the end it fails with: WSDL2RPG (eXpat error): (3) no element found I presume that the parser expect a simple "text/xml" (like I do, anyway) and not a multipart content type with only one part... is there a way to make it works? Thanks in advance, Roberto. --
![]() Roberto Bizzozero - roberto.bizzozero@xxxxxxxxx Blusys srl viale Achille Papa 30, 20149 Milano (MI) Tel: +39 02 39260099 Fax: +39 02 33004649 Web: www.blusys.it La presente e-mail e gli allegati alla stessa sono da considerarsi confidenziali, protetti dal segreto professionale e riservati ad uso esclusivo del destinatario. La diffusione, distribuzione e/o copiatura di questa e-mail e dei suoi allegati, nonché la divulgazione dei rispettivi contenuti, da parte di qualsiasi soggetto diverso dal destinatario, è proibita. Qualora abbiate ricevuto questa e-mail per errore, Vi preghiamo di cancellarla, unitamente ai suoi allegati. Il trattamento dei dati avviene in piena conformità di quanto previsto dal D.Lgs 196/03.
|
-- _______________________________________________ Ftpapi mailing list Ftpapi@xxxxxxxxxxxxxxxxxxxxxx http://scottklement.com/mailman/listinfo/ftpapi