A RPC Extension for XML-RPC(http://ws.apache.org/xmlrpc)
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-rpc</artifactId>
<version>2.7.3-SNAPSHOT</version>
</dependency>
Define xmlrpc protocol:
<dubbo:protocol name="xmlrpc" port="8080" server="jetty" />
Set default protocol:
<dubbo:provider protocol="xmlrpc" />
Set service protocol:
<dubbo:service protocol="xmlrpc" />
Multi port:
<dubbo:protocol id="xmlrpc1" name="xmlrpc" port="8080" />
<dubbo:protocol id="xmlrpc2" name="xmlrpc" port="8081" />
Multi protocol:
<dubbo:protocol name="dubbo" port="20880" />
<dubbo:protocol name="xmlrpc" port="8080" />
<dubbo:service id="helloService" interface="org.apache.hello.api.HelloService" version="1.0.0" protocol="dubbo,xmlrpc" />
Jetty Server: (default)
<dubbo:protocol ... server="jetty" />
Or Jetty9:
<dubbo:protocol ... server="jetty9" />
Maven:
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>6.1.26</version>
</dependency>
Servlet Bridge Server: (recommend)
<dubbo:protocol ... server="servlet" />
web.xml:
<servlet>
<servlet-name>dubbo</servlet-name>
<servlet-class>com.alibaba.dubbo.remoting.http.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>dubbo</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
Cors support:
<dubbo:protocol name="xmlrpc" ... />
<dubbo:parameter key="cors" value="true" />
</dubbo:protocol>