Ben bugün bir tuhaf biri geldi, böyle gider:
I'm setting up test suites for QAing a web service of mine, which is written in PHP5 - making use of the class SoapFault among others.
Ben müşterilerine hata iletisini geri dönmek sınıfını kullanın. Örnek:
if (!$this->CheckHost(getenv('REMOTE_ADDR')))
{
return new SoapFault(S_CLIENT, S_STRING_IP, "", S_DETAIL_IP);
}
Istemci yetkili değilse bir SoapFault dönersek ...
Now, if I add an Schema Compliance assertion in soapUI 3.0.1 it tells me that the returned message is not compliant to it's wsdl file.
The WSDL-file is written by me and does in deed not contain a description of the actual SoapFault class. Would that be needed? Thought not because SoapFault is spezified in Soap 1.1 anyways.
Gerçek cevap bu gibi görünüyor:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>ERR_102</faultstring>
<faultactor/>
<detail>IP error message</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
SoapUI hata iletisi:
Element 'detail' with element-only content type cannot have text content.
Herkes yanlış yapıyorum ne bir ipucu var mı?
tia
K