/* 190 */ serviceMapping.addPortMapping(portMapping);
/* */
/* 192 */ this.javaWsdlMapping.addServiceInterfaceMappings(serviceMapping);
/* */
/* 194 */ String interfaceName = endpoint.getPortTypeName().getLocalPart();
/* 195 */ ServiceEndpointInterfaceMapping seiMapping = new ServiceEndpointInterfaceMapping(this.javaWsdlMapping);
/* 196 */ seiMapping.setServiceEndpointInterface(endpoint.getServiceEndpointInterfaceName());
/* 197 */ seiMapping.setWsdlPortType(new QName(this.wsdl.getTargetNamespace(), interfaceName, "portTypeNS"));
/* 198 */ seiMapping.setWsdlBinding(new QName(this.wsdl.getTargetNamespace(), interfaceName + "Binding", "bindingNS"));
/* 199 */ for (OperationMetaData operation : endpoint.getOperations())
/* */ {
/* 201 */ ServiceEndpointMethodMapping methodMapping = new ServiceEndpointMethodMapping(seiMapping);
/* 202 */ methodMapping.setJavaMethodName(operation.getJavaName());
/* 203 */ methodMapping.setWsdlOperation(operation.getQName().getLocalPart());
/* 204 */ boolean isWrapped = operation.isDocumentWrapped();
/* 205 */ methodMapping.setWrappedElement(isWrapped);
/* 206 */ int i = 0;
/* 207 */ for (ParameterMetaData param : operation.getParameters())
/* */ {
/* 209 */ if ((isWrapped) && (!param.isInHeader()))
/* */ {
/* 211 */ List wrappedParameters = param.getWrappedParameters();
/* 212 */ for (WrappedParameter wrapped : wrappedParameters)
/* */ {
/* 214 */ String type = JavaUtils.convertJVMNameToSourceName(wrapped.getType(), endpoint.getClassLoader());
/* 215 */ String name = wrapped.getName().getLocalPart();
/* */
/* 217 */ buildParamMapping(methodMapping, interfaceName, operation, name, type, "IN", false, i++);
/* */ }
/* */ }
/* */ else
/* */ {
/* 222 */ String name = param.getXmlName().getLocalPart();
/* 223 */ String type = JavaUtils.convertJVMNameToSourceName(param.getJavaTypeName(), endpoint.getClassLoader());
/* 224 */ buildParamMapping(methodMapping, interfaceName, operation, name, type, param.getMode().toString(), param.isInHeader(), i++);
/* */ }
/* */ }
/* */
/* 228 */ ParameterMetaData returnParam = operation.getReturnParameter();
/* 229 */ if ((returnParam != null) && ((!isWrapped) || (!returnParam.getWrappedParameters().isEmpty())))
/* */ {
/* */ String type;
/* */ String name;
/* 232 */ if (isWrapped)
/* */ {
/* 234 */ WrappedParameter wrappedParameter = (WrappedParameter)returnParam.getWrappedParameters().get(0);
/* 235 */ String name = wrappedParameter.getName().getLocalPart();
/* 236 */ type = wrappedParameter.getType();
/* */ }
/* */ else
/* */ {
/* 240 */ name = returnParam.getXmlName().getLocalPart();
/* 241 */ type = returnParam.getJavaTypeName();
/* */ }
/* */
/* 244 */ String type = JavaUtils.convertJVMNameToSourceName(type, endpoint.getClassLoader());
/* */
/* 246 */ buildReturnParamMapping(methodMapping, interfaceName, operation, name, type);
/* */ }
/* 248 */ seiMapping.addServiceEndpointMethodMapping(methodMapping);
/* */
/* 250 */ for (FaultMetaData fmd : operation.getFaults())
/* */ {
/* 252 */ JavaXmlTypeMapping typeMapping = (JavaXmlTypeMapping)this.mappedTypes.get(fmd.getXmlType());
/* 253 */ if (typeMapping == null) {