滞留在上传的Java Web服务的服务器 [英] Stuck in uploading java web service to server

查看:163
本文介绍了滞留在上传的Java Web服务的服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立在NetBeans一个WebService,并在Android中使用它我。

I have created a WebService in NetBeans, and am using it in Android.

在本地主机它工作正常,但部署到服务器上进行测试时,它给出了一个例外:

On the localhost it works fine, but when testing for deploying to server it gives an Exception:

org.xmlpull.v1.xmlpullparserexception:预计START_TAG

我在做什么错了?

推荐答案

好吧例外似乎表明一个开始标签丢失? - 你有没有Web服务的标签在你的包裹内容

Well the exception seems to indicate that a start tag is missing - do you have the web service tags wrapped around your content?

有时权限的用户可以在本地进行测试,而不是远程的时候是不同的。它也可以根据不同你如何测试它 - 例如,如果你在Web浏览器中测试,缺少的标记通常可以通过浏览器自动固定,这样可以显示的页面 - 这不是情况与一些更严格的X​​ML解析库。

Sometimes permissions can be different when testing locally rather than remotely. It can also be different depending on how you're testing it - for example, if you're testing in a web browser, missing tags can often be fixed automatically by the browser so that the page can be displayed - this isn't the case with some stricter XML parsing libraries.

如果你可以张贴一些code,我们也许能帮助您解决实际问题,而不是猜测什么是错的。

If you could post some code, we might be able to help solve your actual problem rather than guessing what's wrong.

这篇关于滞留在上传的Java Web服务的服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆