急急java访问.net webService targetNamespace不为URL如何填写
<?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名称该怎么填?