调用服务端webservice,请高手指教

老马888 2014-08-30 07:58:15



<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://service.contact.eas.rsun.com" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:ax25="http://entities.contact.eas.rsun.com/xsd" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ax21="http://rmi.java/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://io.java/xsd" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://***************.com">
<wsdl:documentation>EasOrgService</wsdl:documentation>
<wsdl:types>
<xs:schema xmlns:ax23="http://io.java/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://rmi.java/xsd">
<xs:import namespace="http://io.java/xsd"/>
<xs:complexType name="RemoteException">
<xs:complexContent>
<xs:extension base="ax22:IOException">
<xs:sequence>
<xs:element minOccurs="0" name="cause" nillable="true" type="xs:anyType"/>
<xs:element minOccurs="0" name="message" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://****.com/xsd">
<xs:complexType name="ContactModel">
<xs:sequence>
<xs:element minOccurs="0" name="FAddress" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FCell" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FDepartmentID" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FDepartmentName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FEMail" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FEmployeeTypeName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FGender" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FHomePhone" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FID" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FNumber" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FOfficePhone" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FPersonName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FPersonPhoto" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FPersonPhotoID" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FPersonPhotoModel" nillable="true" type="ax25:PersonPhotoModel"/>
<xs:element minOccurs="0" name="FPositionName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FUnitID" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FUnitName" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PersonPhotoModel">
<xs:sequence>
<xs:element minOccurs="0" name="FID" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FPersonID" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FPersonPhoto" nillable="true" type="xs:anyType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="OrganizationModel">
<xs:sequence>
<xs:element minOccurs="0" name="FDepartmentName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FID" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FLongNumber" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FNumber" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FParentID" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FParentName" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://io.java/xsd">
<xs:complexType name="IOException">
<xs:sequence/>
</xs:complexType>
</xs:schema>
<xs:schema xmlns:ax26="http://entities.contact.eas.rsun.com/xsd" xmlns:ax24="http://rmi.java/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="*******************>
<xs:import namespace="http://rmi.java/xsd"/>
<xs:import namespace="http://********************/xsd"/>
<xs:element name="EasOrgServiceRemoteException">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="RemoteException" nillable="true" type="ax21:RemoteException"/>
</xs:sequence>
</xs:complexType>
</xs:element>
...全文
114 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
老马888 2014-08-30
  • 打赏
  • 举报
回复
最好有完整的调用实例,感谢
老马888 2014-08-30
  • 打赏
  • 举报
回复
<xs:element name="findContacts"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="contactModel" nillable="true" type="ax25:ContactModel"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="findContactsResponse"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" minOccurs="0" name="return" nillable="true" type="ax25:ContactModel"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="findAllDepartments"> <xs:complexType> <xs:sequence/> </xs:complexType> </xs:element> <xs:element name="findAllDepartmentsResponse"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" minOccurs="0" name="return" nillable="true" type="ax25:OrganizationModel"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> </wsdl:types> <wsdl:message name="findContactsRequest"> <wsdl:part name="parameters" element="ns:findContacts"/> </wsdl:message> <wsdl:message name="findContactsResponse"> <wsdl:part name="parameters" element="ns:findContactsResponse"/> </wsdl:message> <wsdl:message name="EasOrgServiceRemoteException"> <wsdl:part name="parameters" element="ns:EasOrgServiceRemoteException"/> </wsdl:message> <wsdl:message name="findAllDepartmentsRequest"> <wsdl:part name="parameters" element="ns:findAllDepartments"/> </wsdl:message> <wsdl:message name="findAllDepartmentsResponse"> <wsdl:part name="parameters" element="ns:findAllDepartmentsResponse"/> </wsdl:message> <wsdl:portType name="EasOrgServicePortType"> <wsdl:operation name="findContacts"> <wsdl:input message="ns:findContactsRequest" wsaw:Action="urn:findContacts"/> <wsdl:output message="ns:findContactsResponse" wsaw:Action="urn:findContactsResponse"/> <wsdl:fault message="ns:EasOrgServiceRemoteException" name="EasOrgServiceRemoteException" wsaw:Action="urn:findContactsEasOrgServiceRemoteException"/> </wsdl:operation> <wsdl:operation name="findAllDepartments"> <wsdl:input message="ns:findAllDepartmentsRequest" wsaw:Action="urn:findAllDepartments"/> <wsdl:output message="ns:findAllDepartmentsResponse" wsaw:Action="urn:findAllDepartmentsResponse"/> <wsdl:fault message="ns:EasOrgServiceRemoteException" name="EasOrgServiceRemoteException" wsaw:Action="urn:findAllDepartmentsEasOrgServiceRemoteException"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="EasOrgServiceSoap11Binding" type="ns:EasOrgServicePortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <wsdl:operation name="findContacts"> <soap:operation soapAction="urn:findContacts" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> <wsdl:fault name="EasOrgServiceRemoteException"> <soap:fault use="literal" name="EasOrgServiceRemoteException"/> </wsdl:fault> </wsdl:operation> <wsdl:operation name="findAllDepartments"> <soap:operation soapAction="urn:findAllDepartments" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> <wsdl:fault name="EasOrgServiceRemoteException"> <soap:fault use="literal" name="EasOrgServiceRemoteException"/> </wsdl:fault> </wsdl:operation> </wsdl:binding> <wsdl:binding name="EasOrgServiceSoap12Binding" type="ns:EasOrgServicePortType"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <wsdl:operation name="findContacts"> <soap12:operation soapAction="urn:findContacts" style="document"/> <wsdl:input> <soap12:body use="literal"/> </wsdl:input> <wsdl:output> <soap12:body use="literal"/> </wsdl:output> <wsdl:fault name="EasOrgServiceRemoteException"> <soap12:fault use="literal" name="EasOrgServiceRemoteException"/> </wsdl:fault> </wsdl:operation> <wsdl:operation name="findAllDepartments"> <soap12:operation soapAction="urn:findAllDepartments" style="document"/> <wsdl:input> <soap12:body use="literal"/> </wsdl:input> <wsdl:output> <soap12:body use="literal"/> </wsdl:output> <wsdl:fault name="EasOrgServiceRemoteException"> <soap12:fault use="literal" name="EasOrgServiceRemoteException"/> </wsdl:fault> </wsdl:operation> </wsdl:binding> <wsdl:binding name="EasOrgServiceHttpBinding" type="ns:EasOrgServicePortType"> <http:binding verb="POST"/> <wsdl:operation name="findContacts"> <http:operation location="findContacts"/> <wsdl:input> <mime:content type="application/xml" part="parameters"/> </wsdl:input> <wsdl:output> <mime:content type="application/xml" part="parameters"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="findAllDepartments"> <http:operation location="findAllDepartments"/> <wsdl:input> <mime:content type="application/xml" part="parameters"/> </wsdl:input> <wsdl:output> <mime:content type="application/xml" part="parameters"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="EasOrgService"> <wsdl:port name="EasOrgServiceHttpSoap11Endpoint" binding="ns:EasOrgServiceSoap11Binding"> <soap:address location="http://192.168.0.113/rsun-Service/services/EasOrgService.EasOrgServiceHttpSoap11Endpoint/"/> </wsdl:port> <wsdl:port name="EasOrgServiceHttpSoap12Endpoint" binding="ns:EasOrgServiceSoap12Binding"> <soap12:address location="http://192.168.0.113/rsun-Service/services/EasOrgService.EasOrgServiceHttpSoap12Endpoint/"/> </wsdl:port> <wsdl:port name="EasOrgServiceHttpEndpoint" binding="ns:EasOrgServiceHttpBinding"> <http:address location="http://192.168.0.113/rsun-Service/services/EasOrgService.EasOrgServiceHttpEndpoint/"/> </wsdl:port> </wsdl:service> </wsdl:definitions> 以上是wsdl 文件,请问一下怎么调用以下两个方法: findAllDepartments()包含公司和部门,没有参数 findContact(ContactModel obj)查询符合条件的通讯录列表

50,526

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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