关于WEBSERVCE的难题----急!!!(200分)

  • 主题发起人 主题发起人 xiaoywh
  • 开始时间 开始时间
X

xiaoywh

Unregistered / Unconfirmed
GUEST, unregistred user!
http://211.93.11.4/esm2/TestWebsvr.DLL
用Dephi在编辑客户端,注意内网测试完全正常,但上了公网测试提示如下:
[red]Button1的错误:[/red]
Line: 1
<html>-2147417842(0x8001010e</body></h'. Process stopyed.Use Step or Run to Continue
[blue]Button2的错误:[/blue]
Invalid at the top level ofdo
cument
Line: 2
<SOAP-ENV: Envelope xmlns: SOAP-ENV=&quot;Http:
高手快帮我诊断一下啊.
客户端源码如下:
procedure TForm1.Button1Click(Sender: TObject);
var sName: string;
begin

HTTPRIO1.WSDLLocation :=
'http://211.93.11.4/ESM2/TestWebSvr.dll/wsdl/ITestWebSvr'
HTTPRIO1.Port := 'ITestWebSvrPort';
HTTPRIO1.Service := 'ITestWebSvrservice';
HTTPRIO1.HTTPWebNode.UseUTF8InHeader := true;
sName := (HTTPRIO1 as ITestWebSvr).GetName;
ShowMessage(sName);
end;

procedure TForm1.Button2Click(Sender: TObject);
var sName: string;
begin
HTTPRIO1.URL := http://211.93.11.4/ESM2/TestWebSvr.dll/soap/ITestWebSvr
HTTPRIO1.HTTPWebNode.UseUTF8InHeader := true;
sName := (HTTPRIO1 as ITestWebSvr).GetName;
ShowMessage(sName);
end;

估计是字符集有些问题,但并没有找到解决方案....急! 解决后单独再送分.
 
搞定,的确是字符集的问题,用DELPHI做WEBSERVICE也非常容易,不错错!!!

分已给出大家来抢分吧.
 
后退
顶部