Weblogic - 使用测试客户端测试SOAP Web服务
问题描述:
我已使用JDeveloper 11g
中的Web Services Wizard
创建了PL/SQL SOAP Web Service
。我能够在Integrated Weblogic Server
上成功部署它。之后,我可以在浏览器中启动Weblogic Test Client
。Weblogic - 使用测试客户端测试SOAP Web服务
我然后部署Web服务到EAR使用部署档案,用于web服务应用程序(使用JDeveloper)创建。 使用此EAR将服务部署到远程开发weblogic受管服务器(注意:我正在使用Weblogic 10.3.5.0
)。
部署成功,我也能够启动应用程序。部署状态为“活动”,健康状态为“正常”。 我也能够看到我的web服务的动态WSDL。
这是我遇到问题的地方。 我无法使用Weblogic测试客户端测试Web服务。当我点击Web服务测试点时,出现404 Not Found
错误。
有没有人有启动测试客户端相同的问题?
感谢您的意见/建议!
答
让自己的测试脚本肥皂:
<?php
if(isset($_POST['request'])){
$XML = $_POST['request'];
$URL = $_POST['url'];
$ch = curl_init("$URL");
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_TIMEOUT, 60);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch,CURLOPT_POSTFIELDS,$XML);
$result=curl_exec ($ch);
curl_close($ch);
}
?>
<form method="post" style="margin: 0; padding: 0;">
<input name='url' type="text" placeholder="URL here" value="<?php if(isset($_POST['url'])) echo $_POST['url']; ?>" style="height: 10%; width:90%">
<button style="width: 10%; height: 10%;">LOAD SOAP</button><br />
<textarea style="width: 50%; height:90%;" placeholder='REQUEST HERE' name="request"><?php if(isset($_POST['request'])) echo $_POST['request']; ?></textarea>
<textarea placeholder="RESPONSE HERE" disabled="true" style="width: 50%; height:90%;"><?php if(isset($result)) echo $result; ?></textarea>
</form>