Problem with web service (WinCe - WebServiceToolkit, server -
Glassfish Java)
lazarus / 38-Networking and Web Programming
----------------------------------------------------------------------
jjmamby · 2012-03-01 23:06
Well, I'm trying to call a web service from a terminal with a wince
operating system, points to the web service in glassfish server, now
successfully connected but both the response as the request, send null
data. in glassfish server shows me the following warning
Received WS-I BP non-conformant Unquoted SoapAction HTTP header
There is something I have to take into account for the generation of
the wsdl?
WSDL
Program in lazarus
procedure TForm1.Button1Click(Sender: TObject);
var
locService : ContainerDataFacade;
//resu : string;
rqst : findEmptyContainer_Type;
rsps : findEmptyContainerResponse;
begin
INDY_RegisterHTTP_Transport();
rqst:= findEmptyContainer_Type.Create();
try
locService := wst_CreateInstance_ContainerDataFacade();
rqst.containerNumber:= 'CLHU8322880' ;
rqst.shippingLine:='SUD';
rqst.size:='40';
rqst._type:='HC';
try
//resu := ;
rsps := locService.findEmptyContainer(rqst);
if (rsps <> nil) then begin
showMessage('Is not null')
end else begin
showMessage('is null')
end;
ShowMessage('Exito !!');
Except
ShowMessage('Error de conexion');
end;
finally
FreeAndNil(rqst);
FreeAndNil(rsps);
end;
end;
-----------------------------------
More info: the handler in the server show me this messages
this is the lazarus message soap genered:
CLHU8322880SUDHC40
i make other tests with an aplication develoment in java and this is
is a message soap genered since aplicattion in java
CLHU8322880SUDHC40
yes, is different but i have no idea what is wrong, any suggetion ???