Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
192 views
in Technique[技术] by (71.8m points)

java - 在我的xml中使用jaxb2生成Java类而没有wsdl:types标记(generate java classes with jaxb2 without wsdl:types tag in my xml)

I've a wsdl file that has no wsdl:types tag, when i want to generate java classes based on wsdl nothing was generated

(我有一个没有wsdl:types标记的wsdl文件,当我想基于wsdl生成Java类时,什么也没生成)
this is my wsdl file

(这是我的wsdl文件)

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="urn:Foo" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="urn:Foo" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:types />
    <wsdl:message name="RequestTokenSoapIn">
        <wsdl:part name="TermID" type="s:string" />
        <wsdl:part name="ResNum" type="s:string" />
        <wsdl:part name="TotalAmount" type="s:long" />
        <wsdl:part name="SegAmount1" type="s:long" />
        <wsdl:part name="SegAmount2" type="s:long" />
        <wsdl:part name="SegAmount3" type="s:long" />
        <wsdl:part name="SegAmount4" type="s:long" />
        <wsdl:part name="SegAmount5" type="s:long" />
        <wsdl:part name="SegAmount6" type="s:long" />
        <wsdl:part name="AdditionalData1" type="s:string" />
        <wsdl:part name="AdditionalData2" type="s:string" />
        <wsdl:part name="Wage" type="s:long" />
        <wsdl:part name="RedirectUrl" type="s:string" />
    </wsdl:message>
    <wsdl:message name="RequestTokenSoapOut">
        <wsdl:part name="result" type="s:string" />
    </wsdl:message>
    <wsdl:message name="RequestMultiSettleTypeTokenSoapIn">
        <wsdl:part name="TermID" type="s:string" />
        <wsdl:part name="ResNum" type="s:string" />
        <wsdl:part name="Amounts" type="s:string" />
        <wsdl:part name="TotalAmount" type="s:long" />
        <wsdl:part name="SegAmount1" type="s:long" />
        <wsdl:part name="SegAmount2" type="s:long" />
        <wsdl:part name="SegAmount3" type="s:long" />
        <wsdl:part name="SegAmount4" type="s:long" />
        <wsdl:part name="SegAmount5" type="s:long" />
        <wsdl:part name="SegAmount6" type="s:long" />
        <wsdl:part name="AdditionalData1" type="s:string" />
        <wsdl:part name="AdditionalData2" type="s:string" />
        <wsdl:part name="Wage" type="s:long" />
        <wsdl:part name="RedirectUrl" type="s:string" />
    </wsdl:message>
    <wsdl:message name="RequestMultiSettleTypeTokenSoapOut">
        <wsdl:part name="result" type="s:string" />
    </wsdl:message>
    <wsdl:portType name="PaymentIFBindingSoap">
        <wsdl:operation name="RequestToken">
            <wsdl:input message="tns:RequestTokenSoapIn" />
            <wsdl:output message="tns:RequestTokenSoapOut" />
        </wsdl:operation>
        <wsdl:operation name="RequestMultiSettleTypeToken">
            <wsdl:input message="tns:RequestMultiSettleTypeTokenSoapIn" />
            <wsdl:output message="tns:RequestMultiSettleTypeTokenSoapOut" />
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="PaymentIFBindingSoap" type="tns:PaymentIFBindingSoap">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
        <wsdl:operation name="RequestToken">
            <soap:operation soapAction="RequestToken" style="rpc" />
            <wsdl:input>
                <soap:body use="encoded" namespace="urn:Foo" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
            </wsdl:input>
            <wsdl:output>
                <soap:body use="encoded" namespace="urn:Foo" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="RequestMultiSettleTypeToken">
            <soap:operation soapAction="RequestMultiSettleTypeToken" style="rpc" />
            <wsdl:input>
                <soap:body use="encoded" namespace="urn:Foo" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
            </wsdl:input>
            <wsdl:output>
                <soap:body use="encoded" namespace="urn:Foo" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="PaymentIFBindingSoap12" type="tns:PaymentIFBindingSoap">
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
        <wsdl:operation name="RequestToken">
            <soap12:operation soapAction="RequestToken" style="rpc" />
            <wsdl:input>
                <soap12:body use="encoded" namespace="urn:Foo" encodingStyle="http://www.w3.org/2003/05/soap-encoding" />
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="encoded" namespace="urn:Foo" encodingStyle="http://www.w3.org/2003/05/soap-encoding" />
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="RequestMultiSettleTypeToken">
            <soap12:operation soapAction="RequestMultiSettleTypeToken" style="rpc" />
            <wsdl:input>
                <soap12:body use="encoded" namespace="urn:Foo" encodingStyle="http://www.w3.org/2003/05/soap-encoding" />
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="encoded" namespace="urn:Foo" encodingStyle="http://www.w3.org/2003/05/soap-encoding" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="PaymentIFBinding">
        <wsdl:port name="PaymentIFBindingSoap" binding="tns:PaymentIFBindingSoap">
            <soap:address location="https://sep.shaparak.ir/payments/initpayment.asmx" />
        </wsdl:port>
        <wsdl:port name="PaymentIFBindingSoap12" binding="tns:PaymentIFBindingSoap12">
            <soap12:address location="https://sep.shaparak.ir/payments/initpayment.asmx" />
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

can anybody solve my problem?

(谁能解决我的问题?)

  ask by Farrokh translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...