1

Topic: SOAP the answer with base64binary for 1C

Good afternoon!
I write SOAP service for access from 1. At attempt of loading of photos there was a problem. 1C does not understand such answer

<s:Envelope xmlns:msxsl = "urn:schemas-microsoft-com:xslt" xmlns:xs = "http://www.w3.org/2001/XMLSchema" xmlns:tns = "http://www.stella-npf.ru/guard/exchange/wsdl" xmlns:s = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:misc = "http://www.stella-npf.ru/misc">
<s:Body>
<GetEmployeePhotoResponse xmlns = "http://www.stella-npf.ru/guard/exchange/wsdl">
<Photo>/9j/4AAQSkZJ... </Photo>
</GetEmployeePhotoResponse>
</s:Body>
</s:Envelope>

The programmer on the side 1 says that such format is necessary:

<soap:Envelope xmlns:soap = "http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:GetEmployeePhotoResponse xmlns:m = "www.exchange_1c.org">
<m:return xmlns:xs = "http://www.w3.org/2001/XMLSchema" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance">
Here the binary data
</m:return>
</m:GetEmployeePhotoResponse>
</soap:Body>
</soap:Envelope>

Piece wsdl:

<xs:element name = "GetEmployeePhotoResponse">
<xs:complexType>
<xs:sequence>
<xs:element name = "Photo" type = "xs:base64Binary">
<xs:annotation>
<xs:documentation></xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>

It is singularity 1 to demand return or I did not specify something in the answer?