---
title: "cxf"
author: "openstudy"
date: "2010-05-16T16:31:26Z"
tags: []
categories: ["企业架构"]
slug: "cxf"
draft: false
lastmod: "2010-09-03T18:12:12Z"
id: 667618
url: "https://openstudy.iteye.com/blog/667618"
---

1.wsdlToJava 使用-all选项，但是却不使用其生成的server,client/service和impl类，只作为参考
2.部署：wsdl中使用localhost:8080，String address = "http://localhost:8080/soa/hello";
cs - 实际部署时利用Endpoint.publish(address, implementor)再重新修改ip和端口
bs - 直接用localhost，结合spring获取客户端bean和接口bean

3.address?wsdl就可以显示wsdl的内容，如ie中输入http://localhost:8080/soa/hello?wsdl将显示wsdl的内容

4.两个mtom的文档
http://cxf.apache.org/docs/mtom-attachments-with-jaxb.html
http://cxf.apache.org/docs/mtom.html