代码:
========================
try
{
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new java.net.URL("http://xxx.xxx.xxx.xxx/services/cmcc_mas_wbs"));
String ret = (String) call.invoke("sendSmsRequest",new Object[]{"123","xxxxxxxxxxx","","测试中文","GB2312","Normal",Boolean.TRUE});
System.out.println("返回的信息是:" + ret);
} catch (Exception ex)
{
ex.printStackTrace();
}报错:
========================
org.xml.sax.SAXException: Deserializing parameter 'arg0': could not find deserializer for type {http://schemas.xmlsoap.org/soap/encoding/}stringWSDL:
========================
- <element name="sendSmsRequest">
- <complexType>
- <sequence>
<element name="ApplicationID" nillable="true" type="xsd:string" />
<element maxOccurs="unbounded" minOccurs="0" name="DestinationAddresses" nillable="true" type="xsd:anyURI" />
<element name="ExtendCode" nillable="true" type="xsd:string" />
<element name="Message" nillable="true" type="xsd:string" />
<element name="MessageFormat" nillable="true" type="tns4:MessageFormat" />
<element name="SendMethod" nillable="true" type="tns4:SendMethodType" />
<element name="DeliveryResultRequest" type="xsd:boolean" />
</sequence>
</complexType>
</element>
========================
try
{
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new java.net.URL("http://xxx.xxx.xxx.xxx/services/cmcc_mas_wbs"));
String ret = (String) call.invoke("sendSmsRequest",new Object[]{"123","xxxxxxxxxxx","","测试中文","GB2312","Normal",Boolean.TRUE});
System.out.println("返回的信息是:" + ret);
} catch (Exception ex)
{
ex.printStackTrace();
}报错:
========================
org.xml.sax.SAXException: Deserializing parameter 'arg0': could not find deserializer for type {http://schemas.xmlsoap.org/soap/encoding/}stringWSDL:
========================
- <element name="sendSmsRequest">
- <complexType>
- <sequence>
<element name="ApplicationID" nillable="true" type="xsd:string" />
<element maxOccurs="unbounded" minOccurs="0" name="DestinationAddresses" nillable="true" type="xsd:anyURI" />
<element name="ExtendCode" nillable="true" type="xsd:string" />
<element name="Message" nillable="true" type="xsd:string" />
<element name="MessageFormat" nillable="true" type="tns4:MessageFormat" />
<element name="SendMethod" nillable="true" type="tns4:SendMethodType" />
<element name="DeliveryResultRequest" type="xsd:boolean" />
</sequence>
</complexType>
</element>
解决方案 »
- <logic:iterate id="list" name="list" >读取数据怎样限制${list.title}的字符长度为20?
- web项目中媒体播放器不能播放中文名的印业
- 困扰多时的问题!请大家指点!---struts中一个表单的数据同时更新/插入多个表
- 关于javabean的应用
- Tomcat下,如何延长Session的失效时间
- 求jsp+ajax 动态登陆界面代码
- 在jsp中引用javascript出现中文显示问题
- linux下用servlet合成图像出错,请高手指点迷津,不够分再加
- 要如何手动编译javabean,其中javabean中包含了自己创建的类的实例?
- 在JSP中怎样调用存储过程!帮帮忙,好急!谢谢!
- 如何打印由javascript生成的内容?
- 正方形里面有个+号,-号,这样的图片到哪里下载?(在线等)
如果可用
然后输入相关参数测试一下是否能成功返回..
如果OK,那此时便知道了参数类型,下面就好做了。。
axis2 的jar 包, 也太多了吧~ 什么破玩意~
就你这种学习态度,“什么破玩意”,打仗的时候如果觉得航母太复杂,而快艇方便,难道你会乘着快艇跟美国航母作战么?jar包是很多,说白了你不会用,懒得阅读英文文档所以不会用,那你抱着axis1用一辈子吧,看哪个公司要你axis1的东西