J'ai un problème avec le service Web que j'ai récemment développé. Le problème concerne la réponse du service Web. Plus précisément, parfois le service Web renvoie la réponse suivante:Problème de réponse du service Web Coldfusion
<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:GetConstants2Response soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://usermanagerwstest">
<GetConstants2Return xsi:type="ns2:CFComponentSkeleton" xmlns:ns2="http://rpc.xml.coldfusion"/>
</ns1:GetConstants2Response>
</soapenv:Body>
</soapenv:Envelope>
Au lieu de cela la réponse correcte (qui montre parfois de façon intermittente) est indiqué ci-dessous:
<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:GetConstants2Response soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://usermanagerwstest">
<GetConstants2Return xsi:type="ns1:Constants2">
<BooleanTypeFalse xsi:type="xsd:string">0</BooleanTypeFalse>
<BooleanTypeTrue xsi:type="xsd:string">1</BooleanTypeTrue>
<GenderFemale xsi:type="xsd:string">F</GenderFemale>
<GenderMale xsi:type="xsd:string">M</GenderMale>
<LanguageEnglish xsi:type="xsd:string">inglese</LanguageEnglish>
<LanguageItalian xsi:type="xsd:string">italiano</LanguageItalian>
</GetConstants2Return>
</ns1:GetConstants2Response>
</soapenv:Body>
</soapenv:Envelope>
Lorsque le CFCComponentSkeleton ne vient ? Je remercie tout le monde à l'avance.
J'ai vérifié les fichiers journaux de CF et du serveur Web, mais je n'ai rien trouvé d'utile. Le WS envoie maintenant de retour une réponse différente de celle que j'indiqué ci-dessus: .... soapenv: Server.userException coldfusion.xml.rpc.CFCInvocationException: [java.lang.ClassCastException: usermanagerwstest.UserInfo2] faultstring> .... UserInfo2 est un cfc contenant une balise . Le Ws est installé sur de nombreux serveurs, mais les méthodes qui lancent ClassCastExcpetion sont différentes sur chaque serveur. –
Voyez-vous quelque chose dans les journaux d'exceptions? –