当前位置: 代码迷 >> J2EE >> Java如何调用 .net的webService (附wsdl xml)
  详细解决方案

Java如何调用 .net的webService (附wsdl xml)

热度:88   发布时间:2016-04-22 00:58:42.0
求救Java怎么调用 .net的webService (附wsdl xml)
求救Java怎么调用 .net得webService (附wsdl xml)

请问怎么解析这个wsdl

用xfire环境 

<?xml version="1.0" encoding="utf-8"?><wsdl:definitions name="BasePlatformProvider" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"><wsp:Policy wsu:Id="WSHttpBinding_IBasePlatformProvider_policy"><wsp:ExactlyOne><wsp:All><wsrm:RMAssertion xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm/policy"><wsrm:InactivityTimeout Milliseconds="600000"/><wsrm:AcknowledgementInterval Milliseconds="200"/></wsrm:RMAssertion><wsaw:UsingAddressing/></wsp:All></wsp:ExactlyOne></wsp:Policy><wsdl:types><xsd:schema targetNamespace="http://tempuri.org/Imports"><xsd:import schemaLocation="http://service.baoan.edu.cn/BasePlatformServices.svc?xsd=xsd4" namespace="http://tempuri.org/"/><xsd:import schemaLocation="http://service.baoan.edu.cn/BasePlatformServices.svc?xsd=xsd0" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/><xsd:import schemaLocation="http://service.baoan.edu.cn/BasePlatformServices.svc?xsd=xsd1" namespace="http://schemas.datacontract.org/2004/07/TYKYBOS.Persistence"/><xsd:import schemaLocation="http://service.baoan.edu.cn/BasePlatformServices.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/TYKYBOS.Model.FilterEntity"/><xsd:import schemaLocation="http://service.baoan.edu.cn/BasePlatformServices.svc?xsd=xsd3" namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><xsd:import schemaLocation="http://service.baoan.edu.cn/BasePlatformServices.svc?xsd=xsd5" namespace="http://schemas.datacontract.org/2004/07/TYKYBOS.Service"/><xsd:import schemaLocation="http://service.baoan.edu.cn/BasePlatformServices.svc?xsd=xsd6" namespace="http://schemas.datacontract.org/2004/07/TYKYBOS.Helpers"/></xsd:schema></wsdl:types>

<wsdl:message name="IBasePlatformProvider_GetOrgByLoginName_InputMessage"><wsdl:part name="parameters" element="tns:GetOrgByLoginName"/></wsdl:message><wsdl:message name="IBasePlatformProvider_GetOrgByLoginName_OutputMessage"><wsdl:part name="parameters" element="tns:GetOrgByLoginNameResponse"/></wsdl:message><wsdl:message name="IBasePlatformProvider_IsLogin_InputMessage"><wsdl:part name="parameters" element="tns:IsLogin"/></wsdl:message><wsdl:message name="IBasePlatformProvider_IsLogin_OutputMessage"><wsdl:part name="parameters" element="tns:IsLoginResponse"/></wsdl:message><wsdl:message name="IBasePlatformProvider_GetDeskBoardsBySearch_InputMessage"><wsdl:part name="parameters" element="tns:GetDeskBoardsBySearch"/></wsdl:message><wsdl:message name="IBasePlatformProvider_GetDeskBoardsBySearch_OutputMessage"><wsdl:part name="parameters" element="tns:GetDeskBoardsBySearchResponse"/></wsdl:message><wsdl:message name="IBasePlatformProvider_GetUsersBySearch_InputMessage"><wsdl:part name="parameters" element="tns:GetUsersBySearch"/></wsdl:message><wsdl:message name="IBasePlatformProvider_GetUsersBySearch_OutputMessage"><wsdl:part name="parameters" element="tns:GetUsersBySearchResponse"/></wsdl:message><wsdl:message name="IBasePlatformProvider_GetRolesBySearch_InputMessage"><wsdl:part name="parameters" element="tns:GetRolesBySearch"/></wsdl:message><wsdl:message name="IBasePlatformProvider_GetRolesBySearch_OutputMessage"><wsdl:part name="parameters" element="tns:GetRolesBySearchResponse"/></wsdl:message><wsdl:message name="IBasePlatformProvider_GetMenusBySearch_InputMessage"><wsdl:part name="parameters" element="tns:GetMenusBySearch"/></wsdl:message><wsdl:message name="IBasePlatformProvider_GetMenusBySearch_OutputMessage"><wsdl:part name="parameters" element="tns:GetMenusBySearchResponse"/></wsdl:message><wsdl:message name="IBasePlatformProvider_GetOrganizationBySearch_InputMessage"><wsdl:part name="parameters" element="tns:GetOrganizationBySearch"/></wsdl:message><wsdl:message name="IBasePlatformProvider_GetOrganizationBySearch_OutputMessage"><wsdl:part name="parameters" element="tns:GetOrganizationBySearchResponse"/></wsdl:message><wsdl:message name="IBasePlatformProvider_SetDeskBoardDataSource_InputMessage"><wsdl:part name="parameters" element="tns:SetDeskBoardDataSource"/></wsdl:message><wsdl:message name="IBasePlatformProvider_SetDeskBoardDataSource_OutputMessage"><wsdl:part name="parameters" element="tns:SetDeskBoardDataSourceResponse"/></wsdl:message><wsdl:message name="IBasePlatformProvider_PostNotify_InputMessage"><wsdl:part name="parameters" element="tns:PostNotify"/></wsdl:message><wsdl:message name="IBasePlatformProvider_PostNotify_OutputMessage"><wsdl:part name="parameters" element="tns:PostNotifyResponse"/></wsdl:message><wsdl:message name="IBasePlatformProvider_PostNotice_InputMessage"><wsdl:part name="parameters" element="tns:PostNotice"/></wsdl:message><wsdl:message name="IBasePlatformProvider_PostNotice_OutputMessage"><wsdl:part name="parameters" element="tns:PostNoticeResponse"/></wsdl:message><wsdl:message name="IBasePlatformProvider_GetDirectorys_InputMessage"><wsdl:part name="parameters" element="tns:GetDirectorys"/></wsdl:message><wsdl:message name="IBasePlatformProvider_GetDirectorys_OutputMessage"><wsdl:part name="parameters" element="tns:GetDirectorysResponse"/></wsdl:message><wsdl:message name="IBasePlatformProvider_GetFiles_InputMessage"><wsdl:part name="parameters" element="tns:GetFiles"/></wsdl:message><wsdl:message name="IBasePlatformProvider_GetFiles_OutputMessage"><wsdl:part name="parameters" element="tns:GetFilesResponse"/></wsdl:message><wsdl:message name="IBasePlatformProvider_GetFileContent_InputMessage"><wsdl:part name="parameters" element="tns:GetFileContent"/></wsdl:message><wsdl:message name="IBasePlatformProvider_GetFileContent_OutputMessage"><wsdl:part name="parameters" element="tns:_CreateDirectory_InputMessage"><wsdl:part name="parameters" element="tns:CreateDGetFileContentResponse"/></wsdl:message><wsdl:message name="IBasePlatformProviderirectory"/></wsdl:message><wsdl:message name="IBasePlatformProvider_CreateDirectory_OutputMessage"><wsdl:part name="parameters" element="tns:CreateDirectoryResponse"/></wsdl:message><wsdl:message name="IBasePlatformProvider_CreateSystemFile_InputMessage"><wsdl:part name="parameters" element="tns:CreateSystemFile"/></wsdl:message><wsdl:message name="IBasePlatformProvider_CreateSystemFile_OutputMessage"><wsdl:part name="parameters" element="tns:CreateSystemFileResponse"/></wsdl:message><wsdl:message name="IBasePlatformProvider_UpdateUserDetail_InputMessage"><wsdl:part name="parameters" element="tns:UpdateUserDetail"/></wsdl:message><wsdl:message name="IBasePlatformProvider_UpdateUserDetail_OutputMessage"><wsdl:part name="parameters" element="tns:UpdateUserDetailResponse"/></wsdl:message><wsdl:message name="IBasePlatformProvider_DeleteUserDetail_InputMessage"><wsdl:part name="parameters" element="tns:DeleteUserDetail"/></wsdl:message><wsdl:message name="IBasePlatformProvider_DeleteUserDetail_OutputMessage"><wsdl:part name="parameters" element="tns:DeleteUserDetailResponse"/></wsdl:message><wsdl:portType name="IBasePlatformProvider"><wsdl:operation name="GetOrgByLoginName"><wsdl:input wsaw:Action="http://tempuri.org/IBasePlatformProvider/GetOrgByLoginName" message="tns:IBasePlatformProvider_GetOrgByLoginName_InputMessage"/><wsdl:output wsaw:Action="http://tempuri.org/IBasePlatformProvider/GetOrgByLoginNameResponse" message="tns:IBasePlatformProvider_GetOrgByLoginName_OutputMessage"/></wsdl:operation><wsdl:operation name="IsLogin"><wsdl:input wsaw:Action="http://tempuri.org/IBasePlatformProvider/IsLogin" message="tns:IBasePlatformProvider_IsLogin_InputMessage"/>
  相关解决方案