简体   繁体   English

Netbeans JAX-WS客户端-编码错误

[英]Netbeans JAX-WS client - encoding error

I'm developing a web service client JAVA (JDK 1.6) with JAX-WS API on netbeans ide (8.0.2) . 我正在netbeans ide(8.0.2)上使用JAX-WS API开发Web服务客户端JAVA(JDK 1.6)。

J2EE container is JBoss 4.2.1 and I've followed the official netbeans guide to create a web service client with JAX-WS ( guide ). J2EE容器是JBoss 4.2.1,我遵循了正式的netbeans指南来使用JAX-WS创建Web服务客户端( guide )。

When I tried to import the WSDL, IDE returns this error: 当我尝试导入WSDL时,IDE返回此错误:

/Users/xxxxx/NetBeansProjects/XXXX/DCS_XXX/nbproject/jaxws-build.xml:45: class com.sun.tools.ws.ant.WsImport2 doesn't support the "encoding" attribute.

Thanks 谢谢

I had the same issue , I deleted and re-imported web service still it did not work. 我遇到了同样的问题,我删除并重新导入了Web服务,但仍然无法正常工作。 So i just deleted encoding="${source.encoding}" from Jaxws-build.xml it worked for me. 所以我只是从Jaxws-build.xml删除了encoding="${source.encoding}" Jaxws-build.xml encoding="${source.encoding}"对我Jaxws-build.xml

I had the same problem, using the same java and netbeans version. 使用相同的java和netbeans版本,我遇到了同样的问题。

I don't know what coused this error, but suddenly it started working. 我不知道是什么原因导致了这个错误,但是突然它开始起作用了。 I have no explanation why. 我没有解释为什么。

My steps were as follows: 1)Deleted corrupted WS client 2)Created new "Web service from wsdl" 3)Deleted this web service 4)Created new WS Client. 我的步骤如下:1)删除损坏的WS客户端2)创建新的“来自wsdl的Web服务” 3)删除此Web服务4)创建新的WS Client。

I was monitoring the jaxws-build.xml file, and i have no idea why the "enconding" attribute was there. 我正在监视jaxws-build.xml文件,但我不知道为什么那里有“ enconding”属性。 Now its gone and the client is working. 现在它消失了,客户端正在工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM