You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by cxfbeginner <ha...@yahoo.com> on 2015/12/31 02:33:48 UTC

[java first] Having a header in the parameter generates multi part in the message WSDL

Some WSDL to java fails to parse the WSDL when it sees more than one part in
a message.
The service definition contains header in the parameters which translate to
WSDL having two parts in the message.
Is there a way to generate WSDL with a single part?

public String runTask(
@WebParam(name=Constants.SESSION_ID, mode=Mode.IN, header=true)String
sessionId,
@WebParam(name="runTaskRequest", mode=Mode.IN, partName="TaskInfo")TaskInfo
task
)

WSDL:

<wsdl:message name="runTask">
<wsdl:part element="ns1:runTask" name="parameters"></wsdl:part>
<wsdl:part element="ns1:SessionId" name="SessionId"></wsdl:part>
</wsdl:message>



--
View this message in context: http://cxf.547215.n5.nabble.com/java-first-Having-a-header-in-the-parameter-generates-multi-part-in-the-message-WSDL-tp5764348.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Re: [java first] Having a header in the parameter generates multi part in the message WSDL

Posted by cxfbeginner <ha...@yahoo.com>.
any update?




--
View this message in context: http://cxf.547215.n5.nabble.com/java-first-Having-a-header-in-the-parameter-generates-multi-part-in-the-message-WSDL-tp5764348p5764449.html
Sent from the cxf-dev mailing list archive at Nabble.com.