急急java访问.net webService targetNamespace不为URL如何填写

lgwghg 2013-01-30 04:42:58
<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="SyncService" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="SyncService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
- <wsdl:types>
- <s:schema elementFormDefault="qualified" targetNamespace="SyncService">
- <s:element name="GetUpdatedDepartments">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="fromUpdatedDate" type="s:dateTime" />
</s:sequence>
</s:complexType>
</s:element>

以上是服务说明

我用的java使用axis调用webservice方法

Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new java.net.URL(ProjectConstant.PERSONNEL_SYNC_SERVICE_ADDRESS));
call.setUseSOAPAction(true);
// 设置要调用的方法
call.setOperationName(new QName("SyncService",method));
// 设置ActionURI
call.setSOAPActionURI("SyncService/"+method);


请问它这个targetNamespace不是一个http://开头的url
我的call.setOperationName(new QName("SyncService",method));
和call.setSOAPActionURI("SyncService/"+method);中的Namespace名称该怎么填?
...全文
282 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧