• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java SoapActionCallback类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.springframework.ws.soap.client.core.SoapActionCallback的典型用法代码示例。如果您正苦于以下问题:Java SoapActionCallback类的具体用法?Java SoapActionCallback怎么用?Java SoapActionCallback使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SoapActionCallback类属于org.springframework.ws.soap.client.core包,在下文中一共展示了SoapActionCallback类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: updateCustomerResponse

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
public UpdateCustomerResponse updateCustomerResponse(Profile profile) {

        UpdateCustomerRequest request = new UpdateCustomerRequest();

        Customer customer = new Customer();
        customer.setFirstName(profile.getFirstName());
        customer.setLastName(profile.getLastName());
        customer.setEmail(profile.getEmail());
        customer.setUsername(profile.getUsername());

        request.setCustomer(customer);

        log.info("Updating customer for " + customer.getUsername());

        return (UpdateCustomerResponse) getWebServiceTemplate()
                .marshalSendAndReceive(
                        String.format("%s/v1/customers", this.getDefaultUri()),
                        request,
                        new SoapActionCallback(ROOT_NAMESPACE + UPDATE_CUSTOMER_NAMESPACE));
    }
 
开发者ID:kbastani,项目名称:cloud-native-microservice-strangler-example,代码行数:21,代码来源:CustomerClient.java


示例2: getLiveScore

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetLiveScoreResultDto> getLiveScore() {
    GetLiveScore request = new GetLiveScore();
    request.setApiKey(apiKey);

    GetLiveScoreResponse response = (GetLiveScoreResponse) getWebServiceTemplate().
            marshalSendAndReceive(
                    request,
                    new SoapActionCallback(
                            "http://xmlsoccer.com/GetLiveScore"));

    GetLiveScoreResultXML getLiveScoreResultXML = response.getGetLiveScoreResult().getContent();

    Type listType = new TypeToken<List<GetLiveScoreResultDto>>() {
    }.getType();

    return modelMapper.map(getLiveScoreResultXML.getMatch(), listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:19,代码来源:XmlSoccerServiceImpl.java


示例3: getLiveScoreByLeague

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetLiveScoreResultDto> getLiveScoreByLeague(String leagueName) {
    GetLiveScoreByLeague request = new GetLiveScoreByLeague();
    request.setApiKey(apiKey);
    request.setLeague(leagueName);

    GetLiveScoreByLeagueResponse response = (GetLiveScoreByLeagueResponse) getWebServiceTemplate().
            marshalSendAndReceive(
                    request,
                    new SoapActionCallback(
                            "http://xmlsoccer.com/GetLiveScoreByLeague"));

    GetLiveScoreResultXML getLiveScoreResultXML = response.getGetLiveScoreByLeagueResult().getContent();

    Type listType = new TypeToken<List<GetLiveScoreResultDto>>() {
    }.getType();

    return modelMapper.map(getLiveScoreResultXML.getMatch(), listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:20,代码来源:XmlSoccerServiceImpl.java


示例4: getLeagueStandingsBySeason

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetLeagueStandingsResultDto> getLeagueStandingsBySeason(String leagueName, String season) {
    GetLeagueStandingsBySeason request = new GetLeagueStandingsBySeason();
    request.setApiKey(apiKey);
    request.setLeague(leagueName);
    request.setSeasonDateString(season);

    GetLeagueStandingsBySeasonResponse response =
            (GetLeagueStandingsBySeasonResponse) getWebServiceTemplate().
                    marshalSendAndReceive(
                            request,
                            new SoapActionCallback(
                                    "http://xmlsoccer.com/GetLeagueStandingsBySeason"));

    GetLeagueStandingsBySeasonResultXML getLeagueStandingsBySeasonResultXML =
            response.getGetLeagueStandingsBySeasonResult().getContent();

    Type listType = new TypeToken<List<GetLeagueStandingsResultDto>>() {
    }.getType();

    return modelMapper.map(
            getLeagueStandingsBySeasonResultXML.getTeamLeagueStanding(),
            listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:25,代码来源:XmlSoccerServiceImpl.java


示例5: getAllLeagues

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetAllLeaguesResultDto> getAllLeagues() {
    GetAllLeagues request = new GetAllLeagues();
    request.setApiKey(apiKey);

    GetAllLeaguesResponse response = (GetAllLeaguesResponse) getWebServiceTemplate().
            marshalSendAndReceive(
                    request,
                    new SoapActionCallback(
                            "http://xmlsoccer.com/GetAllLeagues"));

    GetAllLeaguesResultXML getAllLeaguesResultXML = response.getGetAllLeaguesResult().getContent();

    Type listType = new TypeToken<List<GetAllLeaguesResultDto>>() {
    }.getType();

    return modelMapper.map(getAllLeaguesResultXML.getLeague(), listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:19,代码来源:XmlSoccerServiceImpl.java


示例6: getAllTeams

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetTeamResultDto> getAllTeams() {
    GetAllTeams request = new GetAllTeams();
    request.setApiKey(apiKey);

    GetAllTeamsResponse response = (GetAllTeamsResponse) getWebServiceTemplate().
            marshalSendAndReceive(
                    request,
                    new SoapActionCallback(
                            "http://xmlsoccer.com/GetAllTeams"));

    GetAllTeamsResultXML getAllTeamsResultXML = response.getGetAllTeamsResult().getContent();

    Type listType = new TypeToken<List<GetTeamResultDto>>() {
    }.getType();

    return modelMapper.map(getAllTeamsResultXML.getTeam(), listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:19,代码来源:XmlSoccerServiceImpl.java


示例7: getAllTeamsByLeagueAndSeason

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetTeamResultDto> getAllTeamsByLeagueAndSeason(String leagueName, String season) {
    GetAllTeamsByLeagueAndSeason request = new GetAllTeamsByLeagueAndSeason();
    request.setApiKey(apiKey);
    request.setLeague(leagueName);
    request.setSeasonDateString(season);

    GetAllTeamsByLeagueAndSeasonResponse response =
            (GetAllTeamsByLeagueAndSeasonResponse) getWebServiceTemplate().
                    marshalSendAndReceive(
                            request,
                            new SoapActionCallback(
                                    "http://xmlsoccer.com/GetAllTeamsByLeagueAndSeason"));

    GetAllTeamsByLeagueAndSeasonResultXML getAllTeamsResultXML =
            response.getGetAllTeamsByLeagueAndSeasonResult().getContent();

    Type listType = new TypeToken<List<GetTeamResultDto>>() {
    }.getType();

    return modelMapper.map(getAllTeamsResultXML.getTeam(), listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:23,代码来源:XmlSoccerServiceImpl.java


示例8: getPlayersById

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public GetPlayersResultDto getPlayersById(Integer playerId) {
    GetPlayerById request = new GetPlayerById();
    request.setApiKey(apiKey);
    request.setPlayerId(playerId);

    GetPlayerByIdResponse response = (GetPlayerByIdResponse) getWebServiceTemplate().marshalSendAndReceive(
            request,
            new SoapActionCallback(
                    "http://xmlsoccer.com/GetPlayerById"));

    GetPlayersByTeamResultXML getPlayersByTeamResultXML = response.getGetPlayerByIdResult().getContent();

    Optional<GetPlayersByTeamResultXML.Player> player = getPlayersByTeamResultXML.getPlayer().
            stream().
            findFirst();

    if (player.isPresent())
        return modelMapper.map(player, GetPlayersResultDto.class);

    return null;
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:23,代码来源:XmlSoccerServiceImpl.java


示例9: getPlayersByTeam

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetPlayersResultDto> getPlayersByTeam(Integer teamId) {
    GetPlayersByTeam request = new GetPlayersByTeam();
    request.setApiKey(apiKey);
    request.setTeamId(teamId.toString());

    GetPlayersByTeamResponse response = (GetPlayersByTeamResponse) getWebServiceTemplate().
            marshalSendAndReceive(
                    request,
                    new SoapActionCallback(
                            "http://xmlsoccer.com/GetPlayersByTeam"));

    GetPlayersByTeamResultXML getPlayersByTeamResultXML = response.getGetPlayersByTeamResult().getContent();

    Type listType = new TypeToken<List<GetPlayersResultDto>>() {
    }.getType();

    return modelMapper.map(getPlayersByTeamResultXML.getPlayer(), listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:20,代码来源:XmlSoccerServiceImpl.java


示例10: getAllOddsByFixtureMatchId

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetAllOddsResultDto> getAllOddsByFixtureMatchId(Integer fixtureMatchId) {
    GetAllOddsByFixtureMatchId request = new GetAllOddsByFixtureMatchId();
    request.setApiKey(apiKey);
    request.setFixtureMatchId(fixtureMatchId);

    GetAllOddsByFixtureMatchIdResponse response =
            (GetAllOddsByFixtureMatchIdResponse) getWebServiceTemplate().
                    marshalSendAndReceive(
                            request,
                            new SoapActionCallback(
                                    "http://xmlsoccer.com/GetAllOddsByFixtureMatchId"));

    GetAllOddsXML getOddsByFixtureMatchIdResultXML = response.getGetAllOddsByFixtureMatchIdResult().
            getContent();

    Type listType = new TypeToken<List<GetAllOddsResultDto>>() {
    }.getType();

    return modelMapper.map(
            getOddsByFixtureMatchIdResultXML.getOddsList().getOdds(),
            listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:24,代码来源:XmlSoccerServiceImpl.java


示例11: getOddsByFixtureMatchId

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetOddsResultDto> getOddsByFixtureMatchId(Integer fixtureMatchId) {
    GetOddsByFixtureMatchId request = new GetOddsByFixtureMatchId();
    request.setApiKey(apiKey);
    request.setFixtureMatchId(fixtureMatchId.toString());

    GetOddsByFixtureMatchIdResponse response = (GetOddsByFixtureMatchIdResponse) getWebServiceTemplate().
            marshalSendAndReceive(
                    request,
                    new SoapActionCallback(
                            "http://xmlsoccer.com/GetOddsByFixtureMatchId"));

    GetOddsByFixtureMatchIdResultXML getOddsByFixtureMatchIdResultXML =
            response.getGetOddsByFixtureMatchIdResult().getContent();

    Type listType = new TypeToken<List<GetOddsResultDto>>() {
    }.getType();

    return modelMapper.map(getOddsByFixtureMatchIdResultXML.getOdds(), listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:21,代码来源:XmlSoccerServiceImpl.java


示例12: getNextMatchOddsByLeague

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetOddsResultDto> getNextMatchOddsByLeague(String leagueName) {
    GetNextMatchOddsByLeague request = new GetNextMatchOddsByLeague();
    request.setApiKey(apiKey);
    request.setLeague(leagueName);

    GetNextMatchOddsByLeagueResponse response =
            (GetNextMatchOddsByLeagueResponse) getWebServiceTemplate().
                    marshalSendAndReceive(
                            request,
                            new SoapActionCallback(
                                    "http://xmlsoccer.com/GetNextMatchOddsByLeague"));

    GetNextMatchOddsByLeagueResultXML getNextMatchOddsByLeagueResultXML =
            response.getGetNextMatchOddsByLeagueResult().getContent();

    Type listType = new TypeToken<List<GetNextOddsResultDto>>() {
    }.getType();

    return modelMapper.map(getNextMatchOddsByLeagueResultXML.getOdds(), listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:22,代码来源:XmlSoccerServiceImpl.java


示例13: getTopScorersByLeagueAndSeason

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetTopScorersResultDto> getTopScorersByLeagueAndSeason(String leagueName, String season) {
    GetTopScorersByLeagueAndSeason request = new GetTopScorersByLeagueAndSeason();
    request.setApiKey(apiKey);
    request.setLeague(leagueName);
    request.setSeasonDateString(season);

    GetTopScorersByLeagueAndSeasonResponse response =
            (GetTopScorersByLeagueAndSeasonResponse) getWebServiceTemplate().
                    marshalSendAndReceive(
                            request,
                            new SoapActionCallback(
                                    "http://xmlsoccer.com/GetTopScorersByLeagueAndSeason"));

    GetTopScorersResultXML getTopScorersResultXML =
            response.getGetTopScorersByLeagueAndSeasonResult().getContent();

    Type listType = new TypeToken<List<GetTopScorersResultDto>>() {
    }.getType();

    return modelMapper.map(getTopScorersResultXML.getTopscorer(), listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:23,代码来源:XmlSoccerServiceImpl.java


示例14: getTopScorersByGroupId

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetTopScorersResultDto> getTopScorersByGroupId(Integer group) {
    GetTopScorersByGroupId request = new GetTopScorersByGroupId();
    request.setApiKey(apiKey);
    request.setGroupId(group);

    GetTopScorersByGroupIdResponse response =
            (GetTopScorersByGroupIdResponse) getWebServiceTemplate().
                    marshalSendAndReceive(
                            request,
                            new SoapActionCallback(
                                    "http://xmlsoccer.com/GetTopScorersByGroupId"));

    GetTopScorersResultXML getTopScorersResultXML = response.getGetTopScorersByGroupIdResult().getContent();

    Type listType = new TypeToken<List<GetTopScorersResultDto>>() {
    }.getType();

    return modelMapper.map(getTopScorersResultXML.getTopscorer(), listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:21,代码来源:XmlSoccerServiceImpl.java


示例15: getFixturesByDateInterval

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetFixturesResultDto> getFixturesByDateInterval(String startDate, String endDate) {
    GetFixturesByDateInterval request = new GetFixturesByDateInterval();
    request.setApiKey(apiKey);
    request.setStartDateString(startDate);
    request.setEndDateString(endDate);

    GetFixturesByDateIntervalResponse response =
            (GetFixturesByDateIntervalResponse) getWebServiceTemplate().
                    marshalSendAndReceive(
                            request,
                            new SoapActionCallback(
                                    "http://xmlsoccer.com/GetFixturesByDateInterval"));

    GetFixturesResultXML getFixturesResultXML = response.getGetFixturesByDateIntervalResult().getContent();

    Type listType = new TypeToken<List<GetFixturesResultDto>>() {
    }.getType();

    return modelMapper.map(getFixturesResultXML.getMatch(), listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:22,代码来源:XmlSoccerServiceImpl.java


示例16: getFixturesByDateIntervalAndLeague

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetFixturesResultDto> getFixturesByDateIntervalAndLeague(String leagueName, String startDate,
                                                                     String endDate) {
    GetFixturesByDateIntervalAndLeague request = new GetFixturesByDateIntervalAndLeague();
    request.setApiKey(apiKey);
    request.setStartDateString(startDate);
    request.setEndDateString(endDate);
    request.setLeague(leagueName);

    GetFixturesByDateIntervalAndLeagueResponse response =
            (GetFixturesByDateIntervalAndLeagueResponse) getWebServiceTemplate().
                    marshalSendAndReceive(
                            request,
                            new SoapActionCallback(
                                    "http://xmlsoccer.com/GetFixturesByDateIntervalAndLeague"));

    GetFixturesResultXML getFixturesResultXML =
            response.getGetFixturesByDateIntervalAndLeagueResult().getContent();

    Type listType = new TypeToken<List<GetFixturesResultDto>>() {
    }.getType();

    return modelMapper.map(getFixturesResultXML.getMatch(), listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:25,代码来源:XmlSoccerServiceImpl.java


示例17: getFixturesByDateIntervalAndTeam

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetFixturesResultDto> getFixturesByDateIntervalAndTeam(Integer teamId, String startDate,
                                                                   String endDate) {
    GetFixturesByDateIntervalAndTeam request = new GetFixturesByDateIntervalAndTeam();
    request.setApiKey(apiKey);
    request.setStartDateString(startDate);
    request.setEndDateString(endDate);
    request.setTeamId(teamId.toString());

    GetFixturesByDateIntervalAndTeamResponse response =
            (GetFixturesByDateIntervalAndTeamResponse) getWebServiceTemplate().
                    marshalSendAndReceive(
                            request,
                            new SoapActionCallback(
                                    "http://xmlsoccer.com/GetFixturesByDateIntervalAndTeam"));

    GetFixturesResultXML getFixturesResultXML =
            response.getGetFixturesByDateIntervalAndTeamResult().getContent();

    Type listType = new TypeToken<List<GetFixturesResultDto>>() {
    }.getType();

    return modelMapper.map(getFixturesResultXML.getMatch(), listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:25,代码来源:XmlSoccerServiceImpl.java


示例18: getFixturesByLeagueAndSeason

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetFixturesResultDto> getFixturesByLeagueAndSeason(String leagueName, String season) {
    GetFixturesByLeagueAndSeason request = new GetFixturesByLeagueAndSeason();
    request.setApiKey(apiKey);
    request.setLeague(leagueName);
    request.setSeasonDateString(season);

    GetFixturesByLeagueAndSeasonResponse response =
            (GetFixturesByLeagueAndSeasonResponse) getWebServiceTemplate().
                    marshalSendAndReceive(
                            request,
                            new SoapActionCallback(
                                    "http://xmlsoccer.com/GetFixturesByLeagueAndSeason"));

    GetFixturesResultXML getFixturesResultXML =
            response.getGetFixturesByLeagueAndSeasonResult().getContent();

    Type listType = new TypeToken<List<GetFixturesResultDto>>() {
    }.getType();

    return modelMapper.map(getFixturesResultXML.getMatch(), listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:23,代码来源:XmlSoccerServiceImpl.java


示例19: getHistoricMatchesByFixtureMatchID

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetHistoricMatchesResultDto> getHistoricMatchesByFixtureMatchID(Integer fixtureMatchId) {
    GetHistoricMatchesByFixtureMatchID request = new GetHistoricMatchesByFixtureMatchID();
    request.setApiKey(apiKey);
    request.setId(fixtureMatchId);

    GetHistoricMatchesByFixtureMatchIDResponse response =
            (GetHistoricMatchesByFixtureMatchIDResponse) getWebServiceTemplate().
                    marshalSendAndReceive(
                            request,
                            new SoapActionCallback(
                                    "http://xmlsoccer.com/GetHistoricMatchesByFixtureMatchID"));

    GetHistoricMatchesResultXML getHistoricMatchesResultXML =
            response.getGetHistoricMatchesByFixtureMatchIDResult().getContent();

    Type listType = new TypeToken<List<GetHistoricMatchesResultDto>>() {
    }.getType();

    return modelMapper.map(getHistoricMatchesResultXML.getMatch(), listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:22,代码来源:XmlSoccerServiceImpl.java


示例20: getHistoricMatchesByID

import org.springframework.ws.soap.client.core.SoapActionCallback; //导入依赖的package包/类
@Override
public List<GetHistoricMatchesResultDto> getHistoricMatchesByID(Integer matchId) {
    GetHistoricMatchesByID request = new GetHistoricMatchesByID();
    request.setApiKey(apiKey);
    request.setId(matchId);

    GetHistoricMatchesByIDResponse response =
            (GetHistoricMatchesByIDResponse) getWebServiceTemplate().
                    marshalSendAndReceive(
                            request,
                            new SoapActionCallback(
                                    "http://xmlsoccer.com/GetHistoricMatchesByID"));

    GetHistoricMatchesResultXML getHistoricMatchesResultXML =
            response.getGetHistoricMatchesByIDResult().getContent();

    Type listType = new TypeToken<List<GetHistoricMatchesResultDto>>() {
    }.getType();

    return modelMapper.map(getHistoricMatchesResultXML.getMatch(), listType);
}
 
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:22,代码来源:XmlSoccerServiceImpl.java



注:本文中的org.springframework.ws.soap.client.core.SoapActionCallback类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java HttpBodyContent类代码示例发布时间:2022-05-23
下一篇:
Java CertID类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap