[ http://jira.codehaus.org/browse/XFIRE-376?page=comments#action_65123 ] 

Wouter commented on XFIRE-376:
------------------------------

FIXED INCORRECTLY - should be reopened
20060509 snapshot

The RESPONSE header is shown as part of the wsdl:INPUT instead of as part of 
the wsdl:OUTPUT

annotated method:

@WebMethod(operationName="startSession")
        @WebResult(name="sessionId")
        public String startSession(
                        @WebParam(name="credentials", mode=Mode.IN, 
targetNamespace="urn:mydomain/sessionservice") 
                        final Credentials credentials,
                        @WebParam(name="applicationInfo", header=true, 
mode=Mode.OUT, targetNamespace="urn:mydomain/sessionservice")
                        ApplicationInfo applicationInfo ) throws 
UnauthorizedException, ApplicationException;

In generated WSDL (wsdl:binding section):

    <wsdl:operation name="startSession">
      <wsdlsoap:operation soapAction="" />
      <wsdl:input name="startSessionRequest">
        <wsdlsoap:body use="literal" />
        <wsdlsoap:header message="tns:startSessionResponseHeaders" 
part="applicationInfo" use="literal" />
      </wsdl:input>
      <wsdl:output name="startSessionResponse">
        <wsdlsoap:body use="literal" />
      </wsdl:output>
      <wsdl:fault name="ApplicationException">
        <wsdlsoap:fault name="ApplicationException" use="literal" />
      </wsdl:fault>
      <wsdl:fault name="UnauthorizedException">
        <wsdlsoap:fault name="UnauthorizedException" use="literal" />
      </wsdl:fault>
    </wsdl:operation>

> wsdl:soapheader missing from wsdl:output in generated wsdl
> ----------------------------------------------------------
>
>          Key: XFIRE-376
>          URL: http://jira.codehaus.org/browse/XFIRE-376
>      Project: XFire
>         Type: Bug

>     Versions: 1.1-beta-1
>     Reporter: Wouter
>     Assignee: Dan Diephouse
>      Fix For: 1.1

>
>
> Response headers, specified by using annotations, are missing in the 
> generated WSDL 
> Annotated interface:
>       @WebMethod(operationName="getFileByName")
>       @WebResult(name="result")
>       public BinaryFile getFileByName(
>                       @WebParam(header=true, name="Credentials", 
> mode=Mode.IN) final Credentials credentials,
>                       @WebParam(header=true, name="ApplicationStatus", 
> mode=Mode.OUT) ApplicationStatus applicationStatus,
>                       @WebParam(name="name", mode=Mode.IN) final String name) 
> throws FileNotFoundException;
> generated WSDL snippet:
> <wsdl:operation name="getFileByName">
>       <wsdlsoap:operation soapAction="" />
>       <wsdl:input name="getFileByNameRequest">
>         <wsdlsoap:body use="literal" />
>         <wsdlsoap:header message="tns:getFileByNameRequestHeaders" 
> part="Credentials" use="literal" />
>       </wsdl:input>
>       <wsdl:output name="getFileByNameResponse">
>         <wsdlsoap:body use="literal" />
>       </wsdl:output>
>       <wsdl:fault name="FileNotFoundException">
>         <wsdlsoap:fault name="FileNotFoundException" use="literal" />
>       </wsdl:fault>
>     </wsdl:operation>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to