yyywwwwww_个人页

个人头像照片 yyywwwwww
个人头像照片
0
85
0

个人介绍

1

擅长的技术

获得更多能力
通用技术能力:

暂时未有相关通用技术能力~

云产品技术能力:

暂时未有相关云产品技术能力~

阿里云技能认证

详细说明
暂无更多信息

2022年10月

正在加载, 请稍后...
暂无更多信息
  • 回答了问题 2022-10-28

    REpresentational State Transfer的代表性是什么啊?

    所有的数据都是资源。代表客户 每个资源可以有不同的表示 每个资源都有自己的唯一标识(URI)

    踩0 评论0
  • 回答了问题 2022-10-28

    怎么能让Web服务更省时间啊?

    用SOAP实现Web服务是一种节省时间的方法,应该找到一种新的方法来实现WS

    踩0 评论0
  • 回答了问题 2022-10-28

    基于soap的web服务是什么啊?

    与消息格式耦合 -与wS编码耦合 -解析和组装SOAP -需要一个WSDL来描述Ws的细节 -需要一个从WSDL生成的代理

    踩0 评论0
  • 回答了问题 2022-10-28

    客户端里怎么写最简单的webservice啊?

    只要支持webservice企业版的工具,就可以生成相应的public辅助类。

    prices =new HashMap<StringDouble>() prices.put("Blackwell Toaster",24.95);
    prices.put("ZapXpress Microwave Oven",49.95);
    
    踩0 评论0
  • 回答了问题 2022-10-28

    客户端里怎么在wdsl里面生成类别啊?

    在配置文件里面获取客户端,在客户端里面wdsl文件的位置在如下所示,在wdsl文件上生成相应的对应端

    踩0 评论0
  • 回答了问题 2022-10-28

    怎样得到getcountryrespopse啊?

    在包装好的web里面去执行getwebservice tempiate方法,

    marshalSendAndReceive("http://localhost:8080/ws/countries,request
    new SoapActionCallback
    

    去发出请求返回结果之后就得到了。

    踩0 评论0
  • 回答了问题 2022-10-28

    客户端中http://localhost:8880/ws/countries这个位置怎么生成的呢?

    在“/ws”这个位置上对应的countrises生成的。

    public DefaultWsdl11Definition defaultWsdl11Definition(Xsdschema countriesSchema){ DefaultWsdl11Definition wsdl11Definition=new DefaultWsdl11Definition(); wsdl11Definition.setPortTypeName"CountriesPort" wsdl11Definition.setLocationUri/ws
    wsdl11Definition.setTargetNamespace"http://spring.io/guides/gs-producing-web-service") wsdl11Definition.setSchema(countriesSchema); return wsdl11Definition:
    
    踩0 评论0
  • 回答了问题 2022-10-28

    客户端对着哪个位置发GetCountryRequestl();请求呀?

    10、对着http://localhost:8880/ws/countries这个位置发这个请求,然后再返回,结果之后就得到了response。

    踩0 评论0
  • 回答了问题 2022-10-28

    真正的客户端需要继承什么呢?

    继承WebServiceGatewaySupport{, 拿到之后就可以执行相应的调用。代码如下

    private static final Logger log =LoggerFactorygetLogger(CountryClient.class)
    public GetCountryResponse getCountry(String country){
    GetCountryRequest request=new GetCountryRequest() request.setName(country);
    
    踩0 评论0
  • 回答了问题 2022-10-28

    真正的客户端是怎么写的呢?

    代码如下:

    
    private static final Logger log =LoggerFactorygetLogger(CountryClient.class)
    public GetCountryResponse getCountry(String country){
    GetCountryRequest request=new GetCountryRequest) request.setName(country);
    log.info("Requesting location for"+country)
    GetCountryResponse response=(GetCountryResponse)getWebServiceTemplate)
    .marshalSendAndReceive("http://localhost:8080/ws/countries"request
    new SaapActionCallback(
    "http://spring.io/guides/gs-producing-web-service/GetCountryRequest"));
    
    return response
    
    踩0 评论0
  • 回答了问题 2022-10-28

    maven-jaxb2-plugin插件的作用是什么呢?

    从http://lacalhost:8080/ws/cauntries.wsdl这个位置上去生成WSDL的文件,去编译生成generate这个动作,就会产生java这一端的端口和Proxy。

    踩0 评论0
  • 回答了问题 2022-10-28

    客户端里编译好wdsl为什么要发送getCountryRequest呢?

    因为是从soap里面去解析内容过来,这有一个叫做name的东西,可以看到是在request上面get name ,就把name取出来了,这样的映射关系

    public GetCountryResponse getCountry(@RequestPayload GetCountryRequest request){ GetCountryResponse response=new GetCountryResponse();
    response.setCountry(countryRepositoryfindCountry(request.getName()));
    
    踩0 评论0
  • 回答了问题 2022-10-28

    客户端里怎么组建soapenv消息啊?

    一种是可以用postman,使用后会得到一个返回体的信封。含义就是没有发出Java代码,只要是有这样请求的客户端就会有返回体的结果

    踩0 评论0
  • 回答了问题 2022-10-28

    客户端里编译好wdsl之后访问的方式是什么样子的?

    一种是通过soapenv信封,也可以自己组一个信封。

    xmins:soapenv="http://schemas.xmsoaporg/soap/envelope/
    xmins:gs="http://spring.io/guides/gs-producing-web-service"><soapenv:Header/><soapenv:Body>
    <gs:getCountryRequest>
    <gs:name>Spain</gs:name></gs:getCountryRequest></soapenv:Body></soapenv:Envelope>
    
    踩0 评论0
  • 回答了问题 2022-10-28

    客户端里怎样产生wsdl文件啊?

    打开一个pom文件,编译好之后一定要对应jaxb.2这个安装包,再去进行一次编译才能产生wdsl文件。

    踩0 评论0
  • 回答了问题 2022-10-28

    Web Service文件配置最重要的是什么啊?

    重要的是位置在哪,在位置上可以访问到外部服务

    wsdl11Definition.setTargetNamespace("http://springio/guides/gs-producing-web-service") wsdl11Definition.setSchema(countriesSchema); return wsdl11Definition;
    
    踩0 评论0
  • 回答了问题 2022-10-28

    WebServiceConfig.java上哪个位置能访问web服务呀?

    1、在WebServiceConfig.java上setLocationUri(“/ws”)这个位置上能访问("CountriesPort")的web服务。

    踩0 评论0
  • 回答了问题 2022-10-27

    resource的处理过程是什么呀?

    处理过程就是在不断的在转换客户端和服务器端之间的状态,那么服务器和客户端之间传递的消息这消息而不需要一个ws SQL文件再去描述它,所以它是自描述

    踩0 评论0
  • 回答了问题 2022-10-27

    想对HTTP资源中改查里面的某一种应该怎么做呢?

    用HTTP里的 GET表示read POST表示create PUT-表示update DELETE表示delete

    踩0 评论0
  • 回答了问题 2022-10-27

    客户端里使用SQAP-based Web Services带来了什么问题呢?

    带来了五点问题:-与消息格式耦合-与ws编码耦合-解析和组装SOAP-需要WSDL来描述详细的软件-需要从WSDL生成的代理

    踩0 评论0
正在加载, 请稍后...
滑动查看更多
正在加载, 请稍后...
暂无更多信息