error while calling jax-ws webservice hosted at weblogic

蹲街弑〆低调 提交于 2019-12-13 04:01:32

问题


I am using jax-ws webservice hosted at weblogic 10.3, while calling the webservice i am getting the below response

javax.xml.soap.SOAPException: Unable to receive message. caused by: java.io.IOException: null caused by: javax.xml.stream.XMLStreamException: javax.xml.stream.XMLStreamException: Premature end of file encountered caused by: javax.xml.stream.XMLStreamException: Premature end of file encountered

does anyone know why it comes?


回答1:


the response generated from webservice was not as it should be that is why i was getting this exception.




回答2:


I may be beaten down for resurrecting a solved problem but here goes. Maybe this will save someone some time.

I introduced this error in a project that I was working on. As it turns out, the IDE “helped” me by importing the old type of the same name in one of the row mappers. my.proj.old.stuff.MyType instead of my.new.stuff.MyType.



来源:https://stackoverflow.com/questions/12618423/error-while-calling-jax-ws-webservice-hosted-at-weblogic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!