向每一个人致以问候。
我正在尝试通过WSDL将一个应用程序与Taleo集成。一切都很好,但在一个请求中,我们得到了这个异常这是提交请求,假设是
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:urn="urn:TBEWebAPI">
<soapenv:Header/>
<soapenv:Body>
<urn:submitCandidate>
<in0>session-idxxxxxx</in0>
<in1>48</in1>
<in2>
<array>
<!--Zero or more repetitions:-->
<item>15</item>
</array>
</in2>
</urn:submitCandidate>
</soapenv:Body>
</soapenv:Envelope>
它给出错误org.xml.ax.SAXException:错误类型(int->long)
[faultcode] => soapenv:Server.userException
[faultstring] => org.xml.sax.SAXException: Bad types (int -> long)
我正在使用NuSoap。让我知道调试是否还需要其他东西。
感谢
尝试发送类似的参数
$some_ids = array(123 , 1233);
$params = array( "in0" => $in0,
"in1" => $in1,
"in2" => array('array' => $some_ids ) );
同样在call
中,将最后一个参数设置为literal
,我认为这应该有助于