assertEquals(new QName("urn:Echo", "Echo"), name);
Collection operations = service.getServiceInfo().getOperations();
assertEquals(1, operations.size());
OperationInfo opInfo = (OperationInfo) operations.iterator().next();
assertEquals("echo", opInfo.getName());
// Check the input message
MessageInfo message = opInfo.getInputMessage();
assertNotNull(message);
Collection parts = message.getMessageParts();
assertEquals(1, parts.size());
MessagePartInfo part = (MessagePartInfo) parts.iterator().next();
assertEquals(new QName("urn:Echo", "echoRequest"), part.getName());
// Check the output message
message = opInfo.getOutputMessage();
assertNotNull(message);
parts = message.getMessageParts();
assertEquals(1, parts.size());
part = (MessagePartInfo) parts.iterator().next();
assertEquals(new QName("urn:Echo", "echoResponse"), part.getName());
// Is the SOAP binding stuff around?
AbstractSoapBinding soapBinding = (AbstractSoapBinding) service.getBindings().iterator().next();
assertNotNull(soapBinding);
assertEquals("literal", soapBinding.getUse());
assertEquals("", soapBinding.getSoapAction(opInfo));
MessagePartContainer c = soapBinding.getHeaders(opInfo.getInputMessage());
assertEquals(1, c.getMessageParts().size());
part = c.getMessagePart(new QName("urn:Echo", "echoHeader"));
assertNotNull(part);
Collection endpoints = service.getEndpoints();