求教关于java调用webservice的问题
Webservice地址:http://*.*.*.*/podetailws.asmx(不好意思,由于安全问题*.*.*.*表示IP地址)
利用axis自动生成的客户端类,执行时出现下面的错误,请教是什么原因。
java.lang.reflect.InvocationTargetException at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at psdi.webclient.system.beans.DataBean.callRemoteMethod(DataBean.java:5
255)
at psdi.webclient.system.beans.DataBean.callRemoteMethod(DataBean.java:5
238)
at psdi.webclient.system.tags.DefaultHandlerTag.doStartTag(DefaultHandle
rTag.java:105)
at jsp_servlet._webclient._controls._presentation.__control._jspService(
__control.java:2236)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:315)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
cherImpl.java:642)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispat
cherImpl.java:423)
at psdi.webclient.system.controller.ControlHandler.handleEvent(ControlHa
ndler.java:190)
at psdi.webclient.system.controller.RequestHandler.handleEvent(RequestHa
ndler.java:729)
at psdi.webclient.system.controller.RequestHandler.handleRequest(Request
Handler.java:294)
at psdi.webclient.servlet.WebClientServlet.handleRequest(WebClientServle
t.java:114)
at psdi.webclient.servlet.WebClientServlet.doPost(WebClientServlet.java:
44)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:419)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at psdi.webclient.system.filter.HttpGZIPFilter.doFilter(HttpGZIPFilter.j
ava:73)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:6724)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Caused by:
org.xml.sax.SAXParseException: Character reference "�" is an invali
d XML character.
at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:543)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)