I'm interacting with a .Net web service. According to the service description the server is expecting a base64Binary type.
This is how I'm trying to build the SOAP packet:
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
</soap:Header>
<soap:Body>
<uploadFile xmlns="http://localhost/">
<FileDetails>
<ReferenceNumber>123</ReferenceNumber>
<FileName>testfile</FileName>
<FullFilePath>file</FullFilePath>
<FileType>1</FileType>
<FileContents>{request.getContent().array()}</FileContents>
</FileDetails>
</uploadFile>
</soap:Body>
</soap:Envelope>
In the snippet above the request.getContent().array()
is an HTTP request I'm receiving from a mobile application developed in PhoneGap.
The server responds that the FileContents is invalid. Any ideas?