hello group,
iam using gsoap 2.7.12 and gcc (GCC) 4.3.3 on my arch linux.
i try do use the amazon merchant soap interface with gsoap. i have to
send an feed as base64 mime attachment to amazon. if i do so i got some
errors from the amazon server that he do not like some unicode
characters in my request.
i have analysed the SENT.log and found that characters before and after
the main soap request! (" )ðcid:id0" for example) some of them are
not printable.
can anyone help me and explain that behaviour to me?
the c++ code is available here: http://pastebin.com/f2a57e0a2
<http://pastebin.com/f2a57e0a2>
for a better look i have colored the parts which i think should not be
there.
thank you in anticipation,
knuck_les
POST /gateway/merchant-interface-mime HTTP/1.1
Host: merchant-api.amazon.co.uk
User-Agent: gSOAP/2.7
Content-Type: multipart/related; boundary="MIME_boundary"
type="application/dime"; start="<SOAP-ENV:Envelope>"
Content-Length: 1182
Connection: close
Accept-Encoding: gzip, deflate
Authorization: Basic works==
SOAPAction:
"http://www.amazon.com/merchants/merchant-interface/MerchantInterface#po\
stDocument#KEx3YXNwY1NlcnZpZ="
--MIME_boundary
Content-Type: application/dime
Content-Transfer-Encoding: binary
Content-ID: <SOAP-ENV:Envelope>
)ðcid:id0http://schemas.xmlsoap.org/soap/envelope/<?xml
version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org
/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns3="http://systinet.com/wsdl/java/lang/"
xmlns:ns1="http://www.amazon.com/merchants/merchant-interface/"
xmlns:ns2="http://systinet.com/xsd/SchemaTypes/">
<SOAP-ENV:Body>
<ns2:merchant xsi:type="ns1:Merchant">
<ns1:merchantIdentifier>xxxxxx</ns1:merchantIdentifier>
<ns1:merchantName>[email protected]</ns1:merchantName>
</ns2:merchant>
<ns2:messageType>_POST_PRODUCT_DATA_</ns2:messageType>
<ns2:doc href="productdata.xml"/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
productdata.xml
--MIME_boundary
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: base64
Content-ID: <http://xxxxxx.de/productdata.xml>
Content-Location: productdata.xml
<asd></asd>
--MIME_boundary--