}
for(Iterator iter = descriptor.getPortsInfo().iterator();
iter.hasNext();) {
ServiceRefPortInfo next = (ServiceRefPortInfo) iter.next();
String sei = next.getServiceEndpointInterface();
Node portComponentRefNode = appendChild(
serviceRefNode, WebServicesTagNames.PORT_COMPONENT_REF);
appendTextChild(portComponentRefNode,
WebServicesTagNames.SERVICE_ENDPOINT_INTERFACE,
sei);
appendTextChild(portComponentRefNode,
WebServicesTagNames.ENABLE_MTOM,
next.getMtomEnabled());
if (descriptor.getAddressing() != null) {
AddressingNode adNode = new AddressingNode();
adNode.writeDescriptor(portComponentRefNode,
WebServicesTagNames.ADDRESSING,
descriptor.getAddressing());
}
appendTextChild(portComponentRefNode,
WebServicesTagNames.PORT_COMPONENT_LINK,
next.getPortComponentLinkName());
}
WebServiceHandlerNode handlerNode = new WebServiceHandlerNode();
handlerNode.writeWebServiceHandlers(serviceRefNode,
descriptor.getHandlers());