简体   繁体   中英

Generating java code from wsdl with axis2 eclipse plugin

i have the following wsdl from which i need to generate server java code:

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" 
            xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
            xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
            xmlns:tns="http://www.smarttrust.com/mdm/clientprovisioning_1.0/initiator" 
            xmlns:types="http://www.smarttrust.com/mdm/clientprovisioning_1.0/initiator-types" 
            xmlns:common="http://www.smarttrust.com/mdm/clientprovisioning_1.0/common" 
            targetNamespace="http://www.smarttrust.com/mdm/clientprovisioning_1.0/initiator">
    <types>
        <documentation>ClientProvisioningInitiator types are defined in web-clientprovisioning-initiator-types.xsd. 
            Types common with ClientProvisioningService are defined in web-clientprovisioning-common.xsd.
        </documentation>
        <xsd:schema targetNamespace="http://www.smarttrust.com/mdm/clientprovisioning_1.0/initiator">
            <xsd:import namespace="http://www.smarttrust.com/mdm/clientprovisioning_1.0/initiator-types" 
                schemaLocation="web-clientprovisioning-initiator-types.xsd"/>
        </xsd:schema>
    </types>
    <message name="cpDiscovery.Response">
        <documentation></documentation>
        <part name="cpDiscovery.Response" type="types:cpDiscovery.ResponseType"/>
    </message>
    <message name="cpStatus">
        <documentation></documentation>
        <part name="cpStatus" type="types:cpStatusType"/>
    </message>
    <portType name="ClientProvisioningInitiator">
        <documentation>Counterpart for the ClientProvisioningService</documentation>
        <operation name="cpDiscovery.Response">
            <documentation>Receives a response with profile information</documentation>
            <input message="tns:cpDiscovery.Response"/>
        </operation>
        <operation name="cpStatus">
            <documentation>Receives status notifications on what happens with the request and the execution status of the server.
            </documentation>
            <input message="tns:cpStatus"/>
        </operation>
    </portType>
    <binding name="clientProvisioningSOAPBinding" type="tns:ClientProvisioningInitiator">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="cpStatus">
            <soap:operation soapAction="urn:#cpStatus"/>
            <input>
                <soap:body use="literal"/>
            </input>
        </operation>
        <operation name="cpDiscovery.Response">
            <soap:operation soapAction="urn:#cpDiscovery.Response"/>
            <input>
                <soap:body use="literal"/>
            </input>
        </operation>
    </binding>
    <service name="ClientProvisioningInitiator">
        <port name="ClientProvisioningInitiator" binding="tns:clientProvisioningSOAPBinding">
            <soap:address location="http://localhost/#"/>
        </port>
    </service>
</definitions>

When i try to generate code with eclipse axis2 plugin i get java.langInterruptedException no element type is defined for message cpStatus. Whats wrong?

<message name="cpStatus">
    <documentation></documentation>
    <part name="cpStatus" type="types:cpStatusType"/>
</message>

Somewhere need to be defined the cpStatusType and it isn't. Need to be include other xml or added more lines to this xml

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM