LR使用webservice+http录制的时候提示的错误
上一篇 /
下一篇 2010-03-02 18:28:57
Exception in thread "main" java.lang.NoClassDefFoundError: com/stub/httpclient/H
ttpClientStub
Press any key to continue . . .
vuser_init()
{
web_remove_auto_header("Content-Type", "ImplicitGen=Cond", LAST); //È¥³ýhttpÀïÃæµÄ¶àÓàÍ·
web_add_auto_header("x-up-calling-line-id","{NewParam}");
web_add_auto_header("User-Agent","Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN95/12.0.013; Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML");
web_add_auto_header("x-wap-profile","http://nds1.nds.nokia.com/uaprof/NN95_8GB-1r100.xml");
web_add_auto_header("Host","176.18.30.82:18095");
//web_add_auto_header("Content-Length","209");
//web_add_auto_header("User-Agent","NokiaN80-1/3.0 (3.0617.0.5) Series60/3.0 Profile/MIDP-2.0 Configuration/CLDC-1.1");
return 0;
}
Action()
{
web_reg_find("Text=000000",
LAST);
web_custom_request("login",
"Method=POST",
"URL=http://176.18.30.82:18095/service/login.do",
"Body=<InterWBSC><Ver>111</Ver><Client>100202</Client><Se"
"ssion></Session><TransId>{traid}</TransId><TestFlag>0</TestFlag><UVer>1.0</UVer"
"><Lang>en</Lang><Body></Body></InterWBSC>",
LAST);
return 0;
}
POST /service/login.do HTTP/1.1
HOST: 176.18.30.82:18095
Content-Length:166
x-up-calling-line-id:15999999999
User-Agent:nokia8250
x-wap-profile:http://nds1.nds.nokia.com/uaprof/NN95_8GB-1r100.xml
--------------------------------------------------
<InterWBSC><Ver>1.0</Ver><Client>100202</Client><Session></Session><TransId>1000</TransId>
<TestFlag>0</TestFlag><UVer>0.1</UVer><Lang>en</Lang><PFlag>0</PFlag><Body></Body>
</InterWBSC>
设置:classpath试一试吧:
把classpath设成C:\Program Files\Java\jre1.5.0_06\lib 这种设法下,java会查找这个目录下的.class文件,但是,不会去用这个目录下的.jar文件.所以必须把所有用到的.class文件都放在这个文件夹里
收藏
举报
TAG: