如何在Mule 3中构建一个简单的Web代理?

如何在Mule 3中构建一个简单的Web代理?,第1张

概述我运行这个Mule 3文件,期望当我浏览到http:// localhost:9000时,我将被重定向到http:// localhost / path( source – 在登录提示后面): <?xml version="1.0" encoding="UTF-8"?><mule xmlns="http://www.mulesoft.org/schema/mule/core" xml 我运行这个Mule 3文件,期望当我浏览到http:// localhost:9000时,我将被重定向到http:// localhost / path( source – 在登录提示后面):

<?xml version="1.0" enCoding="UTF-8"?><mule xmlns="http://www.mulesoft.org/schema/mule/core"      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"      xmlns:pattern="http://www.mulesoft.org/schema/mule/pattern"      xsi:schemaLocation="          http://www.mulesoft.org/schema/mule/pattern http://www.mulesoft.org/schema/mule/pattern/3.1/mule-pattern.xsd          http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.1/mule.xsd">    <pattern:web-service-proxy        name="WSProxyService"        inboundAddress="http://localhost:9000"        outboundAddress="http://localhost/sugarcrm"/></mule>

相反,我从网络浏览器收到这个不友好的消息:

‹mO=OÃ0Ýó+ŽL0KÂÈX‚&ˆJ-DÂŒ×øÀ•ì8rÜJý÷8)bb9éî}Ü{â¢y[©Ï®…µÝ@÷ñ´Y¯ ¿F\·ê±QÍ©‹±}Íe&LtV äÓ÷Ѳ¼)+Øú#kè88xˆö$ðf²Øy}šõ•ü‡›®™¥2Ú÷—Î`h·P  üõ›Ç{Dë{²ÆO§Ã7…>8Ì¥áÀIÇùOHƒ´
解决方法 Web服务代理模式旨在与SOAP样式的Web服务一起使用.将浏览器指向它对您没有任何好处.

对于纯http代理:

>使用新模式:http-proxy来自Mule 3.2,已经可用于快照构建(examples),
>使用模式:使用http进出端点桥接(examples).

前者是一个更好的选择,如果你不是快照厌恶,因为它扩展了对http请求语义和即将到来的缓存模块的支持.

总结

以上是内存溢出为你收集整理的如何在Mule 3中构建一个简单的Web代理?全部内容,希望文章能够帮你解决如何在Mule 3中构建一个简单的Web代理?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1087568.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-27
下一篇2022-05-27

发表评论

登录后才能评论

评论列表(0条)

    保存