Question:
Date: 25-06-2021 06:58:01
(In Spanish)
NUSOAP EN CODEIGNITER4 PHP 7
https://packagist.org/packages/econea/nusoap Votes: 0 - Answers: 10 - Views: 3 Share on: Google Facebook Twitter LinkedIn Link
NUSOAP EN CODEIGNITER4 PHP 7[Unresolved]
Alguien ha configuradoNUSOAP EN CODEIGNITER4 PHP 7
https://packagist.org/packages/econea/nusoap Votes: 0 - Answers: 10 - Views: 3 Share on: Google Facebook Twitter LinkedIn Link
Answers:
-
-
Date: 25-06-2021 10:01:43 Si amigo,lo he instalado con composer quedando así el archivo conposer.json
"require": {
"php": ">=7.2",
"codeigniter4/framework": "^4",
"bshaffer/oauth2-server-php": "1.10",
"econea/nusoap": "^0.9.11"
} Votes: 0 - Link answer -
Date: 25-06-2021 10:09:14 Luego lo llamo con 'use nusoap_server;' en el controller
public function __construct()
{
helper('url');
$this->nusoap_server=new nusoap_server();
$this->nusoap_server->configureWSDL("Wsrmcorp", "urn:Wsrmcorp");
$this->nusoap_server->soap_defencoding = 'UTF-8';
$this->nusoap_server->register(
"Vigenterm", //Nombre del Metodo
array("ident" => "xsd:string", "tipoident" => "xsd:string"), // Parametros de Entrada
array("codigo" => "xsd:string", "ident" => "xsd:string", "msg" => "xsd:string"), // parametros de Salida
"urn:App\Controllers\Wswmcorp", // Nombre Namespace
"urn:App\Controllers\Wswmcorp#Vigenterm", // Soap Action
"rpc", // Style
"encoded", //
"Servicio de consulta"
);
} Votes: 0 - Link answer -
Date: 25-06-2021 10:12:02 public function index()
{
function Vigenterm($ident, $tipoident)
{
$servicio = "Servicio de consulta";
$response = "-";
$observacion = "pruebas de webservice";
}
//fin funcion vigente
$this->nusoap_server->service(file_get_contents("php://input")); //shows the standard info about service
} Votes: 0 - Link answer -
Date: 25-06-2021 10:12:40 Y en soap ui me indica este error
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode xsi:type="xsd:string">SOAP-ENV:Client</faultcode>
<faultstring xsi:type="xsd:string">method 'Vigenterm'('Vigenterm') not defined in service('' '')</faultstring>
<faultactor xsi:type="xsd:string"/>
<detail xsi:type="xsd:string"/>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope> Votes: 0 - Link answer -
Date: 26-06-2021 06:04:17 Se ve un poco raro tu código... la función Vigenterm ¿está definida dentro de index()? Votes: 0 - Link answer
-
Date: 26-06-2021 06:52:21 Si vi un ejemplo donde estaba incluida dentro de la función index también me pareció raro, también la saqué hacia afuera del index y me arroja el mismo error, es como si no encontrara el namespace, como la librería está dentro de vendor, y yo la llamo de app/controller creo que puede estar mal direccionada, le puse los namespace y sin ellos pero tampoco funciona Votes: 0 - Link answer
-
-
Date: 28-06-2021 17:42:31 Vigenterm'('Vigenterm') not defined in service('' '') Votes: 0 - Link answer
-
Date: 29-06-2021 06:16:29 ¿Podrías indicar cómo estás haciendo la llamada al WebService? Tal vez sería mejor si usaras algún otro cliente en vez de SoapUI... algo que te de más información... Votes: 0 - Link answer
To actively participate in the community first must authenticate, enter the system.Sign In