logo       

Attachments help-newbie questions: msg#00130

php.nusoap.general

Subject: Attachments help-newbie questions

Hi,

I'm sorry if this is a repeat of another post and has been asked before, but I
have tried going through the archives and am still in need of help.

Whenever I try to send a SOAP request with an attachment I get the response:

Array ( [faultcode] => Server [faultactor] => [faultstring] => error in msg
parsing: XML error parsing SOAP payload on line 1: not well-formed (invalid
token) [detail] => Array ( [soapVal] => ) )



Can anybody point me towards some example scripts/tutorials that might shed
light on where I am going wrong?

If it helps, here is an example of the request:


POST /EU/testServer.php HTTP/1.1
User-Agent: NuSOAP/0.6.7 (1.75)
Host: localhost
Content-Type: multipart/related; boundary="=_c8d7de91b85449e3f17a52dce5d75c67"
SOAPAction: ""
Content-Length: 947
--=_c8d7de91b85449e3f17a52dce5d75c67
Content-Type: text/xml; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:si="http://soapinterop.org/xsd";><SOAP-ENV:Body><ns1:sendPackage
xmlns:ns1="http://testuri.org";><name
xsi:type="xsd:string">Scott</name></ns1:sendPackage></SOAP-ENV:Body></SOAP-ENV:Envelope>

--=_c8d7de91b85449e3f17a52dce5d75c67
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="./testfile.txt"
Content-ID: <edef497bf1f73078d3ea63356a731ac6>

aGVsbG8gZXZlcnlvbmUK

--=_c8d7de91b85449e3f17a52dce5d75c67--


Regards
Jonathan


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise