Foros del Web » Programación para mayores de 30 ;) » .NET »

duda vb2008 express con webservice php

Estas en el tema de duda vb2008 express con webservice php en el foro de .NET en Foros del Web. hola maestros tengo una duda en conectarme en vb2008 con webservice php script sever php <? error_reporting(0); require_once("nusoap.php"); $ns="http://localhost/WEBSERVICE/nusoap/lib"; $server = new soap_server(); $server->configureWSDL('hola',$ns); $server->wsdl->schemaTargetNamespace=$ns; ...
  #1 (permalink)  
Antiguo 15/07/2010, 09:23
Avatar de mveraa  
Fecha de Ingreso: diciembre-2002
Ubicación: santiago-chilito
Mensajes: 1.931
Antigüedad: 21 años, 3 meses
Puntos: 2
duda vb2008 express con webservice php

hola maestros tengo una duda en conectarme en vb2008 con webservice php

script sever php

<?
error_reporting(0);
require_once("nusoap.php");
$ns="http://localhost/WEBSERVICE/nusoap/lib";

$server = new soap_server();
$server->configureWSDL('hola',$ns);
$server->wsdl->schemaTargetNamespace=$ns;

$server->register('hola',array('user' => 'xsd:string'),array('return' => 'xsd:string'),$ns);

function hola($user)
{
//$taxcalc=$amount*.15;
//return new soapval('return','string',$taxcalc);

return "Hola $user";

}

$server->service($HTTP_RAW_POST_DATA);
?>


ahora esto pongo en vb2008

Dim a As New ServiceReference1.holaPortTypeClient
Dim equipo As String
Dim a1 As String


a1 = Str((a.hola("j")))
MsgBox(a1)



me da este error
The content type text/xml; charset=ISO-8859-1 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 530 bytes of the response were: '<?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: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><ns1:holaResponse xmlns:ns1="http://localhost/WEBSERVICE/nusoap/lib"><return xsi:type="xsd:string">Hola j</return></ns1:holaResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>'.

y a1 esta en "nothing"

gracias por la orientacion.
__________________
"Cuando se adelanta un oponente, enfréntalo y salúdalo; si intenta retroceder, déjalo seguir su camino"
  #2 (permalink)  
Antiguo 17/07/2010, 18:00
Avatar de gedarufi  
Fecha de Ingreso: diciembre-2008
Ubicación: Colombia
Mensajes: 540
Antigüedad: 15 años, 4 meses
Puntos: 22
Respuesta: duda vb2008 express con webservice php

Dale click derecho en tu proyecto y luego le das agregar referencia web, en la ventana emergente ingresas la dirección del servicio y con eso ya deberias de poder conectarte a el, independiente de en que lenguaje esta escrito.

Saludos

Etiquetas: express, php, vb, webservice
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:05.