http://www.fundxy.com/fundxy/common/fundxyservice 应该换成这个名称空间吧

解决方案 »

  1.   

    call.setOperationName(new QName("http://www.fundxy.com";,"GetNewFundValue"));//请问一下,
    call.setSOAPActionURI("http://www.fundxy.com");//请问这个地方我写什么?好像在asp文档中没有找到
    这两个地方的URL写什么值啊,我在文档中没找到啊???
      

  2.   

    http://www.fundxy.com/fundxy/Common/FundxyService.asmx 有一个服务说明啊点进去看就知道
      

  3.   

    楼上的兄弟:我把这里的值修改为了如下:
    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不熟悉啊
    帮我详细的写一样,谢谢了,如果能通过,就结贴子了。
      

  4.   

    call.setSOAPActionURI("http://www.fundxy.com/fundxy/common/fundxyservice");这个还是不要改
      

  5.   

    我搞定了上面那个问题
    但出现一个新的问题:它返回的值是一个列表
    这时我的代码:
    call.setReturnType(org.apache.axis.encoding.XMLType.XSD_INT);//这个地方错误,不过我不会写
    List k = (List)call.invoke(new Object[]{i,j,z});这两部分怎么写
      

  6.   

    我定义了一个返回的类:
    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