Search in sources :

Example 1 with GetDataCenterUrlsResult

use of com.netsuite.webservices.v2014_2.platform.core.GetDataCenterUrlsResult in project components by Talend.

the class NetSuitePortTypeMockAdapterImpl method getDataCenterUrls.

public GetDataCenterUrlsResponse getDataCenterUrls(GetDataCenterUrlsRequest parameters) throws InvalidSessionFault, UnexpectedErrorFault, InsufficientPermissionFault, InvalidCredentialsFault, ExceededRequestSizeFault {
    GetDataCenterUrlsResponse response = null;
    if (port != null) {
        response = port.getDataCenterUrls(parameters);
    }
    if (response == null) {
        response = new GetDataCenterUrlsResponse();
        GetDataCenterUrlsResult result = new GetDataCenterUrlsResult();
        Status status = new Status();
        status.setIsSuccess(true);
        result.setStatus(status);
        DataCenterUrls urls = new DataCenterUrls();
        urls.setWebservicesDomain(endpointAddress.toString());
        urls.setSystemDomain(endpointAddress.toString());
        result.setDataCenterUrls(urls);
        response.setGetDataCenterUrlsResult(result);
        return response;
    }
    return response;
}
Also used : Status(com.netsuite.webservices.v2016_2.platform.core.Status) GetDataCenterUrlsResponse(com.netsuite.webservices.v2016_2.platform.messages.GetDataCenterUrlsResponse) DataCenterUrls(com.netsuite.webservices.v2016_2.platform.core.DataCenterUrls) GetDataCenterUrlsResult(com.netsuite.webservices.v2016_2.platform.core.GetDataCenterUrlsResult)

Example 2 with GetDataCenterUrlsResult

use of com.netsuite.webservices.v2014_2.platform.core.GetDataCenterUrlsResult in project components by Talend.

the class NetSuitePortTypeMockAdapterImpl method getDataCenterUrls.

public GetDataCenterUrlsResponse getDataCenterUrls(GetDataCenterUrlsRequest parameters) throws InvalidSessionFault, UnexpectedErrorFault, InsufficientPermissionFault, InvalidCredentialsFault, ExceededRequestSizeFault {
    GetDataCenterUrlsResponse response = null;
    if (port != null) {
        response = port.getDataCenterUrls(parameters);
    }
    if (response == null) {
        response = new GetDataCenterUrlsResponse();
        GetDataCenterUrlsResult result = new GetDataCenterUrlsResult();
        Status status = new Status();
        status.setIsSuccess(true);
        result.setStatus(status);
        DataCenterUrls urls = new DataCenterUrls();
        urls.setWebservicesDomain(endpointAddress.toString());
        urls.setSystemDomain(endpointAddress.toString());
        result.setDataCenterUrls(urls);
        response.setGetDataCenterUrlsResult(result);
        return response;
    }
    return response;
}
Also used : Status(com.netsuite.webservices.v2014_2.platform.core.Status) GetDataCenterUrlsResponse(com.netsuite.webservices.v2014_2.platform.messages.GetDataCenterUrlsResponse) DataCenterUrls(com.netsuite.webservices.v2014_2.platform.core.DataCenterUrls) GetDataCenterUrlsResult(com.netsuite.webservices.v2014_2.platform.core.GetDataCenterUrlsResult)

Aggregations

DataCenterUrls (com.netsuite.webservices.v2014_2.platform.core.DataCenterUrls)1 GetDataCenterUrlsResult (com.netsuite.webservices.v2014_2.platform.core.GetDataCenterUrlsResult)1 Status (com.netsuite.webservices.v2014_2.platform.core.Status)1 GetDataCenterUrlsResponse (com.netsuite.webservices.v2014_2.platform.messages.GetDataCenterUrlsResponse)1 DataCenterUrls (com.netsuite.webservices.v2016_2.platform.core.DataCenterUrls)1 GetDataCenterUrlsResult (com.netsuite.webservices.v2016_2.platform.core.GetDataCenterUrlsResult)1 Status (com.netsuite.webservices.v2016_2.platform.core.Status)1 GetDataCenterUrlsResponse (com.netsuite.webservices.v2016_2.platform.messages.GetDataCenterUrlsResponse)1