简体   繁体   English

IWAB0014E托盘化给定WSDL的创建Web服务时发生意外的异常:需要代理授权

[英]IWAB0014E Unexpected exception occurred when traying create webservice for given WSDL:Proxy Authorization Required

  1. I created a Dynamic web project 我创建了一个动态Web项目

  2. Imported the WSDL file into Webcontent of the project 将WSDL文件导入到项目的Webcontent中

  3. I go to file-> New-> Webservice-> Webservice 我去文件->新建-> Web服务-> Web服务

  4. I adjusted all the settings accordingly, but after finsihing its throwing the follwing error; 我对所有设置进行了相应的调整,但是在找到它后抛出了以下错误;

     java.lang.IllegalArgumentException: The char '0x0' after 'return code: 407 <HEAD><TITLE>Proxy Authorization Required</TITLE></HEAD> <BODY BGCOLOR="white" FGCOLOR="black"><H1>Proxy Authorization Required</H1><HR> <FONT FACE="Helvetica,Arial"><B> Description: Authorization is required for access to this proxy</B></FONT> <HR> <!-- default "Proxy Authorization Required" response (407) --> </BODY> ' is not a valid XML character. at org.apache.axis.components.encoding.AbstractXMLEncode(AbstractXMLEncoder.java:110) 

This is happening because of improper setup of Axis2. 发生这种情况是由于Axis2的设置不正确。

Steps: 脚步:

  1. Download Axis2 : Link--> http://ws.apache.org/axis2/download.cgi 下载Axis2:链接-> http://ws.apache.org/axis2/download.cgi
  2. Point the Axis2 runtime dir in eclipse : Menu--> Windows--> Preference --> Web Services--> Axis2 Preferences 将Axis2运行时目录指向eclipse:菜单-> Windows->首选项-> Web服务-> Axis2首选项

Follow this link for more details: http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html 请点击此链接获取更多详细信息: http : //www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html

Here is a suggestion for you. 这是给你的建议。 I was also facing the same problem, but this solution worked for me. 我也面临着同样的问题,但是这种解决方案对我有用。 Just try. 你试一试。

Upto WSDL creation, u have done rite? 在创建WSDL之前,您已经完成了仪式吗?

Just right click on the Java file which you have created for WS. 只需右键单击为WS创建的Java文件。

Select WEb Services --> Create Web Service 选择Web服务->创建Web服务

Now select the Web Service type as " Bottom Up" approach. 现在,将Web服务类型选择为“自下而上”的方法。

Select the Client type bar selection upto "Test Client" (full). 选择客户端类型栏选择,直至“ Test Client”(完整)。

Now give Finish and check. 现在完成并检查。

Sometimes, this problem can occurs because temp files 有时,可能会出现此问题,因为临时文件

  • Close Eclipse 关闭Eclipse
  • Delete org.eclipse.jst.ws.cxf.core.prefs file 删除org.eclipse.jst.ws.cxf.core.prefs文件
  • Delete .cxftmp folder 删除.cxftmp文件夹
  • Restart eclipse 重新开始蚀

and check it is working or not 并检查它是否工作

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

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