Sou iniciante em php e estou tendo dificuldades para conectar num webservice feito em java através do SOAP, segue o código e o erro apresentado: Código: <?php
include_once 'MessageInBulk.php';
include_once 'PhoneInBulk.php';
include_once 'MessageInBulkResponse.php';
include_once 'PhoneInBulkResponse.php';
echo "Tipo: ".$_POST[tipo];
echo "<br />";
echo "Mensagem: ".$_POST[mensagem];
echo "<br />";
echo "Arquivo: ".$_POST[arquivo];
echo "<br />";
echo "Assunto: ".$_POST[assunto];
echo "<br />";
echo "Imagem E-Mail: ".$_POST[imagemEmail];
echo "<br />";
echo "Rementente Nome: ".$_POST[remetenteNome];
echo "<br />";
echo "Rementente Dados: ".$_POST[remetenteDado];
echo "<br />";
echo "Destinatario Nome: ".$_POST[destinatarioNome];
echo "<br />";
echo "Destinatario Dados: ".$_POST[destinatarioDado];
echo "<br />";
echo "<br />";
echo "<br />";
echo "<br />";
$login = "admin";
$password = "admin";
$idProject = 9;
$objPhone1 = new PhoneInBulk(null, $_POST[destinatarioDado]);
$listaObjPhone = array();
$listaObjPhone[0] = $objPhone1;
$mensagem = $_POST[mensagem];
$mensagem = str_replace("#dest#", " ".$_POST[destinatarioNome], $mensagem);
$mensagem = str_replace("#remet#", $_POST[remetenteNome], $mensagem);
$objMesssage1 = new MessageInBulk(null, $listaObjPhone, $mensagem);
$listaObjMessage = array();
$listaObjMessage[0] = $objMesssage1;
$i = 0;
foreach ($listaObjMessage as $value) {
echo "Objeto: ".$i;
echo "<br />";
echo " Menssagem texto: ".$value->getTextMessage();
echo "<br />";
echo " Data: ".$value->getDateSchedule();
echo "<br />";
echo " Lista de Telefones: Qtde(".count($value->getlistPhone()).")";
echo "<br />";
$i2 = 0;
foreach ($value->getlistPhone() as $value2) {
echo " Telefone ".$i2;
echo "<br />";
echo " Nº Telefone: ".$value2->getPhone();
echo "<br />";
echo " Data: ".$value2->getDateSchedule();
echo "<br />";
$i2++;
}
echo "<br />";
echo "<br />";
$i++;
}
$url = "http://200.182.98.153:8083/smsIntegrationCenter/soap/messageService?wsdl";
$client = new SoapClient($url);
$param=array('messages'=>$listaObjMessage,'idProject'=>$idProject,'login'=>$login,'password'=>$password);
$result = $client->__soapCall("SendMessageInBulk", $param);
echo $result;
?> Erro: Tipo: 1 Mensagem: Olá #dest#, esta notícia foi enviada por #remet#. Parabéns, e muitas felicidades! Arquivo: Assunto: Imagem E-Mail: Rementente Nome: teste Rementente Dados: 4391427036 Destinatario Nome: teste Destinatario Dados: 4391427036 Objeto: 0 Menssagem texto: Olá teste, esta notícia foi enviada por teste. Parabéns, e muitas felicidades! Data: Lista de Telefones: Qtde(1) Telefone 0 Nº Telefone: 4391427036 Data: Warning: SoapClient::SoapClient(http://200.182.98.153:8083/smsIntegrationCenter/soap/messageService?wsdl) [soapclient.soapclient]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\integracaoSMS\sendNews.php on line 76 Warning: SoapClient::SoapClient() [soapclient.soapclient]: I/O warning : failed to load external entity "http://200.182.98.153:8083/smsIntegrationCenter/soap/messageService?wsdl" in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\integracaoSMS\sendNews.php on line 76 Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\integracaoSMS\sendNews.php on line 82