NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
dmitri,can you help me?

Joined: 28 Sep 2006
Posts: 13
Reply with quote
$header = '<MMS:TransactionId soapenv:mustUnderstand="0" xmlns:MMS="">1157962952812</MMS:TransactionId>
<MMS:Auth soapenv:mustUnderstand="0" xmlns:MMS="">
$body = '<MMS:Title xmlns:MMS="">happy new year</MMS:Title>
<MMS:Phone xmlns:MMS="">135654418888</MMS:Phone>';

$client = new soapclientmime();
$msg = $client->serializeEnvelope($body,$header);
$soap = new nusoapservermime();
$httpHeaders = $soap->headers;//http header
$attachment = $soap->getAttachments();
$attachment = serialize($attachment);

why I can not send the Attachments and receive the Attachments?thank you!
View user's profileFind all posts by macrovanSend private messageVisit poster's websiteMSN Messenger
Site Admin

Joined: 13 Jul 2003
Posts: 8097
Reply with quote

This will not work. You need a filename containing or URL pointing to WSDL. Fortunately nusoap will generate it for you if you call this script with WSDL argument. So it may look like:
$client->soapclient('', 'wsdl');
Also, if you use another default namespace ( you'd specify it in appropriate argument to serializeEnvelope() as well.

The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
dmitri,can you help me?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

 Reply to topic