### Question:
JaxWsServiceConfiguration extends AbstractServiceConfiguration { @Override public QName getInPartName(OperationInfo op, Method method, int paramNumber) { if (paramNumber < 0) { return null; } return getPartName(op, method, paramNumber, op.getInput(), "arg", true); } JaxWsServiceConfiguration(); @Override void setServiceFactory(ReflectionServiceFactoryBean serviceFactory); @Override String getServiceName(); @Override String getServiceNamespace(); @Override QName getEndpointName(); @Override QName getInterfaceName(); @Override String getWsdlURL(); @Override QName getOperationName(InterfaceInfo intf, Method method); Boolean isWebMethod(final Method method); @Override Boolean isOperation(final Method method); @Override QName getInPartName(OperationInfo op, Method method, int paramNumber); @Override QName getInParameterName(OperationInfo op, Method method, int paramNumber); @Override String getRequestWrapperPartName(OperationInfo op, Method method); @Override String getResponseWrapperPartName(OperationInfo op, Method method); String getFaultMessageName(OperationInfo op, Class<?> exClass, Class<?> beanClass); @Override QName getOutParameterName(OperationInfo op, Method method, int paramNumber); @Override QName getOutPartName(OperationInfo op, Method method, int paramNumber); @Override Boolean isInParam(Method method, int j); @Override Boolean isOutParam(Method method, int j); @Override Boolean isInOutParam(Method method, int j); @Override QName getRequestWrapperName(OperationInfo op, Method method); @Override QName getResponseWrapperName(OperationInfo op, Method method); @Override Class<?> getResponseWrapper(Method selected); @Override String getResponseWrapperClassName(Method selected); String getRequestWrapperClassName(Method selected); @Override Class<?> getRequestWrapper(Method selected); @Override QName getFaultName(InterfaceInfo service, OperationInfo o, Class<?> exClass, Class<?> beanClass); @Override Boolean isWrapped(Method m); @Override Boolean isWrapped(); @Override Boolean isHeader(Method method, int j); @Override String getStyle(); @Override Boolean isRPC(Method method); @Override Boolean hasOutMessage(Method method); @Override String getAction(OperationInfo op, Method method); Boolean isHolder(Class<?> cls, Type type); Type getHolderType(Class<?> cls, Type type); Boolean isWrapperPartQualified(MessagePartInfo mpi); Long getWrapperPartMinOccurs(MessagePartInfo mpi);  }### Answer:
@Test public void testGetInPartName() throws Exception { QName opName = new QName("http: Method sayHelloMethod = Hello.class.getMethod("sayHello", new Class[]{String.class, String.class}); ServiceInfo si = getMockedServiceModel("/wsdl/default_partname_test.wsdl"); JaxWsServiceFactoryBean bean = new JaxWsServiceFactoryBean(); bean.setServiceClass(Hello.class); JaxWsServiceConfiguration jwsc = (JaxWsServiceConfiguration) bean.getServiceConfigurations().get(0); jwsc.setServiceFactory(bean); OperationInfo op = si.getInterface().getOperation(opName); op.setInput("input", new MessageInfo(op, MessageInfo.Type.INPUT, new QName("http: op.setOutput("output", new MessageInfo(op, MessageInfo.Type.OUTPUT, new QName("http: QName partName = jwsc.getInPartName(op, sayHelloMethod, 0); assertEquals("get wrong in partName for first param", new QName("http: op.getInput().addMessagePart(new QName("arg0")); partName = jwsc.getInPartName(op, sayHelloMethod, 1); assertEquals("get wrong in partName for first param", new QName("http: }