terminallocationnotificationserviceskeleton.java

来自「电信sms接口源代码」· Java 代码 · 共 90 行

JAVA
90
字号
/**
 * TerminalLocationNotificationServiceSkeleton.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis2 version: 1.3  Built on : Aug 10, 2007 (04:45:47 LKT)
 */
package cn.com.chinatelecom.www.wsdl.ctcc.terminal_location.notification.v2_1.service;

import cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationEndResponse;
import cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationEndResponse7;
import cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationErrorResponse;
import cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationErrorResponse8;
import cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotificationResponse;
import cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotificationResponse5;
import cn.com.chinatelecom.www.schema.ctcc.terminal_location.v2_1.LocationInfo;

/**
 *  TerminalLocationNotificationServiceSkeleton java skeleton for the axisService
 */
public class TerminalLocationNotificationServiceSkeleton {
    /**
     * Auto generated method signature
     * @param locationNotification
     */
    public cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotificationResponse5 locationNotification(
        cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationNotification4 locationNotification) {
        //TODO : fill this with the necessary business logic
        //打印消息
        System.out.println("Get locationNotification message :");
        System.out.println("    Correlator = " + locationNotification.getLocationNotification().getCorrelator());
        System.out.println("       Criteria = " + locationNotification.getLocationNotification().getCriteria().getValue());
        
        int size = locationNotification.getLocationNotification().getData().length;
        LocationInfo[] info = locationNotification.getLocationNotification().getData();
        for (int i=0; i < size; i++)
        {
            System.out.println("The number " + i + " address = " + info[i].getAddress().getSchemeSpecificPart());
            System.out.println("The number " + i + " latitude = " + info[i].getLatitude());
            System.out.println("The number " + i + " longitude = " + info[i].getLongitude());
            System.out.println("The number " + i + " altitude = " + info[i].getAltitude());
            System.out.println("The number " + i + " accuracy = " + info[i].getAccuracy());
        }
        
        LocationNotificationResponse5 locationNotify = new LocationNotificationResponse5();
        LocationNotificationResponse rsp = new LocationNotificationResponse();
        
        locationNotify.setLocationNotificationResponse(rsp);
        return locationNotify;
    }

    /**
     * Auto generated method signature
     * @param locationError
     */
    public cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationErrorResponse8 locationError(
        cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationError9 locationError) {
        //TODO : fill this with the necessary business logic
        //打印消息
        System.out.println("Get locationError message :");
        System.out.println("    Correlator = " + locationError.getLocationError().getCorrelator());
        System.out.println("       Address = " + locationError.getLocationError().getAddress());
        System.out.println("       Error id = " + locationError.getLocationError().getReason().getMessageId());
        //System.out.println("       Error id = " + locationError.getLocationError().getReason().getVariables());
        
        LocationErrorResponse8 error = new LocationErrorResponse8();
        LocationErrorResponse rsp = new LocationErrorResponse();
        error.setLocationErrorResponse(rsp);
        
        return error;
    }

    /**
     * Auto generated method signature
     * @param locationEnd
     */
    public cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationEndResponse7 locationEnd(
        cn.com.chinatelecom.www.schema.ctcc.terminal_location.notification.v2_1.local.LocationEnd6 locationEnd) {
        //TODO : fill this with the necessary business logic
        //打印消息
        System.out.println("Get locationEnd message :");
        System.out.println("    Correlator = " + locationEnd.getLocationEnd().getCorrelator());

        
        LocationEndResponse7 end = new LocationEndResponse7();
        LocationEndResponse rsp = new LocationEndResponse();
        end.setLocationEndResponse(rsp);
        return end;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?