Soapdatamodule Parameter problem



Hi,

I created a Soapdatamodule (WebService) with an ADOQuery and DatasetProvider
on it. The option poAllowCommandText of the DatasetProvider is set to true.
The client application uses a Soapconnection and a ClientDataset. The
RemoteServer is set to the Soapconnection and the Providername is set to the
Datasetprovider of the soapserver.
On the client side I want to Execute dynamically created SQL statement with
params. The following code (client side) with without params is working
fine.

clds_Table := TClientDataSet.Create(Self);
clds_Table.RemoteServer := soapc_;
clds_Table.ProviderName := 'dsp_Table';
clds_Table.CommandText := 'SELECT tes_id, tes_description FROM test';
clds_Table.Open;

The following code with params isn't working. The result of the select
statement gives me always an empty result back.

clds_Table := TClientDataSet.Create(Self);
clds_Table.RemoteServer := soapc_;
clds_Table.ProviderName := 'dsp_Table';
clds_Table.CommandText := 'SELECT tes_id, tes_description FROM test WHERE
tes_description = :tes_description';
clds_Table.Params.ParamByName('tes_description').DataType := ftString;
clds_Table.Params.ParamByName('tes_description').ParamType := ptInput;
clds_Table.Params.ParamByName('tes_description').Value := 'Frank'
clds_Table.Open;

With the web debugger I see that the SQL statement en param are passed to
the webservice (Incapuslated in a SOAP-XML message).
On the server I see that I have received the SQL statement and the param BUT
NO PARAM VALUE. (It look like the PARM VALUE = NULL)

Is there anyone that can help me?

(I'm using Delphi 6 with updatepack 2)

Frank


.



Relevant Pages

  • Re: Building SqlParameters: Design Time or Runtime ?
    ... Bill, what about output params? ... > advantage of params for performance and security. ... >> I have never been a fan of building Input SqlParameters dynamically. ... now my client has informed me there are cases where our client ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: XMLRPC Problem
    ... class ConversationSavingClient < Client ... def initialize ... response = super ...
    (comp.lang.ruby)
  • Re: Modifying the parameter Objects passed to RMI server
    ... RMI says the params are ... the changes made by an RMI server to a param will not get relflected at ... This is because the params are transfered from client process space to ...
    (comp.lang.java.help)
  • Re: Modifying the parameter Objects passed to RMI server
    ... RMI says the params are ... the changes made by an RMI server to a param will not get relflected at ... This is because the params are transfered from client process space to ...
    (comp.lang.java.programmer)