内容太长了我分开贴
<?xml version="1.0" encoding="utf-8" ?>
<definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://tempuri.org/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://tempuri.org/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
<s:element name="HelloWorld">
<s:complexType />
</s:element>
<s:element name="HelloWorldResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="Add">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="fbm" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fdw" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fdh" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fdz" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ffzr" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="ffl" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="fkzq" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fgsdm" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="flx" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel1" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname1" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel2" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname2" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel3" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname3" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel4" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname4" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel5" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname5" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel6" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname6" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fsszd" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="AddResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="AddResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="Update">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="fxh" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="fbm" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fdw" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fdh" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fdz" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ffzr" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="ffl" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="fkzq" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fgsdm" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="flx" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel1" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname1" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel2" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname2" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel3" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname3" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel4" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname4" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel5" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname5" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel6" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname6" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fsszd" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="UpdateResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="UpdateResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<?xml version="1.0" encoding="utf-8" ?>
<definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://tempuri.org/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://tempuri.org/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
<s:element name="HelloWorld">
<s:complexType />
</s:element>
<s:element name="HelloWorldResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="Add">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="fbm" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fdw" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fdh" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fdz" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ffzr" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="ffl" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="fkzq" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fgsdm" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="flx" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel1" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname1" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel2" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname2" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel3" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname3" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel4" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname4" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel5" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname5" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel6" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname6" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fsszd" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="AddResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="AddResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="Update">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="fxh" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="fbm" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fdw" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fdh" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fdz" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ffzr" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="ffl" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="fkzq" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fgsdm" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="flx" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel1" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname1" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel2" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname2" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel3" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname3" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel4" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname4" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel5" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname5" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftel6" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ftelname6" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fsszd" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="UpdateResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="UpdateResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
解决方案 »
- sqlserver 存储过程返回结果集在jdbc中调用无效
- 用log4j生成的日志文件如何保证只在文件里的第一行有标题?
- struts标签怎样能控制不生成tr,td?
- 菜鸟一名,想知道域名是怎样解析的?
- 一个朋友翻译的文章,希望大家可以看看。About Spring Web Flow
- 问个初级问题,weblogic8.1+jbuilder9的配置
- liferay portal的路径中为什么带个/c,啥功能,怎么实现的?(up也有5分呦!)先谢了!
- 不相信,csdn里面居然没有一人知道commons-fileupload的具体用法。为什么贴子发了好几天了,问题都没有解决。
- 【求助】J2EE普通客户端访问错误,求助!
- ###EJB QL里面l的模糊查询###
- struts的简单问题(javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection)
- HQL语句错误,疯掉了,救命啊!
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="fbm" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetResult" type="s0:ArrayOfString" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ArrayOfString">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="s:string" />
</s:sequence>
</s:complexType>
</s:schema>
</types>
<message name="HelloWorldSoapIn">
<part name="parameters" element="s0:HelloWorld" />
</message>
<message name="HelloWorldSoapOut">
<part name="parameters" element="s0:HelloWorldResponse" />
</message>
<message name="AddSoapIn">
<part name="parameters" element="s0:Add" />
</message>
<message name="AddSoapOut">
<part name="parameters" element="s0:AddResponse" />
</message>
<message name="UpdateSoapIn">
<part name="parameters" element="s0:Update" />
</message>
<message name="UpdateSoapOut">
<part name="parameters" element="s0:UpdateResponse" />
</message>
<message name="GetSoapIn">
<part name="parameters" element="s0:Get" />
</message>
<message name="GetSoapOut">
<part name="parameters" element="s0:GetResponse" />
</message>
<portType name="WSInterfaceSoap">
<operation name="HelloWorld">
<input message="s0:HelloWorldSoapIn" />
<output message="s0:HelloWorldSoapOut" />
</operation>
<operation name="Add">
<input message="s0:AddSoapIn" />
<output message="s0:AddSoapOut" />
</operation>
<operation name="Update">
<input message="s0:UpdateSoapIn" />
<output message="s0:UpdateSoapOut" />
</operation>
<operation name="Get">
<input message="s0:GetSoapIn" />
<output message="s0:GetSoapOut" />
</operation>
</portType>
<binding name="WSInterfaceSoap" type="s0:WSInterfaceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
<operation name="HelloWorld">
<soap:operation soapAction="http://tempuri.org/HelloWorld" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
<operation name="Add">
<soap:operation soapAction="http://tempuri.org/Add" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
<operation name="Update">
<soap:operation soapAction="http://tempuri.org/Update" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
<operation name="Get">
<soap:operation soapAction="http://tempuri.org/Get" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
</binding>
<service name="WSInterface">
<port name="WSInterfaceSoap" binding="s0:WSInterfaceSoap">
<soap:address location="http://192.168.1.112/WSInterface.asmx" />
</port>
</service>
</definitions>
我再把生成的ArrayOfString类的代码贴出来,大家看看。其中一些xml的定义是1.4.2不认的,不知道源代码是不是这么简单package org.tempuri;import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ArrayOfString", propOrder = {
"string"
})
public class ArrayOfString { @XmlElement(required = true, nillable = true)
protected List<String> string; public List<String> getString() {
if (string == null) {
string = new ArrayList<String>();
}
return this.string;
}
}