Problem importing reference to EZ Commerce webservice

0

Hello,

I wonder if anyone has already imported settings for EZ Commerce integration webs directly into Genexus.

My problem is that EZ Commerce webservices require authentication (ClientCredentials), and in the Genexus WSDL Import option, it does not display a screen to enter the authentication username and password.

In Visual Studio I can add the service reference without problems, the VS itself displays the screen to enter the authentication credentials.

Thanks for any help.

The details of the error that occurs to me below:

====================================

  

The remote server returned an error: (401) Unauthorized. (System)

     

------------------------------ Product = GeneXus 15 Version = 15.0.119728 U8

     

------------------------------ Program Location:

     

at System.Net.HttpWebRequest.GetResponse () at   System.Xml.XmlDownloadManager.GetNonFileStream (Uri uri, ICredentials   credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) at   System.Xml.XmlDownloadManager.GetStream (Uri uri, ICredentials   credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) at   System.Xml.XmlUrlResolver.GetEntity (Uri absoluteUri, String role, Type   ofObjectToReturn) at   System.Xml.XmlTextReaderImpl.FinishInitUriString () at   System.Xml.XmlTextReaderImpl..ctor (String uriStr, XmlReaderSettings   settings, XmlParserContext context, XmlResolver uriResolver) at   System.Xml.XmlReaderSettings.CreateReader (String inputUri,   XmlParserContext inputContext) at   System.Xml.XmlReader.Create (String inputUri, XmlReaderSettings   settings, XmlParserContext inputContext) at   Artech.GeneXus.Inspectors.WSDLInspectorDialog.getServiceReader (String   url) at   Artech.GeneXus.Inspectors.WSDLInspectorDialog.LoadWebService (String   url) at   Artech.GeneXus.Inspectors.WSDLInspectorDialog.inspectService (String   url)

     

Genexus

    
asked by anonymous 05.02.2018 / 12:50

1 answer

0

Jacson,

The best way, in this case, is to save the wsdl to a file, by the browser, and then import the file through the wsdl inspector.

In any case, you will have to change the code to authenticate by making use of the location data type.

It will look something like this: & Location = Getlocation ([ExternalServerName]) & Location.user = & user & Location.password = & password & Webservice.metodo ()

    
06.02.2018 / 02:48