WSDL Request - created in PHP cannot implement in Mendix

1
I have an external WSDL file created by an external party. This is created in PHP. When imported this WSDL in SOAPUI the request looks like this: <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:ImportRookStopService"> <soapenv:Header/> <soapenv:Body> <urn:Import soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <parameters xsi:type="urn:Roker"> <username xsi:type="xsd:string">rsp_richard</username> <voornaam xsi:type="xsd:string">richard</voornaam> <achternaam xsi:type="xsd:string">bakker</achternaam> <geboortedatum xsi:type="xsd:string">1979-10-10</geboortedatum> <emailadres xsi:type="xsd:string">xxxx@xxxxxx.com</emailadres> <gestopt xsi:type="xsd:int">0</gestopt> <stopdatum xsi:type="xsd:string">2010-10-10</stopdatum> <sigarettenperdag xsi:type="xsd:int">20</sigarettenperdag> <shagjesperdag xsi:type="xsd:int">0</shagjesperdag> <eerderestoppogingen xsi:type="xsd:int">1</eerderestoppogingen> </parameters> </urn:Import> </soapenv:Body> </soapenv:Envelope> When i call the invoke webservice in Mendix i'm getting an error back from the webservice saying it's invalid XML. When i traced it and tested in SOAPUI the problems is the xsi part behind username/voornaam ect I created a Custom body part which i manually inserted this, the calling of the webservices is saying that the xsi part cannot be resolved. To be sure below is the default mendix part of the request. <soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <axis2ns1:Import xmlns:axis2ns1="urn:ImportRookStopService"> <parameters> <username>piet</username> <voornaam>Piet</voornaam> <achternaam>Pietersen</achternaam> <geboortedatum>1979-10-10</geboortedatum> <emailadres>XX@XXX.com</emailadres> <gestopt>0</gestopt> <stopdatum>2010-11-01</stopdatum> <sigarettenperdag>0</sigarettenperdag> <shagjesperdag>5</shagjesperdag> <eerderestoppogingen>2</eerderestoppogingen> </parameters> </axis2ns1:Import> </soapenv:Body> </soapenv:Envelope>
asked
1 answers
0

As far as i know, we indeed do not support (nor need) xsi typed primitives. Concerning the second error, i think you should remove the xsi import declaration 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' from the Envelope element.

answered