WSDLService[] services = wsdl.getServices();
int len = services.length;
for (int i = 0; i < len; i++)
{
WSDLService service = services[i];
if (!namespace.equals(service.getName().getNamespaceURI()))
continue;
buffer.append("<service name='" + service.getName().getLocalPart() + "'>");
appendUnknownExtensibilityElements(buffer, service);
WSDLEndpoint[] endpoints = service.getEndpoints();
int lenend = endpoints.length;
for (int j = 0; j < lenend; j++)
{
WSDLEndpoint endpoint = endpoints[j];
appendServicePort(buffer, endpoint);