String testData = "<wsp:Policy xmlns:wsp=\"http://schemas.xmlsoap.org/ws/2004/09/policy\" />";
String gBp = SerAdmin.getBindingPolicy(weatherService.getName(),"wso2"+Java2WSDLConstants.HTTP_BINDING); //System.out.println("4. " +gBp);
assertEquals(testData,gBp);
AxisEndpoint soapEndpoint;
AxisEndpoint soap12Endpoint;
soapEndpoint = new AxisEndpoint();
String soapEndpointName = ""+ WSDL2Constants.DEFAULT_SOAP11_ENDPOINT_NAME;
soapEndpoint.setName(soapEndpointName);
soapEndpoint.setBinding(soapBinding);
soapEndpoint.setParent(echoService);
soapEndpoint.setTransportInDescription("http");
echoService.addEndpoint(soapEndpointName,soapEndpoint);
soap12Endpoint = new AxisEndpoint();
String soap12EndpointName = ""+ WSDL2Constants.DEFAULT_SOAP12_ENDPOINT_NAME;
soap12Endpoint.setName(soap12EndpointName);
soap12Endpoint.setBinding(soapBinding12);
soap12Endpoint.setParent(echoService);
soap12Endpoint.setTransportInDescription("http");
echoService.addEndpoint(soap12EndpointName,soap12Endpoint);
SerAdmin.setBindingOperationPolicy(echoService.getName(),soapBinding12.getName().toString(),echoService.getOperationByAction("echoOMElement").getName().toString(),EMPTY_POLICY);
String gBOP = SerAdmin.getBindingOperationPolicy(echoService.getName(),soapBinding12.getName().toString(),echoService.getOperationByAction("echoOMElement").getName().toString());