起步软件技术论坛-X3

 找回密码
 立即注册
搜索
查看: 372|回复: 4

【结贴】webservice调用

[复制链接]
发表于 2010-8-30 12:48:07 | 显示全部楼层 |阅读模式
我有个webservice方法不要调用get(String str)
过程需要中我传入一个XML文本
结果是 XML必须包含一个顶层元素
Line:0
类型:EDOMPareseError

我调试把 传入的变量值 复制到webservice测试的网页了里面都是正常的能返回啊
回复

使用道具 举报

发表于 2010-8-30 14:43:46 | 显示全部楼层
按照您错误提示看似乎是xml结构不对,原因看不出来,文件似乎无头。麻烦您把传入的xml文本发上来看一下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-8-30 15:01:57 | 显示全部楼层
<?xml version="1.0" encoding="gb2312" ?>
- <processor_parameters>
  <unid_id>353</unid_id>
  <start_date>2010-3-26 9:30:00</start_date>
  <end_date>2010-3-26 14:30:00</end_date>
- <query_list>
- <element>
  <id>5</id>
  <statistics_type>Current</statistics_type>
  </element>
- <element>
  <id>6</id>
  <statistics_type>Current</statistics_type>
  </element>
- <element>
  <id>8</id>
  <statistics_type>Current</statistics_type>
  </element>
- <element>
  <id>11</id>
  <statistics_type>Current</statistics_type>
  </element>
- <element>
  <id>10</id>
  <statistics_type>Current</statistics_type>
  </element>
- <element>
  <id>7</id>
  <statistics_type>Current</statistics_type>
  </element>
- <element>
  <id>12</id>
  <statistics_type>Current</statistics_type>
  </element>
- <element>
  <id>14</id>
  <statistics_type>Current</statistics_type>
  </element>
- <element>
  <id>15</id>
  <statistics_type>Current</statistics_type>
  </element>
- <element>
  <id>13</id>
  <statistics_type>Current</statistics_type>
  </element>
- <element>
  <id>9</id>
  <statistics_type>Current</statistics_type>
  </element>
- <element>
  <id>16</id>
  <statistics_type>Current</statistics_type>
  </element>
- <element>
  <id>4</id>
  <statistics_type>Current</statistics_type>
  </element>
- <element>
  <id>3</id>
  <statistics_type>Current</statistics_type>
  </element>
- <element>
  <id>2</id>
  <statistics_type>Current</statistics_type>
  </element>
- <element>
  <id>1</id>
  <statistics_type>Current</statistics_type>
  </element>
  </query_list>
  </processor_parameters>
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-8-30 15:03:16 | 显示全部楼层
我写了段JAVA去调用都没有问题呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-8-30 15:46:02 | 显示全部楼层
谢谢。麻烦结贴 。郁闷webservice地址变了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Justep Inc.

GMT+8, 2025-7-7 04:31 , Processed in 0.039447 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表