Groups > Borland > Dellphi web services soap > Re: WDSL Importer =?ISO-8859-1?Q?don=B4t_worked_when_neede?=




WDSL Importer =?ISO-8859-1?Q?don=B4t_worked_when_needed_?=

WDSL Importer =?ISO-8859-1?Q?don=B4t_worked_when_needed_?=
Fri, 28 Mar 2008 17:45:41 -040
Hi,

Iam need to import the WSDL schema from this site:

https://homologacao.sefaz.mt.gov.br/nfews/NfeStatusServico?wsdl

The certificate is solicited when that to import but the result is ever 
a error "Empty Document". I see in the CodeGear the article about the

correction to the problem, but don´t worked.

I use the Delphi 7.

Post Reply
Re: =?utf-8?Q?WDSL_Importer_don=C2=B4t_worked_w?=
Sat, 29 Mar 2008 08:58:57 +010
On Fri, 28 Mar 2008 22:45:41 +0100, Caio Oliveira  
<news@caiosistemas.com.br> wrote:

> Hi,
>
> Iam need to import the WSDL schema from this site:
>
> https://homologacao.sefaz.mt.gov.br/nfews/NfeStatusServico?wsdl
>
> The certificate is solicited when that to import but the result is ever  
> a error "Empty Document". I see in the CodeGear the article about
the  
> correction to the problem, but don´t worked.

Have you tried downloading the WSDL manually and importing it from the  
local copy?

Post Reply
Re: WDSL Importer don´t worked when needed certificate
Tue, 1 Apr 2008 11:36:54 -0800
Hello,

While the importer generates a factory method that refers to the location of
the WSDL, this is really not important as your client will (should) talk to
the service endpoint directly without going through the WSDL at runtime.

IOW, the importer generates something that looks like this:

function GeteBayAPIInterface(UseWSDL: Boolean; Addr: string; HTTPRIO:
THTTPRIO): eBayAPIInterface;
const
  defWSDL = 'http://developer.ebay.com/webservices/latest/eBaySvc.wsdl';
  defURL  = 'https://api.ebay.com/wsapi';
  defSvc  = 'eBayAPIInterfaceService';
  defPrt  = 'eBayAPI';
var
  RIO: THTTPRIO;
begin


The 'defWSDL' above shows where the WSDL was found. What matters is the
'defURL' value. That's the service that we'll talk to. If once it's
deployed, the service has a new URL, you can update defURL. The rest
(defWSDL, defSvc, defPrt) is there for backward compatibility with D6 (where
you had to use the WSDL unless the service was a Delphi service). For
post-D6 code, you can ignore these values.

Cheers,

Bruneau

Post Reply
Re: WDSL Importer =?UTF-8?B?ZG9uwrR0IHdvcmtlZCB3aGVuIG5lZWRlZCBj?=
Tue, 01 Apr 2008 12:56:28 -040
Hi,

Yes, I did it. But it was not sure that would be true when put into 
production.

After Import change the URL for the original value of the server:

Importing
---------
have Put the WSDL the server in question in the browser and then saved 
as a local file:

URL (local): "c:\myapplication\NfeStatusServico.xml"

After Import
------------
Change the value of a URL for the original value
URL (server): 
"https://homologacao.sefaz.mt.gov.br/nfews/NfeStatusServico?Wsdl"

But when in production? No problem? The certificate validity, as stay?

Thanks!

Ps. Sorry for my English

Stefan M. Huber escreveu:
> On Fri, 28 Mar 2008 22:45:41 +0100, Caio Oliveira 
> <news@caiosistemas.com.br> wrote:
> 
>> Hi,
>>
>> Iam need to import the WSDL schema from this site:
>>
>> https://homologacao.sefaz.mt.gov.br/nfews/NfeStatusServico?wsdl
>>
>> The certificate is solicited when that to import but the result is 
>> ever a error "Empty Document". I see in the CodeGear the
article about 
>> the correction to the problem, but don´t worked.
> 
> Have you tried downloading the WSDL manually and importing it from the 
> local copy?
> 
Post Reply
Re: WDSL Importer =?ISO-8859-1?Q?don=B4t_worked_when_neede?=
Sat, 05 Apr 2008 13:08:44 -040
Thanks!


Jean-Marie Babet escreveu:
> Hello,
> 
> While the importer generates a factory method that refers to the location
of
> the WSDL, this is really not important as your client will (should) talk
to
> the service endpoint directly without going through the WSDL at runtime.
> 
> IOW, the importer generates something that looks like this:
> 
> function GeteBayAPIInterface(UseWSDL: Boolean; Addr: string; HTTPRIO:
> THTTPRIO): eBayAPIInterface;
> const
>   defWSDL = 'http://developer.ebay.com/webservices/latest/eBaySvc.wsdl';
>   defURL  = 'https://api.ebay.com/wsapi';
>   defSvc  = 'eBayAPIInterfaceService';
>   defPrt  = 'eBayAPI';
> var
>   RIO: THTTPRIO;
> begin
> 
> 
> The 'defWSDL' above shows where the WSDL was found. What matters is the
> 'defURL' value. That's the service that we'll talk to. If once it's
> deployed, the service has a new URL, you can update defURL. The rest
> (defWSDL, defSvc, defPrt) is there for backward compatibility with D6
(where
> you had to use the WSDL unless the service was a Delphi service). For
> post-D6 code, you can ignore these values.
> 
> Cheers,
> 
> Bruneau
> 
Post Reply
about | contact