我用中兴的MM7API试过, 用华为的VAS-API也试了, DEMO程序怎么运行都是报这种错误, 看起来像通讯问题吧.
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at com.huawei.mms.vas.MMSender.sendEx(MMSender.java:158)
at com.huawei.mms.vas.MMSender.send(MMSender.java:300)
at SenderTest.main(SenderTest.java:94)
用MM7API还能看到模拟器端收到了一些东西, 可用VAS-API这个模拟器端除了看到一些Accept a client connection:127.0.0.1的记录外其它什么也没有了......
谁能告诉我, 怎么开才能成功? API我用哪个开发更好? 谢谢!
------解决方案--------------------
顶下,学习!!
------解决方案--------------------
学习。。帮顶一下
------解决方案--------------------
呵呵,搞得比较的,方向不一致,呵呵,
------解决方案--------------------
xuexi
------解决方案--------------------
来看看~~~