XFire

wsdl:soapheader missing from wsdl:output in generated wsdl

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1-beta-1
  • Fix Version/s: 1.1
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

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>

Activity

Hide
Dan Diephouse added a comment -

Scheduling this for 1.1. I'll try to get it fixed in the next day or two.

Show
Dan Diephouse added a comment - Scheduling this for 1.1. I'll try to get it fixed in the next day or two.
Hide
Dan Diephouse added a comment -

This is fixed in SVN now

Show
Dan Diephouse added a comment - This is fixed in SVN now
Hide
Wouter added a comment -

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>

Show
Wouter added a comment - 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>
Hide
Dan Diephouse added a comment -

Wow, I feel stupid. A fix is coming your way soon.

Show
Dan Diephouse added a comment - Wow, I feel stupid. A fix is coming your way soon.
Hide
Dan Diephouse added a comment -

Fixed in SVN (if you didn't realize this already). I even think the SNAPSHOT on the download page hsa this in it. Thanks again Wouter.

Show
Dan Diephouse added a comment - Fixed in SVN (if you didn't realize this already). I even think the SNAPSHOT on the download page hsa this in it. Thanks again Wouter.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: