RE: [xml-l] Fwd: ¿funcionan location usando wsdl import en .net?

intenta configurar el servidor web91 en el archivo hosts que se encuentra en C:\Windows\System32\drivers\etc

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1       localhost
# ::1             localhost

192.168.xxx.xxx    web91 
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

si puedes hacerle un ping directo a web91 esta bien configurado.


Date: Mon, 4 Mar 2013 14:06:30 -0500
From: ateneam2013@gmail.com
To: xml-l@gxtech.com.uy
Subject: Re: [xml-l] Fwd: ¿funcionan location usando wsdl import en .net?

Hola, gracias por responderme, tengo exactamente el codigo como me lo muestras Gabriel:
&Location = Getlocation("RI_Address")
&location.Host = "web91"
&location.Port = 86
&location.BaseURL = '/DV910/'
// &location.ResourceName = "RI_Address"
&location.Timeout = 60
&location.Secure = 1
&location.Authentication = 1
&location.AuthenticationMethod = 1
&location.AuthenticationUser = "xxxxx"
&location.AuthenticationPassword = "xxxxx"
&location.CancelOnError = 2
&SoapErrCod = GetSOAPErr()
Msg(&SoapErrCod.ToString())
if &SoapErrCod <> 0
&SoapErrMsg = "Error del WS" + str(&SoapErrCod) + "-" + GetSOAPErrMsg()
Msg(&SoapErrMsg)
else
Msg('No hubo error de conexion')
endif
 


El 4 de marzo de 2013 13:41, Gabriel Omar Guayaswest <gabrielomar86@hotmail.com> escribió:
yo configuro la variable location asi:

Objeto Externo = EOConsultaDocumentos
http:// 192.168.xxx.xxx:8182 / webservices_externo / consultaDocumentos ? wsdl

& location              = getlocation( 'EOConsultaDocumentos' ) // documentos
& location.host       = 192.168.xxx.xxx
& location.port       = 8182
& location.BaseUrl  = /webservices_externo/

me funciona bastante bien....

también deberías verificar la configuración del proxy, eso lo tendrías que hacer en el web.config


From: ecarle2@adinet.com.uy
To: xml-l@gxtech.com.uy
Date: Mon, 4 Mar 2013 16:29:32 -0200
Subject: RE: [xml-l] Fwd: ¿funcionan location usando wsdl import en .net?


Estoy casi con el mismo problema,
Primero: fijate si el WSDL, te queda bien armado,  me ha pasado que  en la parte de Binding, responde con otra IP (o url), y luego por supuesto, nunca lo encuentra el webservice.
Esto podes cambiarlo en las propiedades del WS en la propiedad  de Address
 
Saludos
Esteban Carle
 
 
De: Mariana Martin [mailto:ateneam2013@gmail.com]
Enviado el: lunes, 04 de marzo de 2013 02:54 p.m.
Para: xml-l@gxtech.com.uy
Asunto: [xml-l] Fwd: ¿funcionan location usando wsdl import en .net?

 
Hola foro!
 
¿Les ha funcionado en GXEv2 Upg. 2 generando en .Net Web, importar un WSDL externo (no hecho con GX) y tratar de usarlo desde un webpanel mediante el uso de una variable de tipo location?, pues probe el mismo webservice por soapui y me funciona perfecto, para un valor especifico me retorna los valores que necesito... pero en GX no...siempre me genera el error :
 
-20007-Invalid location name.
 
Al importar el webservice me pide que nombre (name) ponerle ('NombreWS'), el cual uso con Getlocation ('NombreWS') con la variable location, pero siempre obtengo el mismo error...
 
¿Alguna idea? o ¿si les funciona?
 
Gracias!

0 Response to "RE: [xml-l] Fwd: ¿funcionan location usando wsdl import en .net?"

Publicar un comentario