Menu
Feedback
Comece aqui
Tutoriales
Portal del desarrollador

Problemas Conocidos
Directrices de Soporte
Troubleshooting

Preguntas Frecuentes
Anuncios
Problemas Conocidos
Importación del webservice (WSDL) en HTTPS trae referencias en HTTP
Importación del webservice (WSDL) en HTTPS trae referencias en HTTP
ID:
Closed
Publicado en 6/8/2018
Última actualización 31/12/2019

Sumario

Al importar el WSDL del webservice en HTTPS (https://webservice-\[tienda].vtexcommerce.com.br/service.svc?wsdl) se muestran referencias en HTTP.

Algunos ambientes de desarrollo pueden presentar errores 401 (usuario no autorizado) por cuenta de ello, como el siguiente ejemplo de mensaje:


The document was understood, but it could not be processed.
- The WSDL document contains links that could not be resolved.
- There was an error downloading 'http://webservice-[Tienda].vtexcommerce.com.br/AdminWebService/Service.svc?xsd=xsd2'.
- The request failed with HTTP status 401: Access Denied.
Metadata contains a reference that cannot be resolved: 'https://webservice-[Tienda].vtexcommerce.com.br/service.svc?wsdl'.
The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic Realm="Please Login to VtexID"'.
The remote server returned an error: (401) Unauthorized.
If the service is defined in the current solution, try building the solution and adding the service reference again.

Simulación

En su ambiente de desarrollo, basta con importar el WSDL como en el ejemplo anterior. Aunque su autenticación esté configurada, es posible que errores de autorización se presenten para links adicionales.

Workaround

La importación y configuración de autenticación se realizaron a la dirección https://webservice-[Tienda].vtexcommerce.com.br/service.svc?wsdl, y el error se presentó a la dirección http://webservice-[Tienda].vtexcommerce.com.br/AdminWebService/Service.svc?xsd=xsd2 (que es una referencia del WSDL inicial).

Para evitar este problema, sólo hay que configurar la autenticación también para estos WSDL adicionales, o simplemente importar el WSDL inicial ya en HTTP.

Posteriormente, tenga atención en actualizar las referencias a HTTPS. Para la seguridad de la información, es esencial que los intercambios de datos sean estrictamente por HTTPS.

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
¿Todavía tienes dudas?
Pregunte a la comunidad
Encuentra solucciones y comparte ideas en la comunidad de VTEX.
Únete a nuestra comunidad
Solicite soporte a VTEX
Para asistencia personalizada, contacte a nuestros expertos.
Abra un ticket de soporte
GithubDeveloper portalCommunityFeedback