Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/12/2008, 20:32
Avatar de MaLkAvIaN_NeT
MaLkAvIaN_NeT
 
Fecha de Ingreso: marzo-2005
Ubicación: trujillo
Mensajes: 141
Antigüedad: 19 años, 1 mes
Puntos: 0
Consumir WeB Service PHP desde .NET

Hola alguien me puede decir si es esto posible? por teoría con SOAP se puede tener una interoperabilidad independientemente del lenguaje de programación o el sistema operativo.

estuve probando a agregar una referencia web (web services que cree en php usando nuSoap( desde una aplicación de escritorio y me da el error:

Cita:
Error al descargar 'http://localhost/webservices/servidor.php'.

Error de la solicitud con el mensaje de error:
--
<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:
mi código es:

Código PHP:
<?php
// Pull in the NuSOAP code
require_once('lib/nusoap.php');
// Create the server instance
$server = new soap_server;
// Register the method to expose
$server->register('hello');
// Define the method as a PHP function
function hello($name) {
    return 
'Hello****, ' $name;
}
// Use the request to (try to) invoke the service
$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA '';
$server->service($HTTP_RAW_POST_DATA);
?>
alguien me dice si derrepente esta mal estructurado?
__________________
www.tecfactory.com