2017-09-14 14 views
-1

은 가정하자 나는wsdl이 다른 메소드를 사용하여 웹 서비스 클라이언트를 생성하면 다른 코드가 생성됩니까? 우리가 Apacje 축, 아파치 CXF 1.0 또는 wsimport의를 사용하여 웹 서비스 클라이언트 코드를 생성하는 경우

<definitions name="HelloService" 
    targetNamespace="http://www.examples.com/wsdl/HelloService.wsdl" 
    xmlns="http://schemas.xmlsoap.org/wsdl/" 
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
    xmlns:tns="http://www.examples.com/wsdl/HelloService.wsdl" 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 

    <message name="SayHelloRequest"> 
     <part name="firstName" type="xsd:string"/> 
    </message> 

    <message name="SayHelloResponse"> 
     <part name="greeting" type="xsd:string"/> 
    </message> 

    <portType name="Hello_PortType"> 
     <operation name="sayHello"> 
     <input message="tns:SayHelloRequest"/> 
     <output message="tns:SayHelloResponse"/> 
     </operation> 
    </portType> 

    <binding name="Hello_Binding" type="tns:Hello_PortType"> 
     <soap:binding style="rpc" 
     transport="http://schemas.xmlsoap.org/soap/http"/> 
     <operation name="sayHello"> 
     <soap:operation soapAction="sayHello"/> 
     <input> 
      <soap:body 
       encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
       namespace="urn:examples:helloservice" 
       use="encoded"/> 
     </input> 

     <output> 
      <soap:body 
       encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
       namespace="urn:examples:helloservice" 
       use="encoded"/> 
     </output> 
     </operation> 
    </binding> 

    <service name="Hello_Service"> 
     <documentation>WSDL File for HelloService</documentation> 
     <port binding="tns:Hello_Binding" name="Hello_Port"> 
     <soap:address 
      location="http://www.examples.com/SayHello/" /> 
     </port> 
    </service> 
</definitions> 

아래와 같이 WSDL 파일이 있습니다. 생성 된 코드가 다를 수 있습니까 (주석 포함 안함)? 생성 된 클래스 구조 또는 클래스 수입니다.

답변

0

예, 생성 된 코드는 다릅니다. CXF und wsimport는 JAXB XJC를 공통 부분으로 공유하지만 전반적으로이를 대체품으로 사용할 수는 없습니다.