Am Donnerstag, den 11.10.2007, 16:53 +0000 schrieb [EMAIL PROTECTED]:
> Author: dkulp
> Date: Thu Oct 11 09:53:40 2007
> New Revision: 583877

> Modified:
> incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
> URL: 
> http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java?rev=583877&r1=583876&r2=583877&view=diff
> ==============================================================================
> --- 
> incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
>  (original)
> +++ 
> incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
>  Thu Oct 11 09:53:40 2007
> @@ -903,7 +903,19 @@
>      }
>  
>      protected void createOutputWrappedMessageParts(OperationInfo op, Method 
> method, MessageInfo outMsg) {
> -        MessagePartInfo part = outMsg.addMessagePart("result");
> +        String partName = null;
> +        for (Iterator itr = serviceConfigurations.iterator(); 
> itr.hasNext();) {
> +            AbstractServiceConfiguration c = 
> (AbstractServiceConfiguration)itr.next();
> +            partName = c.getResponseWrapperPartName(op, method);
> +            if (partName != null) {
> +                break;
> +            }
> +        }
> +        if (partName == null) {
> +            partName = "parameters";
> +        }

I may be misunderstanding the code here, but the WSDL schema[1] seems to
say that partName is required, and if you don't have it, the WSDL is no
good--it should be rejected.  Are you sure you want to be adding
"parameters" in under that case?

Glen

[1] http://www.w3.org/TR/wsdl#A4.1


Reply via email to