毕业论文开发语言企业开发JAVA技术.NET技术WEB开发Linux/Unix数据库技术Windows平台移动平台嵌入式论文范文英语论文
您现在的位置: 毕业论文 >> java技术 >> 正文

axis/}stackTrace:服务器无法处理请求未将对象引用设置到对象的实例

更新时间:2013-8-19:  来源:毕业论文

axis/}stackTrace:服务器无法处理请求未将对象引用设置到对象的实例

           String url = "http-://www.webxml.-com.-cn/WebServices/WeatherWebService.asmx";             Service service = new Service();             Call call = (Call) service.createCall();             call.setTargetEndpointAddress(new URL(url));             call.setOperationName(new QName("http://WebXml.com.cn/","getweatherbycityname"));             call.addParameter(new QName("http://WebXml.com.cn/", "theCityName"), XMLType.XSD_STRING, ParameterMode.IN);             call.setUseSOAPAction(true);             call.setReturnType(XMLType.SOAP_STRING);             call.setSOAPActionURI("http://WebXml.com.cn/getWeatherbyCityName");             String str = call.invoke(new Object[]{"武汉"}).toString();         } catch (Exception e) {             e.printStackTrace();         }

 

Plain Text code?AxisFault  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server  faultSubcode:   faultString: 服务器无法处理请求。 ---> 未将对象引用设置到对象的实例。  faultActor:   faultNode:   faultDetail:      {http://xml.apache.org/axis/}stackTrace:服务器无法处理请求。 ---> 未将对象引用设置到对象的实例。     at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)     at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)     at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)     at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1774)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2930)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)     at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)     at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)     at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)     at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)     at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)     at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)     at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)     at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)     at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)     at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)     at org.apache.axis.client.Call.invokeEngine(Call.java:2784)     at org.apache.axis.client.Call.invoke(Call.java:2767)     at org.apache.axis.client.Call.invoke(Call.java:2443)     at org.apache.axis.client.Call.invoke(Call.java:2366)     at org.apache.axis.client.Call.invoke(Call.java:1812)     at com.weather.service.WeatherTest.WeatherTest(WeatherTest.java:26)     at com.weather.service.Text.main(Text.java:13)
没有指定名称

axis开发webservice默认基于rpc,.net开发webservice默认基于document,所以axis调用.net的webservice方法时,.net的webservice方法开发时需要声明为rpc。

设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©youerw.com 优尔论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。