Hi,friends,
Recently i downloaded apache-axis and deployed it on tomcat successfully.I can run its built-in samples,such as $(axis_home)/samples/addr.
In order to test web service's interoperability i used delphi6 to write a client program as below:
procedure TfrmAddr.Button1Click(Sender: TObject);
var
ro : AddressBook;
addr : address;
p : phone;
x :THTTPRio;
begin
x := THTTPRio.Create(nil);
x.HTTPWebNode.UseUTF8InHeader := true ;
x.WSDLLocation := 'h:\axis-1_0\samples\addr\AddressBook.wsdl';
x.Service := 'AddressBookService';
x.Port := 'AddressBook';
p := phone.Create;
p.areaCode := 765;
p.exchange := '494' ;
p.number := '4900';
addr := address.Create;
addr.streetNum := 1;
addr.streetName := 'University Drive' ;
addr.city := 'West Lafayette';
addr.zip := 47907;
addr.phoneNumber := p;
try
ro := x as AddressBook ;
ro.addEntry('Purdue Boilermaker',addr); //<=error here!
finally
addr.Free;
p.Free;
x.Free;
end;
end;
it always reports internal error ! Doesnot it mean delphi6 can NOT work with apache-axis ?
Any suggestion is appreciated ! ipo_z@cmmail.com
Garbage in,Garbage out
Recently i downloaded apache-axis and deployed it on tomcat successfully.I can run its built-in samples,such as $(axis_home)/samples/addr.
In order to test web service's interoperability i used delphi6 to write a client program as below:
procedure TfrmAddr.Button1Click(Sender: TObject);
var
ro : AddressBook;
addr : address;
p : phone;
x :THTTPRio;
begin
x := THTTPRio.Create(nil);
x.HTTPWebNode.UseUTF8InHeader := true ;
x.WSDLLocation := 'h:\axis-1_0\samples\addr\AddressBook.wsdl';
x.Service := 'AddressBookService';
x.Port := 'AddressBook';
p := phone.Create;
p.areaCode := 765;
p.exchange := '494' ;
p.number := '4900';
addr := address.Create;
addr.streetNum := 1;
addr.streetName := 'University Drive' ;
addr.city := 'West Lafayette';
addr.zip := 47907;
addr.phoneNumber := p;
try
ro := x as AddressBook ;
ro.addEntry('Purdue Boilermaker',addr); //<=error here!
finally
addr.Free;
p.Free;
x.Free;
end;
end;
it always reports internal error ! Doesnot it mean delphi6 can NOT work with apache-axis ?
Any suggestion is appreciated ! ipo_z@cmmail.com
Garbage in,Garbage out