日期:2014-05-19  浏览次数:20687 次

求救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="IBa