Hi,
I have average experience with SOAP but there is just one thing which is
driving me crazy: Receiving DIME attachments and converting them into a
file. I have to receive multiple (10) images from a server that sends a
response with information about those images. Here is how a response looks
like:
-------------------------------------------------------------------------------------------------------------------------------------
HTTP/1.1 100 Continue
Server: Microsoft-IIS/5.0
Date: Thu, 12 May 2005 13:53:07 GMT
Set-Cookie:
NVM_ID=213.84.24.229-3984007392.29710073::5AE3F422123123123DE382C676405394DAF;
path=/; expires=Sat, 10-May-2014 13:53:08 GMT
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Thu, 12 May 2005 13:53:09 GMT
Connection: close
Cache-Control: private, max-age=0
Content-Type: application/dime
Content-Length: 342728
Set-Cookie: NVM_ID=hidden; path=/; expires=Sat, 10-May-2014 13:53:10 GMT
) ) Zuuid:13dc31de-11c3-4c70-9a75-df7ff06005cc
http://schemas.xmlsoap.org/soap/envelope/
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<wsu:Timestamp xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility">
<wsu:Created>2005-05-12T13:53:10Z</wsu:Created>
<wsu:Expires>2005-05-12T13:58:10Z</wsu:Expires>
</wsu:Timestamp>
</soap:Header>
<soap:Body>
<NVMWebServiceResponse xmlns="http://hidden.nl/webservices/">
<NVMWebServiceResult>
<?xml version="1.0" encoding="UTF-8"?>
<eno:enveloppe xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:eno="http://hidden/enveloppeOutbound" ontvangstID=""
kenmerkNVM="hidden">
<eno:Response isSucces="1" OntvangstID="hidden" KenmerkZender="Test
Wonen versie 1.1" xmlns:woResponse="http://hidden/woResponse">
<Object>
<Medium>
<MediaID>1</MediaID>
<FileNaam>0502610269001e0000039301.jpg</FileNaam>
<Omschrijving>Omschrijving pic 1</Omschrijving>
<MediaGroep>Beeld</MediaGroep>
<MediaMimeType>jpg</MediaMimeType>
<IsHoofdMedia>ja</IsHoofdMedia>
</Medium>
<Medium>
<MediaID>2</MediaID>
<FileNaam>0502610269002e0000039300.jpg</FileNaam>
<Omschrijving>Omschrijving pic 1</Omschrijving>
<MediaGroep>Beeld</MediaGroep>
<MediaMimeType>jpg</MediaMimeType>
<IsHoofdMedia>nee</IsHoofdMedia>
</Medium>
--- cut ----
</Object>
</eno:Response>
</eno:enveloppe>
</NVMWebServiceResult>
</NVMWebServiceResponse>
</soap:Body>
</soap:Envelope>
L
?1acc5ec5-716b-4c71-a179-7136a1074720_WO_Beeld_1_0502610269001e0000039301.jpgimage/jpegÿØÿàJFIF,,ÿþCreated
by AccuSoft Corp.ÿÛC $.'
",#(7),01444'9=82<.342ÿÛC
2!!22222222222222222222222222222222222222222222222222ÿÀ"^"ÿÄÿÄS
!1AQ"aq2?'¡#B±ÁÑRbrCáð$3S,'¢²ñ4Dsf"%6Tc"£ÂÒâ'5EUtÿÄÿÄ'!1AQ"aBR2qÿÚ
----- cut -----
-------------------------------------------------------------------------------------------------------------------------------------
After the envelope I get a bunch of weird characters, which I think it's
encoded DIME. When I decode it, I get a a lot of binary data like:
" 00053cf03635376463373031303462663439666564383561333763356232636463653465"
and so on.
My question is, what do I have to do with this data to get some nice images.
I have used PEAR SOAP (with Net_DIME) and NuSOAP. Other solutions are
welcome either. I just need to get this thing to work.
Thanks in advance,
Paul de Winter
--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php