}
}
}
// Fill the Info structure
WebServiceInfo info = new WebServiceInfo();
// Read name
info.setPortComponentName(name);
if (portComponent != null) {
// Read wsdl-location from the webservice-description parent element
info.setWsdlLocation(portComponent.getParent().getWsdlFile());
// Read service QName
info.setServiceName(portComponent.getWsdlService());
// Read port QName
info.setPortName(portComponent.getWsdlPort());
// Read protocol-binding
info.setProtocolBinding(portComponent.getProtocolBinding());
// Read enable-mtom
info.setMTOMEnabled(portComponent.isMTOMEnabled());
// Read service-endpoint-interface
if (!marker.isWebServiceProvider()) {
info.setServiceEndpointInterface(portComponent.getServiceEndpointInterface());
}
// Read HandlerChains
info.setHandlerChains(portComponent.getHandlerChains());
}
// EasyBeans specific values ....
// ---------------------------------------------------
// manage endpoint-address
info.setEndpointAddress(sessionBean.getWebServiceEndpointAddress());
// manage context-root
info.setContextRoot(sessionBean.getWebServiceContextRoot());
// manage realm-name
info.setRealmName(sessionBean.getWebServiceRealmName());
// manage transport-guarantee
info.setTransportGuarantee(sessionBean.getWebServiceTransportGuarantee());
// manage auth-method
info.setAuthMethod(sessionBean.getWebServiceAuthMethod());
// manage http-methods
info.setHttpMethods(sessionBean.getWebServiceHttpMethods());
// manage wsdl-publication-directory
if (endpoint != null) {
info.setWsdlPublicationDirectory(endpoint.getWsdlPublicationDirectory());
}
return info;
}