I need to talk to some web services and so I imported WSDL. Now I'm trying to call it, but it reports this exception: No Native to Message converter set
Very, very annoying, especially since I do not have permission to send code fragments from this service. However, you need to try ... Does anyone have any suggestions for fixing this error?
The error is generated in rio.pas in the TRIO.Generic function. This line:
if not Assigned(FConverter) then
raise Exception.Create(SNoMessageConverter);
For unknown reasons, FConverter is set to zero, so an exception is thrown. This happens before the request is sent. Nothing is sent to the service because Delphi crashes even before it can call the service.
WSDL import options, checked options:
- Return One Outparam
- Discard literal options
- Creating Destructors
- Warning comments
- Card row wide
- Generate Type and Interface Details
- Ignore port types with HTTP bindings
- Do not emit unused types
- Confirm enumeration types
- Import Error Types
- Types of Import Headers
- Included processes and imported schemas
- Generate class aliases as class types
- Processing Process and Optional Elements
In fact, my system is new, Delphi was installed about 3 days ago, and importing this WSDL was the first thing I did, mainly using these default settings.
source
share