Re: php5 soap deserializer error
| From: | dtra | Date: | Thu, 15 Sep 2005 02:27:03 +0000 |
| Subject: | Re: php5 soap deserializer error | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2004@lists.php.net to get a copy of this message | ||
apologies for the last post, for some reason didn't copy everything
the tech guys at the other company reckon it has something to do with ns3, they tell us to point to the wsdl file under https
which we do, and it works fine for some other soap calls (that don't use ns3)
but with the destinationAddressSet array in this particular call, it is reading the ns3 into the request, and they think that is the problem
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://webservice.components.soap.server.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="urn:types.api.soapserver.com" xmlns:ns3="http://devserver.telco.com.au/axis/services/soapserver" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/en
coding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:sendSms><in0 xsi:type="xsd:string">clientname</in0><in1 xsi:type="xsd:string">56023231</in1><in2 xsi:type="xsd:anyURI">http://srv1255.conexim.com.au/service/index.phpstringpermid</in2><in3 xsi:type="ns2:SingleItemPurchase"><o
rderDate xsi:type="xsd:dateTime">2005-09-15T02:03:15.315Z</orderDate><contentClassification xsi:nil="1"/><amount xsi:type="xsd:decimal">0</amount><requestMethod xsi:type="xsd:string">2</requestMethod><referenceCode xsi:nil="1"/><sessionToke
n xsi:type="xsd:string">*9u4SbGt48zvlmnyYsvDIkPWyYAeGFTUI</sessionToken><deliveryMethod xsi:nil="1"/><cpAccountId xsi:type="xsd:string">clientname</cpAccountId><currency xsi:type="xsd:string">AUD</currency><orderSubmitDate xsi:type="xsd:dateTime">2005-09-15T02:03:15.315Z</orderSubmitDate><productCode xsi:type="xsd:string">client_SubsAdvice</productCode><parameters xsi:nil="1"/><productDescriptionxsi:type="xsd:string">client on service access</productDescription></in3><in4 xsi:type="ns2:Sms"><destinationAddressSet SOAP-ENC:arrayType="xsd:string[1]" xsi:type="ns3:ArrayOf_xsd_string"><item xsi:type="xsd:string">*9u4SbGt48zvlmnyYsvDIkPWyYAeGFTUI</item></destinationAddressSet><senderName xsi:type="xsd:string">0421262307</senderName><message xsi:type="xsd:string">Hello, your clientname service subscription will
be charged in the next few days, visit http://www.clientname.com/service/subscribe/unsubscribe.php to unsubscribe</message><encoding xsi:type="xsd:string">TEXT</encoding></in4></ns1:sendSms></SOAP-ENV:Body></SOAP-ENV:Envelope><?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> <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>org.xml.sax.SAXException: No deserializer for {http://devserver.telco.com.au/axis/services/soapserver}ArrayOf_xsd_string</faultstring> <detail/> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope> object(SoapFault)#4 (9) { ["message:protected"]=> string(0) "" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(60) "/home/www/clientname/service/cron/cron-subscribe-reminder.php" ["line:protected"]=> int(52) ["trace:private"]=> array(2) {
[0]=>
array(6) {
["file"]=>
string(60) "/home/www/clientname/service/cron/cron-subscribe-reminder.php"
["line"]=>
int(52)
["function"]=>
string(6) "__call"
["class"]=>
string(10) "SoapClient"
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
string(7) "sendSms"
[1]=>
array(5) {
[0]=>
string(13) "clientname"
[1]=>
string(8) "56023231"
[2]=>
string(55) "http://srv1255.conexim.com.au/service/index.phpstringpermid"
[3]=>
object(SingleItemPurchase)#2 (15) {
["orderDate:private"]=>
string(24) "2005-09-15T02:03:15.315Z"
["ContentClassification:private"]=>
NULL
["deliveryMethod:private"]=>
NULL
["amount:private"]=>
float(0)
["requestMethod:private"]=>
string(1) "2"
["referenceCode:private"]=>
NULL
["sessionToken:private"]=>
string(33) "*9u4SbGt48zvlmnyYsvDIkPWyYAeGFTUI"
["cpAccountId:private"]=>
string(13) "clientname"
["currency:private"]=>
string(3) "AUD"
["orderSubmitDate:private"]=>
string(24) "2005-09-15T02:03:15.315Z"
["productCode:private"]=>
string(14) "client_SubsAdvice"
["parameters:private"]=>
NULL
["ProductDescription:private"]=>
NULL
["contentClassification"]=>
NULL
["productDescription"]=>
string(17) "client on service access"
}
[4]=>
object(SmsDelivery)#3 (4) {
["destinationAddressSet:private"]=>
array(1) {
[0]=>
string(33) "*9u4SbGt48zvlmnyYsvDIkPWyYAeGFTUI"
}
["senderName:private"]=>
string(10) "0421262307"
["encoding:private"]=>
string(4) "TEXT"
["message:private"]=>
string(164) "Hello, your clientname service subscription will be charged in the next few days,
visit http://www.clientname.com/service/subscribe/unsubscribe.php to unsubscribe"
}
}
}
}
[1]=>
array(6) {
["file"]=>
string(60) "/home/www/clientname/service/cron/cron-subscribe-reminder.php"
["line"]=>
int(52)
["function"]=>
string(7) "sendSms"
["class"]=>
string(10) "SoapClient"
["type"]=>
string(2) "->"
["args"]=>
array(5) {
[0]=>
string(13) "clientname"
[1]=>
string(8) "56023231"
[2]=>
string(55) "http://srv1255.conexim.com.au/service/index.phpstringpermid"
[3]=>
object(SingleItemPurchase)#2 (15) {
["orderDate:private"]=>
string(24) "2005-09-15T02:03:15.315Z"
["ContentClassification:private"]=>
NULL
["deliveryMethod:private"]=>
NULL
["amount:private"]=>
float(0)
["requestMethod:private"]=>
string(1) "2"
["referenceCode:private"]=>
NULL
["sessionToken:private"]=>
string(33) "*9u4SbGt48zvlmnyYsvDIkPWyYAeGFTUI"
["cpAccountId:private"]=>
string(13) "clientname"
["currency:private"]=>
string(3) "AUD"
["orderSubmitDate:private"]=>
string(24) "2005-09-15T02:03:15.315Z"
["productCode:private"]=>
string(14) "client_SubsAdvice"
["parameters:private"]=>
NULL
["ProductDescription:private"]=>
NULL
["contentClassification"]=>
NULL
["productDescription"]=>
string(17) "client on service access"
}
[4]=>
object(SmsDelivery)#3 (4) {
["destinationAddressSet:private"]=>
array(1) {
[0]=>
string(33) "*9u4SbGt48zvlmnyYsvDIkPWyYAeGFTUI"
}
["senderName:private"]=>
string(10) "0421262307"
["encoding:private"]=>
string(4) "TEXT"
["message:private"]=>
string(164) "Hello, your clientname service subscription will be charged in the next few days,
visit http://www.clientname.com/service/subscribe/unsubscribe.php to unsubscribe"
}
}
}
}
["faultstring"]=>
string(121) "org.xml.sax.SAXException: No deserializer for {http://devserver.telco.com.au/axis/services/soapserver}ArrayOf_xsd_string"
["faultcode"]=>
string(28) "soapenv:Server.userException"
["detail"]=>
string(0) ""
}
thanks
dave