![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
15/07/2010, 09:23
|
![Avatar de mveraa](http://static.forosdelweb.com/customavatars/avatar29282_1.gif) | | | Fecha de Ingreso: diciembre-2002 Ubicación: santiago-chilito
Mensajes: 1.931
Antigüedad: 22 años, 1 mes 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" |