InBound编写
创建HTTP_InBound Adapter Rule
填写HTTP_URL为/weather ,找到service id跟operation,增加parameter name list更改data format为promapper message,编码填写为utf-8,点击incoming information的mapping进行映射
把编写好的HTTP_InBound_Rule进行发布
测试
用ie访问如下url
http://192.168.0.218:9080/test/weather?name=beijing
http://192.168.0.218:9080/test/weather?name=nanjing
http://192.168.0.218:9080/test/weather?name=wulumuqi
转载于:https://blog.51cto.com/5894434/986247