Re: Attachment to AXIS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 
41544570.1020407@wenz.org">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/ 

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux