http://www.fundxy.com/fundxy/common/fundxyservice 应该换成这个名称空间吧
解决方案 »
- SQL语句报错
- 郁闷的HIBERANTE一对多双向关联问题
- 【问个算法】斗地主的提示算法
- 精华贴:中央认证服务器目录树的算法采集
- 错误:java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
- 我发现我同事的java代码中所有class的方法都是static,他说这样调用就很方便(因为不用new一个对象了,直接class.方法调用),请问他这样
- 如何获取计算机名
- 我想学java,请问都有什么好的编译环境。
- 请问用JavaMail如何得到信箱中的除了“Inbox”以外的东西
- 批处理调用java程序中的main方法
- hibernate映射文件中设置字段长度后,生成到oracle数据库中增加了一倍?请问怎样解决?谢谢。
- java 调用.net WebService 出现以下异常 望各位大哥帮忙解决
call.setSOAPActionURI("http://www.fundxy.com");//请问这个地方我写什么?好像在asp文档中没有找到
这两个地方的URL写什么值啊,我在文档中没找到啊???
call.setOperationName(new QName("http://www.fundxy.com/fundxy/common/fundxyservice";,"GetNewFundValue"));
call.setSOAPActionURI("http://www.fundxy.com/fundxy/common/fundxyservice");
还是报这样的错误啊:
System.Web.Services.Protocols.SoapException: 服务器未能识别 HTTP 标头 SOAPAction 的值:http://www.fundxy.com/fundxy/common/fundxyservice
还请详细的告之怎么修改我的代码,我对web service不熟悉啊
帮我详细的写一样,谢谢了,如果能通过,就结贴子了。
但出现一个新的问题:它返回的值是一个列表
这时我的代码:
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_INT);//这个地方错误,不过我不会写
List k = (List)call.invoke(new Object[]{i,j,z});这两部分怎么写
import java.io.Serializable;public class FundValueBean implements Serializable{
private String fundName;
private String fundID;
private String valueDate;
private Float todayValue;
private Float totalValue;
private Float varPercent;
private Float varValue;
public FundValueBean() {
}
public String getFundName() {
return fundName;
}
public void setFundName(String fundName) {
this.fundName = fundName;
} ..........................
}然后在返回值的地方是这样写的:
call.setReturnType(org.apache.axis.encoding.XMLType.SOAP_ARRAY);
call.setUseSOAPAction(true);
call.setSOAPActionURI("http://www.fundxy.com/fundxy/common/fundxyservice/GetNewFundValue");
FundValueBean[] k = (FundValueBean[])call.invoke(new Object[]{i,j,z});但还是报错啊:
2007-2-17 14:13:24 org.apache.axis.client.Call invoke严重: Exception:org.xml.sax.SAXException: No deserializer for {http://www.w3.org/2001/XMLSchema}anyType at org.apache.axis.encoding.DeserializerImpl.onStartElement(DeserializerImpl.java:485) at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:428) at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:976) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:198) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:722) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:233) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:347) at org.apache.axis.client.Call.invoke(Call.java:2272) at org.apache.axis.client.Call.invoke(Call.java:2171) at org.apache.axis.client.Call.invoke(Call.java:1691) at com.weihua.common.util.TestStr.main(TestStr.java:45)org.xml.sax.SAXException: No deserializer for {http://www.w3.org/2001/XMLSchema}anyType
还请再帮我看一下,要不你调试通过后再写出来,谢谢!你有QQ或MSN吗?请告之:
我的是365372878