Web services Coldfusion Web服务响应问题

Web services Coldfusion Web服务响应问题,web-services,coldfusion,Web Services,Coldfusion,我最近开发的Web服务有一个问题。 问题在于Web服务响应。更准确地说,有时Web服务会发回以下响应: <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:B

我最近开发的Web服务有一个问题。 问题在于Web服务响应。更准确地说,有时Web服务会发回以下响应:

<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>

相反,正确的响应(有时以间歇方式出现)报告如下:

<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>

0
1.
F
M
英格尔人
意大利语
CFCComponentSkeleton来自哪里?
我提前向大家表示感谢。

听起来可能是缺少了方法。当你点击一个CFC而没有传递一个方法时,你会得到描述符——CFC方法的HTML视图。当您在URL中使用?wsdl执行此操作时,它应该将wsdl发回。但也许有什么东西挡住了去路。也许可以检查您的web服务器日志,看看URL中是否传递了奇怪的内容。此外,还可以考虑在CFC中添加一些日志记录

我检查了CF和Web服务器的日志文件,但找不到任何有用的东西。WS现在发回一个与我上面报告的不同的响应:。。。。soapenv:Server.userException coldfusion.xml.rpc.cfccinvocationexception:[java.lang.ClassCastException:usermanagerwstest.UserInfo2]。。。。UserInfo2是一个包含一些标记的cfc。Ws安装在许多服务器上,但抛出ClassCastXpetion的方法在每台服务器上都不同。