Apache CXF 관련한 질문입니다.

151 views
Skip to first unread message

Sunghun Park

unread,
Mar 15, 2012, 8:50:25 PM3/15/12
to Korea Spring User Group
안녕하세요.

이클립스 헬리오스
아파치 CXF 2.4
톰캣 6.x

기존에 만들어진 웹서비스 소스가 있는데, 여기에다 메소드를 좀 추가하고 싶은데 기존 프로젝트로는 웹서비스 생성할 때 자꾸 에러
가 떠서 아주 새로 프로젝트를 만들고 기존 소스 코드를 가져왔습니다. 웹서비스 생성은 잘 되는데요. 기존 프로젝트에서 생성되어
진 wsdl과 제가 생성한 wsdl의 네임스페이스가 다르게 지정이 되네요. 프로젝트명과 소스는 기존 서비스랑 완전히 동일한 구조
에 모든 클래스 이름도 같고 모델 클래스와 서비스 클래스에 메소드만 2개 더 추가를 했습니다.

Project name: clientServices
Interface: CcahClientServicesSEI
Service Class: CcahClientServicesImpl

CcahClientServicesImpl.java를 가지고 웹서비스를 생성했습니다. 생성된 네임스페이스는 이렇습니다.

기존 프로젝트: <wsdl:definitions name="DaoImplService"
신규 프로젝트: <wsdl:definitions name="CcahClientServicesImplService"

이렇게 다르구요. wsdl를 비교해 봐도 중간 중간 다른 부분이 많은데, 동일한 프로젝트 환경에서 웹서비스를 생성했다면
wsdl도 동일한 구조이어야 되지 않나요? 왜 그런지 잘 모르겠습니다. 혹시 어떤 부분을 체크해야 하는지 알려주시면 감사하겠습니
다.

Message has been deleted

Sunghun Park

unread,
Mar 15, 2012, 10:15:13 PM3/15/12
to Korea Spring User Group
기존에 생성된 wsdl과 신규wsdl을 첨부합니다. 포트이름은 자바소스에서 어노테이션 값을 변경하여 일치시켰습니다. 하지만 나머
지는 많이 달라 보입니다.

OLD:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="DaoImplService" targetNamespace="http://
dao.clientServices.ccah.lodestone.com/" xmlns:wsdl="http://
schemas.xmlsoap.org/wsdl/" xmlns:tns="http://
dao.clientServices.ccah.lodestone.com/" xmlns:xsd="http://www.w3.org/
2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:types>
<xs:schema elementFormDefault="unqualified"
targetNamespace="http://dao.clientServices.ccah.lodestone.com/"
version="1.0" xmlns:tns="http://
dao.clientServices.ccah.lodestone.com/" xmlns:xs="http://www.w3.org/
2001/XMLSchema">
<xs:element name="addEmergencyCoords" type="tns:addEmergencyCoords"/>
<xs:element name="addEmergencyCoordsResponse"
type="tns:addEmergencyCoordsResponse"/>
<xs:element name="addMediaNote" type="tns:addMediaNote"/>
<xs:element name="addMediaNoteResponse"
type="tns:addMediaNoteResponse"/>
<xs:element name="addMobileMessage" type="tns:addMobileMessage"/>
<xs:element name="addMobileMessageResponse"
type="tns:addMobileMessageResponse"/>
<xs:element name="deviceContactAdded" type="tns:deviceContactAdded"/>
<xs:element name="deviceContactAddedResponse"
type="tns:deviceContactAddedResponse"/>
<xs:element name="deviceEventAdded" type="tns:deviceEventAdded"/>
<xs:element name="deviceEventAddedResponse"
type="tns:deviceEventAddedResponse"/>
<xs:element name="getAdHocJourneyPlan" type="tns:getAdHocJourneyPlan"/
>
<xs:element name="getAdHocJourneyPlanResponse"
type="tns:getAdHocJourneyPlanResponse"/>
<xs:element name="getVersion" type="tns:getVersion"/>
<xs:element name="getVersionResponse" type="tns:getVersionResponse"/>
<xs:element name="gpsPing" type="tns:gpsPing"/>
<xs:element name="gpsPingResponse" type="tns:gpsPingResponse"/>
<xs:element name="verifyDeviceConfiguration"
type="tns:verifyDeviceConfiguration"/>
<xs:element name="verifyDeviceConfigurationResponse"
type="tns:verifyDeviceConfigurationResponse"/>
<xs:complexType name="deviceContactAdded">
<xs:sequence>
<xs:element minOccurs="0" name="userName" type="xs:string"/>
<xs:element minOccurs="0" name="googleId" type="xs:string"/>
<xs:element minOccurs="0" name="action" type="xs:string"/>
<xs:element minOccurs="0" name="title" type="xs:string"/>
<xs:element name="deleteAssociatedJourneys" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="deviceContactAddedResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return"
type="tns:deviceActionAddedEvent"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="deviceActionAddedEvent">
<xs:complexContent>
<xs:extension base="tns:resultBase">
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType abstract="true" name="resultBase">
<xs:sequence>
<xs:element name="errorCode" type="xs:int"/>
<xs:element minOccurs="0" name="errorMsg" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="getAdHocJourneyPlan">
<xs:sequence>
<xs:element minOccurs="0" name="userName" type="xs:string"/>
<xs:element minOccurs="0" name="passwordHash" type="xs:base64Binary"/>
<xs:element minOccurs="0" name="fromGoogleContactId" type="xs:string"/
>
<xs:element minOccurs="0" name="toGoogleContactId" type="xs:string"/>
<xs:element name="fromLat" type="xs:double"/>
<xs:element name="fromLong" type="xs:double"/>
<xs:element name="toLat" type="xs:double"/>
<xs:element name="toLong" type="xs:double"/>
<xs:element minOccurs="0" name="optimize" type="xs:string"/>
<xs:element name="arriveBy" type="xs:boolean"/>
<xs:element name="wheelchair" type="xs:boolean"/>
<xs:element name="maxWalkDistance" type="xs:int"/>
<xs:element minOccurs="0" name="mode" type="xs:string"/>
<xs:element minOccurs="0" name="typeOfDay" type="xs:string"/>
<xs:element minOccurs="0" name="timeOfDay" type="xs:string"/>
<xs:element minOccurs="0" name="toDisplayName" type="xs:string"/>
<xs:element minOccurs="0" name="fromDisplayName" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="getAdHocJourneyPlanResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return"
type="tns:adHocJourneyResponse"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="adHocJourneyResponse">
<xs:complexContent>
<xs:extension base="tns:resultBase">
<xs:sequence>
<xs:element name="fromLat" type="xs:double"/>
<xs:element name="fromLong" type="xs:double"/>
<xs:element name="toLat" type="xs:double"/>
<xs:element name="toLong" type="xs:double"/>
<xs:element minOccurs="0" name="urlQuery" type="xs:string"/>
<xs:element minOccurs="0" name="jsonResonse" type="xs:string"/>
<xs:element name="otpResponseInMillis" type="xs:long"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="gpsPing">
<xs:sequence>
<xs:element minOccurs="0" name="userName" type="xs:string"/>
<xs:element minOccurs="0" name="passwordHash" type="xs:base64Binary"/>
<xs:element minOccurs="0" name="mobilePhone" type="xs:string"/>
<xs:element minOccurs="0" name="imsi" type="xs:string"/>
<xs:element minOccurs="0" name="imei" type="xs:string"/>
<xs:element name="latitude" type="xs:double"/>
<xs:element name="longitude" type="xs:double"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="gpsPingResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="tns:gpsPingResult"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="gpsPingResult">
<xs:complexContent>
<xs:extension base="tns:resultBase">
<xs:sequence>
<xs:element minOccurs="0" name="userName" type="xs:string"/>
<xs:element name="latitude" type="xs:double"/>
<xs:element name="longitude" type="xs:double"/>
<xs:element maxOccurs="unbounded" minOccurs="0"
name="journeySyncDetails" nillable="true" type="tns:journeySyncDetail"/
>
<xs:element maxOccurs="unbounded" minOccurs="0" name="systemSettings"
nillable="true" type="tns:systemSetting"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="journeySyncDetail">
<xs:sequence>
<xs:element name="JourneyId" type="xs:long"/>
<xs:element minOccurs="0" name="JourneyName" type="xs:string"/>
<xs:element minOccurs="0" name="JourneyDescription" type="xs:string"/>
<xs:element minOccurs="0" name="JourneyData" type="xs:string"/>
<xs:element minOccurs="0" name="JourneyNotes" type="xs:string"/>
<xs:element name="JourneyActive" type="xs:boolean"/>
<xs:element minOccurs="0" name="StartLoiName" type="xs:string"/>
<xs:element minOccurs="0" name="StartLoiDescription" type="xs:string"/
>
<xs:element minOccurs="0" name="StartLoiType" type="xs:string"/>
<xs:element minOccurs="0" name="StartLoiGoogleContactId"
type="xs:string"/>
<xs:element minOccurs="0" name="StartLoiGoogleAddressId"
type="xs:string"/>
<xs:element minOccurs="0" name="EndLoiName" type="xs:string"/>
<xs:element minOccurs="0" name="EndLoiDescription" type="xs:string"/>
<xs:element minOccurs="0" name="EndLoiType" type="xs:string"/>
<xs:element minOccurs="0" name="EndLoiGoogleContactId"
type="xs:string"/>
<xs:element minOccurs="0" name="EndLoiGoogleAddressId"
type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="systemSetting">
<xs:sequence>
<xs:element minOccurs="0" name="name" type="xs:string"/>
<xs:element minOccurs="0" name="value" type="xs:string"/>
<xs:element minOccurs="0" name="type" type="xs:string"/>
<xs:element minOccurs="0" name="binaryValue" type="xs:base64Binary"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="addMediaNote">
<xs:sequence>
<xs:element minOccurs="0" name="userName" type="xs:string"/>
<xs:element minOccurs="0" name="mediaTitle" type="xs:string"/>
<xs:element minOccurs="0" name="mediaTag" type="xs:string"/>
<xs:element minOccurs="0" name="mediaType" type="xs:string"/>
<xs:element minOccurs="0" name="mediaData" type="xs:base64Binary"/>
<xs:element minOccurs="0" name="googleCalendarId" type="xs:string"/>
<xs:element name="deviceNoteId" type="xs:int"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="addMediaNoteResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="tns:addMediaNoteResult"/
>
</xs:sequence>
</xs:complexType>
<xs:complexType name="addMediaNoteResult">
<xs:complexContent>
<xs:extension base="tns:resultBase">
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="addEmergencyCoords">
<xs:sequence>
<xs:element minOccurs="0" name="userName" type="xs:string"/>
<xs:element minOccurs="0" name="passwordHash" type="xs:base64Binary"/>
<xs:element minOccurs="0" name="mobilePhone" type="xs:string"/>
<xs:element minOccurs="0" name="imsi" type="xs:string"/>
<xs:element minOccurs="0" name="imei" type="xs:string"/>
<xs:element name="latitude" type="xs:double"/>
<xs:element name="longitude" type="xs:double"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="addEmergencyCoordsResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return"
type="tns:addEmergencyCoordsResult"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="addEmergencyCoordsResult">
<xs:complexContent>
<xs:extension base="tns:resultBase">
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="getVersion">
<xs:sequence/>
</xs:complexType>
<xs:complexType name="getVersionResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="tns:getVersionResult"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="getVersionResult">
<xs:complexContent>
<xs:extension base="tns:resultBase">
<xs:sequence>
<xs:element minOccurs="0" name="Title" type="xs:string"/>
<xs:element minOccurs="0" name="Vendor" type="xs:string"/>
<xs:element minOccurs="0" name="Version" type="xs:string"/>
<xs:element minOccurs="0" name="BuildDate" type="xs:string"/>
<xs:element minOccurs="0" name="DbVersion" type="xs:string"/>
<xs:element minOccurs="0" name="DbBuildDate" type="xs:string"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="verifyDeviceConfiguration">
<xs:sequence>
<xs:element minOccurs="0" name="userName" type="xs:string"/>
<xs:element minOccurs="0" name="passwordHash" type="xs:base64Binary"/>
<xs:element minOccurs="0" name="mobilePhone" type="xs:string"/>
<xs:element minOccurs="0" name="imsi" type="xs:string"/>
<xs:element minOccurs="0" name="imei" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="verifyDeviceConfigurationResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return"
type="tns:verifyDeviceConfigResult"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="verifyDeviceConfigResult">
<xs:complexContent>
<xs:extension base="tns:resultBase">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="systemSettings"
nillable="true" type="tns:systemSetting"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="addMobileMessage">
<xs:sequence>
<xs:element minOccurs="0" name="userName" type="xs:string"/>
<xs:element minOccurs="0" name="type" type="xs:string"/>
<xs:element minOccurs="0" name="mobileNumber" type="xs:string"/>
<xs:element minOccurs="0" name="smsMessageText" type="xs:string"/>
<xs:element name="callDuration" type="xs:long"/>
<xs:element minOccurs="0" name="googleId" type="xs:string"/>
<xs:element minOccurs="0" name="contactName" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="addMobileMessageResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return"
type="tns:addMobileMessageResult"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="addMobileMessageResult">
<xs:complexContent>
<xs:extension base="tns:resultBase">
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="deviceEventAdded">
<xs:sequence>
<xs:element minOccurs="0" name="userName" type="xs:string"/>
<xs:element minOccurs="0" name="googleId" type="xs:string"/>
<xs:element minOccurs="0" name="action" type="xs:string"/>
<xs:element minOccurs="0" name="title" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="deviceEventAddedResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return"
type="tns:deviceActionAddedEvent"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</wsdl:types>
<wsdl:message name="getAdHocJourneyPlanResponse">
<wsdl:part name="parameters"
element="tns:getAdHocJourneyPlanResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="addMediaNote">
<wsdl:part name="parameters" element="tns:addMediaNote">
</wsdl:part>
</wsdl:message>
<wsdl:message name="deviceEventAddedResponse">
<wsdl:part name="parameters"
element="tns:deviceEventAddedResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="gpsPing">
<wsdl:part name="parameters" element="tns:gpsPing">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getVersionResponse">
<wsdl:part name="parameters" element="tns:getVersionResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="verifyDeviceConfiguration">
<wsdl:part name="parameters"
element="tns:verifyDeviceConfiguration">
</wsdl:part>
</wsdl:message>
<wsdl:message name="addMobileMessageResponse">
<wsdl:part name="parameters"
element="tns:addMobileMessageResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="deviceEventAdded">
<wsdl:part name="parameters" element="tns:deviceEventAdded">
</wsdl:part>
</wsdl:message>
<wsdl:message name="addEmergencyCoordsResponse">
<wsdl:part name="parameters"
element="tns:addEmergencyCoordsResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="addMobileMessage">
<wsdl:part name="parameters" element="tns:addMobileMessage">
</wsdl:part>
</wsdl:message>
<wsdl:message name="deviceContactAdded">
<wsdl:part name="parameters" element="tns:deviceContactAdded">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getAdHocJourneyPlan">
<wsdl:part name="parameters" element="tns:getAdHocJourneyPlan">
</wsdl:part>
</wsdl:message>
<wsdl:message name="addMediaNoteResponse">
<wsdl:part name="parameters" element="tns:addMediaNoteResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="addEmergencyCoords">
<wsdl:part name="parameters" element="tns:addEmergencyCoords">
</wsdl:part>
</wsdl:message>
<wsdl:message name="gpsPingResponse">
<wsdl:part name="parameters" element="tns:gpsPingResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="deviceContactAddedResponse">
<wsdl:part name="parameters"
element="tns:deviceContactAddedResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="verifyDeviceConfigurationResponse">
<wsdl:part name="parameters"
element="tns:verifyDeviceConfigurationResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getVersion">
<wsdl:part name="parameters" element="tns:getVersion">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="ccahClientServicesSEI">
<wsdl:operation name="deviceContactAdded">
<wsdl:input name="deviceContactAdded"
message="tns:deviceContactAdded">
</wsdl:input>
<wsdl:output name="deviceContactAddedResponse"
message="tns:deviceContactAddedResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getAdHocJourneyPlan">
<wsdl:input name="getAdHocJourneyPlan"
message="tns:getAdHocJourneyPlan">
</wsdl:input>
<wsdl:output name="getAdHocJourneyPlanResponse"
message="tns:getAdHocJourneyPlanResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="gpsPing">
<wsdl:input name="gpsPing" message="tns:gpsPing">
</wsdl:input>
<wsdl:output name="gpsPingResponse"
message="tns:gpsPingResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="addMediaNote">
<wsdl:input name="addMediaNote" message="tns:addMediaNote">
</wsdl:input>
<wsdl:output name="addMediaNoteResponse"
message="tns:addMediaNoteResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="addEmergencyCoords">
<wsdl:input name="addEmergencyCoords"
message="tns:addEmergencyCoords">
</wsdl:input>
<wsdl:output name="addEmergencyCoordsResponse"
message="tns:addEmergencyCoordsResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getVersion">
<wsdl:input name="getVersion" message="tns:getVersion">
</wsdl:input>
<wsdl:output name="getVersionResponse"
message="tns:getVersionResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="verifyDeviceConfiguration">
<wsdl:input name="verifyDeviceConfiguration"
message="tns:verifyDeviceConfiguration">
</wsdl:input>
<wsdl:output name="verifyDeviceConfigurationResponse"
message="tns:verifyDeviceConfigurationResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="addMobileMessage">
<wsdl:input name="addMobileMessage"
message="tns:addMobileMessage">
</wsdl:input>
<wsdl:output name="addMobileMessageResponse"
message="tns:addMobileMessageResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="deviceEventAdded">
<wsdl:input name="deviceEventAdded"
message="tns:deviceEventAdded">
</wsdl:input>
<wsdl:output name="deviceEventAddedResponse"
message="tns:deviceEventAddedResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="DaoImplServiceSoapBinding"
type="tns:ccahClientServicesSEI">
<soap:binding style="document" transport="http://
schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="deviceContactAdded">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="deviceContactAdded">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="deviceContactAddedResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getAdHocJourneyPlan">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="getAdHocJourneyPlan">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getAdHocJourneyPlanResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="gpsPing">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="gpsPing">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="gpsPingResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="addMediaNote">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="addMediaNote">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="addMediaNoteResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="addEmergencyCoords">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="addEmergencyCoords">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="addEmergencyCoordsResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getVersion">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="getVersion">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getVersionResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="verifyDeviceConfiguration">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="verifyDeviceConfiguration">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="verifyDeviceConfigurationResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="addMobileMessage">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="addMobileMessage">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="addMobileMessageResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="deviceEventAdded">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="deviceEventAdded">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="deviceEventAddedResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="DaoImplService">
<wsdl:port name="DaoImplPort"
binding="tns:DaoImplServiceSoapBinding">
<soap:address location="http://localhost:8080/clientServices/
services/DaoImplPort"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - -
NEW:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="DaoImplService" targetNamespace="http://
dao.clientServices.ccah.lodestone.com/" xmlns:wsdl="http://
schemas.xmlsoap.org/wsdl/" xmlns:tns="http://
dao.clientServices.ccah.lodestone.com/" xmlns:xsd="http://www.w3.org/
2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://dao.clientServices.ccah.lodestone.com/"
schemaLocation="ccahclientservicesimpl_schema1.xsd"/>
</schema>
</wsdl:types>
<wsdl:message name="getAdHocJourneyPlanResponse">
<wsdl:part name="parameters"
element="tns:getAdHocJourneyPlanResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="addMediaNote">
<wsdl:part name="parameters" element="tns:addMediaNote">
</wsdl:part>
</wsdl:message>
<wsdl:message name="deviceEventAddedResponse">
<wsdl:part name="parameters"
element="tns:deviceEventAddedResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="gpsPing">
<wsdl:part name="parameters" element="tns:gpsPing">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getVersionResponse">
<wsdl:part name="parameters" element="tns:getVersionResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="addNote">
<wsdl:part name="parameters" element="tns:addNote">
</wsdl:part>
</wsdl:message>
<wsdl:message name="loginCcahUserByUserNameResponse">
<wsdl:part name="parameters"
element="tns:loginCcahUserByUserNameResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="verifyDeviceConfiguration">
<wsdl:part name="parameters"
element="tns:verifyDeviceConfiguration">
</wsdl:part>
</wsdl:message>
<wsdl:message name="addMobileMessageResponse">
<wsdl:part name="parameters"
element="tns:addMobileMessageResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="addNoteResponse">
<wsdl:part name="parameters" element="tns:addNoteResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="deviceEventAdded">
<wsdl:part name="parameters" element="tns:deviceEventAdded">
</wsdl:part>
</wsdl:message>
<wsdl:message name="addEmergencyCoordsResponse">
<wsdl:part name="parameters"
element="tns:addEmergencyCoordsResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="addMobileMessage">
<wsdl:part name="parameters" element="tns:addMobileMessage">
</wsdl:part>
</wsdl:message>
<wsdl:message name="deviceContactAdded">
<wsdl:part name="parameters" element="tns:deviceContactAdded">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getAdHocJourneyPlan">
<wsdl:part name="parameters" element="tns:getAdHocJourneyPlan">
</wsdl:part>
</wsdl:message>
<wsdl:message name="addMediaNoteResponse">
<wsdl:part name="parameters" element="tns:addMediaNoteResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="loginCcahUserByUserName">
<wsdl:part name="parameters"
element="tns:loginCcahUserByUserName">
</wsdl:part>
</wsdl:message>
<wsdl:message name="gpsPingResponse">
<wsdl:part name="parameters" element="tns:gpsPingResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="addEmergencyCoords">
<wsdl:part name="parameters" element="tns:addEmergencyCoords">
</wsdl:part>
</wsdl:message>
<wsdl:message name="verifyDeviceConfigurationResponse">
<wsdl:part name="parameters"
element="tns:verifyDeviceConfigurationResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="deviceContactAddedResponse">
<wsdl:part name="parameters"
element="tns:deviceContactAddedResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getVersion">
<wsdl:part name="parameters" element="tns:getVersion">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="CcahClientServicesSEI">
<wsdl:operation name="deviceContactAdded">
<wsdl:input name="deviceContactAdded"
message="tns:deviceContactAdded">
</wsdl:input>
<wsdl:output name="deviceContactAddedResponse"
message="tns:deviceContactAddedResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getAdHocJourneyPlan">
<wsdl:input name="getAdHocJourneyPlan"
message="tns:getAdHocJourneyPlan">
</wsdl:input>
<wsdl:output name="getAdHocJourneyPlanResponse"
message="tns:getAdHocJourneyPlanResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="gpsPing">
<wsdl:input name="gpsPing" message="tns:gpsPing">
</wsdl:input>
<wsdl:output name="gpsPingResponse"
message="tns:gpsPingResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="addMediaNote">
<wsdl:input name="addMediaNote" message="tns:addMediaNote">
</wsdl:input>
<wsdl:output name="addMediaNoteResponse"
message="tns:addMediaNoteResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="addEmergencyCoords">
<wsdl:input name="addEmergencyCoords"
message="tns:addEmergencyCoords">
</wsdl:input>
<wsdl:output name="addEmergencyCoordsResponse"
message="tns:addEmergencyCoordsResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getVersion">
<wsdl:input name="getVersion" message="tns:getVersion">
</wsdl:input>
<wsdl:output name="getVersionResponse"
message="tns:getVersionResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="addNote">
<wsdl:input name="addNote" message="tns:addNote">
</wsdl:input>
<wsdl:output name="addNoteResponse"
message="tns:addNoteResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="verifyDeviceConfiguration">
<wsdl:input name="verifyDeviceConfiguration"
message="tns:verifyDeviceConfiguration">
</wsdl:input>
<wsdl:output name="verifyDeviceConfigurationResponse"
message="tns:verifyDeviceConfigurationResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="loginCcahUserByUserName">
<wsdl:input name="loginCcahUserByUserName"
message="tns:loginCcahUserByUserName">
</wsdl:input>
<wsdl:output name="loginCcahUserByUserNameResponse"
message="tns:loginCcahUserByUserNameResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="addMobileMessage">
<wsdl:input name="addMobileMessage"
message="tns:addMobileMessage">
</wsdl:input>
<wsdl:output name="addMobileMessageResponse"
message="tns:addMobileMessageResponse">
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="deviceEventAdded">
<wsdl:input name="deviceEventAdded"
message="tns:deviceEventAdded">
</wsdl:input>
<wsdl:output name="deviceEventAddedResponse"
message="tns:deviceEventAddedResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="DaoImplServiceSoapBinding"
type="tns:CcahClientServicesSEI">
<soap:binding style="document" transport="http://
schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="deviceContactAdded">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="deviceContactAdded">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="deviceContactAddedResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getAdHocJourneyPlan">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="getAdHocJourneyPlan">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getAdHocJourneyPlanResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="gpsPing">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="gpsPing">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="gpsPingResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="addMediaNote">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="addMediaNote">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="addMediaNoteResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="addEmergencyCoords">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="addEmergencyCoords">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="addEmergencyCoordsResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getVersion">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="getVersion">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getVersionResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="addNote">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="addNote">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="addNoteResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="loginCcahUserByUserName">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="loginCcahUserByUserName">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="loginCcahUserByUserNameResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="verifyDeviceConfiguration">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="verifyDeviceConfiguration">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="verifyDeviceConfigurationResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="addMobileMessage">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="addMobileMessage">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="addMobileMessageResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="deviceEventAdded">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="deviceEventAdded">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="deviceEventAddedResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="DaoImplService">
<wsdl:port name="DaoImplPort"
binding="tns:DaoImplServiceSoapBinding">
<soap:address location="http://localhost:8080/clientServices/
services/DaoImplPort"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

Sunghun Park

unread,
Mar 15, 2012, 10:16:06 PM3/15/12
to Korea Spring User Group
글이 기나까 많이 잘리네요.
> <xs:element minOccurs="0" name="Version" ...
>
> read more >>

Sunghun Park

unread,
Mar 15, 2012, 10:17:49 PM3/15/12
to Korea Spring User Group
죄송합니다. WSDL이 길어서 엉뚱하게 잘려서 OLD와 NEW가 바뀌었네요.
> ...
>
> read more >>

Sungchul Park

unread,
Mar 16, 2012, 4:11:49 AM3/16/12
to ks...@googlegroups.com
WSDL을 자동생성하면 자동생성 도구와 버전에 따라 다른 결과가 나올 수 있습
니다.
이를 보장하려면 정확히 동일한 상황에서 생성하셔야 하는데 어떤 요소가 해
당 도구에 영향을 주는지 확실치 않으니 결국 WSDL 자동 생성은 동일한 결과
를 보장받을 수 없다고 보시는 편이 맞습니다.
java2wsdl을 쓰셨는지 eclipse의 기능을 쓰셨는지 모르겠지만 일단 자동생성
을 해서 사용중이라면 다시 생성하지 마시고 수정 사항을 수작업으로 반영하
시라고 조언해드리고 싶습니다.

참고로, 스프링 웹 서비스(http://www.springsource.org/spring-web-
services)라는 프로젝트가 있습니다. 이 프로젝트는 계약 선행 개발(또는 계
약에 의한 개발)이라는 개념을 따르는데, 이 개념은 간단히 말해 WSDL을 계약
문서로 보고 WSDL을 수작업으로 만든 후에 이 계약 사항을 기준으로 (자바)
코드를 자동 또는 수작업으로 만들어 애플리케이션을 개발하도록 합니다.
WSDL은 웹 서비스 제공자와 소비자 사이의 계약문서이므로 이를 동일한 결과
가 보장되지 않는 자동 생성으로 만들면 계약으로서 의미가 없다고 보는 거죠.

12. 3. 16. 오전 9:50, Sunghun Park 쓴 글:

Sunghun Park

unread,
Mar 19, 2012, 5:44:28 PM3/19/12
to Korea Spring User Group
답변 감사합니다. 계속해서 공부 중이긴 한데, 이것 저것 해야될 것이 많아서 깊이 있게 들어가려면 시간이 많이 걸릴 것 같아
요. 답변이 많은 도움이 되었습니다.
Reply all
Reply to author
Forward
0 new messages