Trying to figure out how to generate without the jaxbelement classes.  I supply 
the binding file but it seems to be ignored.

<jaxb:bindings version="2.0"
  xmlns:jaxb="http://java.sun.com/xml/ns/jaxb";
  xmlns:xs="http://www.w3.org/2001/XMLSchema";>
    <jaxb:bindings>
        <jaxb:globalBindings generateElementProperty="false" />
    </jaxb:bindings>
</jaxb:bindings>

Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -client -d 
C:\liberty_development\workspaces\services\CONWAY_SERVICE_ACCOUNTSPAYABLE_REST\.cxftmp/src
 -classdir 
C:\liberty_development\workspaces\services\CONWAY_SERVICE_ACCOUNTSPAYABLE_REST\WebContent\WEB-INF\classes
 -p 
http://www.con-way.com/BusinessServices/AP/Invoice/V1=com.xpo.ltl.accountspayable.service.ofsinvoice.ws.client
 -b 
C:\liberty_development\workspaces\services\CONWAY_SERVICE_ACCOUNTSPAYABLE_REST\api_specification\Schemas\LTLAPI\LTLAccountsPayableAPI\1.0\jaxb-bindings.xml
 -impl -validate -exsh false -dns false -dex false -wsdlLocation 
file:/C:/liberty_development/workspaces/services/CONWAY_SERVICE_ACCOUNTSPAYABLE_REST/api_specification/Schemas/LTLAPI/LTLAccountsPayableAPI/1.0/OfsInvoicingServices.wsdl<file:///C:/liberty_development/workspaces/services/CONWAY_SERVICE_ACCOUNTSPAYABLE_REST/api_specification/Schemas/LTLAPI/LTLAccountsPayableAPI/1.0/OfsInvoicingServices.wsdl>
 -verbose -fe jaxws -db jaxb -wv 1.1 
file:/C:/liberty_development/workspaces/services/CONWAY_SERVICE_ACCOUNTSPAYABLE_REST/api_specification/Schemas/LTLAPI/LTLAccountsPayableAPI/1.0/OfsInvoicingServices.wsdl<file:///C:/liberty_development/workspaces/services/CONWAY_SERVICE_ACCOUNTSPAYABLE_REST/api_specification/Schemas/LTLAPI/LTLAccountsPayableAPI/1.0/OfsInvoicingServices.wsdl>
wsdl2java - Apache CXF 3.2.6

Oct 26, 2018 6:59:00 AM org.apache.cxf.wsdl11.WSDLServiceBuilder checkForWrapped
INFO: Operation 
{http://www.con-way.com/BusinessServices/AP/Invoice/V1}QueryInvoice cannot be 
unwrapped, input message must reference global element declaration with same 
localname as operation
Oct 26, 2018 6:59:00 AM org.apache.cxf.wsdl11.WSDLServiceBuilder checkForWrapped
INFO: Operation 
{http://www.con-way.com/BusinessServices/AP/Invoice/V1}CreateInvoice cannot be 
unwrapped, input message must reference global element declaration with same 
localname as operation
<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions
     name="InvoiceServices"
     targetNamespace="http://www.con-way.com/BusinessServices/AP/Invoice/V1";
     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
     xmlns:inp1="http://www.con-way.com/BusinessServices/AP/Invoice/V1";
     xmlns:tns="http://www.con-way.com/BusinessServices/AP/Invoice/V1";
     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
    >
    <wsdl:documentation>
        
<abstractWSDL>http://host:port/soa-infra/services/APServices/APInvoiceServices!1.0/InvoiceServices.wsdl</abstractWSDL>
    </wsdl:documentation>
    <wsdl:types>
        <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
            <xsd:import namespace="http://host/BusinessServices/AP/Invoice/V1"; 
schemaLocation="http://host:port/soa-infra/services/APServices/APInvoiceServices/InvoicingServices?XSD=xsd/1.0/InvoiceEBM.xsd"/>
        </xsd:schema>
    </wsdl:types>
    <wsdl:message name="InvoiceQueryRequest">
        <wsdl:part name="part1" element="inp1:QueryInvoiceRequestEBM"/>
    </wsdl:message>
    <wsdl:message name="InvoiceQueryResponse">
        <wsdl:part name="part1" element="inp1:QueryInvoiceResponseEBM"/>
    </wsdl:message>
    <wsdl:message name="InvoiceCreateRequest">
        <wsdl:part name="part1" element="inp1:CreateInvoiceRequestEBM"/>
    </wsdl:message>
    <wsdl:message name="InvoiceCreateResponse">
        <wsdl:part name="part1" element="inp1:CreateInvoiceResponseEBM"/>
    </wsdl:message>
    <wsdl:portType name="execute_ptt">
        <wsdl:operation name="QueryInvoice">
            <wsdl:input message="inp1:InvoiceQueryRequest"/>
            <wsdl:output message="inp1:InvoiceQueryResponse"/>
        </wsdl:operation>
        <wsdl:operation name="CreateInvoice">
            <wsdl:input message="inp1:InvoiceCreateRequest"/>
            <wsdl:output message="inp1:InvoiceCreateResponse"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="execute_pttBinding" type="inp1:execute_ptt">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="QueryInvoice">
            <soap:operation style="document" soapAction="QueryInvoice"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="CreateInvoice">
            <soap:operation style="document" soapAction="CreateInvoice"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="InvoicingServices">
        <wsdl:port name="execute_pt" binding="inp1:execute_pttBinding">
            <soap:address 
location="http://host:port/soa-infra/services/APServices/APInvoiceServices/InvoicingServices"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

Reply via email to