Re: [SOAP] Attachment to AXIS
| From: | Sacha Matasci | Date: | Fri, 24 Sep 2004 21:12:51 +0000 |
| Subject: | Re: [SOAP] Attachment to AXIS | ||
| References: | 1 2 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1624@lists.php.net to get a copy of this message | ||
I try the change but it doesn't function.
I don't no why.
If I call the WebService with a Java Classes where I build the envelope with
specific method it function.
It seem that the function SOAP_Attach do nothing.
Regards.
Sacha
P.S.
This is the Envelope build by Pear:Soap
<?xml version="1.0" encoding="UTF-8"?>
<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:ns4="http://JobSchedulerServer">
<SOAP-ENV:Body>
<ns4:submitJob/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
This is the Envelope build by the Java AXIS API
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:submitJob
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="JobScheduler"/> </soapenv:Body>
</soapenv:Envelope> ------=_Part_0_15272259.1096060083162 Content-Type:
application/octet-stream Content-Transfer-Encoding: binary Content-Id:
<7737D91D349CF852AFD9C06C4B0BDBAD> ?PNG
"Christian Wenz" <christian@wenz.org> ha scritto nel messaggio
news:41544570.1020407@wenz.org...
> Hi,
>
> I haven't tried it with Axis, but try replacing
>
>> $v = new
>> SOAP_Attachment(basename($_FILES['userfile']['name']),
>> 'text/plain',
>> $uploadfile);
>
> by
>
> $v = new
> SOAP_Attachment(basename($_FILES['userfile']['name']),
> 'text/plain',
> $_FILES['userfile']['tmp_name']);
>
> Regards
> Christian
>
>
>
> --
> http://www.hauser-wenz.de/
> http://www.hauser-wenz.de/blog/