{
wsdm.setWebserviceDescriptionName("HelloWsService");
wsdm.setWsdlFile("WEB-INF/wsdl/HelloService.wsdl");
wsdm.setJaxrpcMappingFile("WEB-INF/jaxrpc-mapping.xml");
//create 1 of 4 PortComponents
PortComponentMetaData pm1 = new PortComponentMetaData(wsdm);
pm1.setPortComponentName("ValidURL");
pm1.setWsdlPort(new QName("http://test.jboss.org/ws4eesimple",
"ValidURLPort","impl") );
pm1.setServiceEndpointInterface("org.jboss.test.webservice.ws4eesimple.HelloWs");
pm1.setServletLink("HelloJavaBean");
wsdm.addPortComponent(pm1);
//create 2 of 4 PortComponents
PortComponentMetaData pm2 = new PortComponentMetaData(wsdm);
pm2.setPortComponentName("InvalidURL");
pm2.setWsdlPort(new QName("http://test.jboss.org/ws4eesimple",
"InvalidURLPort","impl") );
pm2.setServiceEndpointInterface("org.jboss.test.webservice.ws4eesimple.HelloWs");
pm2.setServletLink("HelloJavaBean");
wsdm.addPortComponent(pm2);
//create 3 of 4 PortComponents
PortComponentMetaData pm3 = new PortComponentMetaData(wsdm);
pm3.setPortComponentName("ValidSecureURL");
pm3.setWsdlPort(new QName("http://test.jboss.org/ws4eesimple",
"ValidSecureURLPort","impl") );
pm3.setServiceEndpointInterface("org.jboss.test.webservice.ws4eesimple.HelloWs");
pm3.setServletLink("HelloJavaBean");
wsdm.addPortComponent(pm3);
// create 4 of 4 PortComponents
PortComponentMetaData pm4 = new PortComponentMetaData(wsdm);
pm4.setPortComponentName("InvalidSecureURL");
pm4.setWsdlPort(new QName("http://test.jboss.org/ws4eesimple",
"InvalidSecureURLPort","impl") );
pm4.setServiceEndpointInterface("org.jboss.test.webservice.ws4eesimple.HelloWs");
pm4.setServletLink("HelloJavaBean");
wsdm.addPortComponent(pm4);
}