which cxf version are you using?
it could be an old bug.

Questions should go to users@cxf, so I have moved this thread to there..


2015-12-02 13:07 GMT+01:00 Felix.1973 <felix.merca...@omnipaygroup.com>:
> Hi there. I am fighting the last two days with the same problem and I don't
> know how to fix this. Even not sure if it is an error or not.
>
> I have a CXF Web Service with something I consider very strange and I would
> like to fix. This is one of the calls that the Web Service deals with:
>
>     @WebResult (name="merchantHierarchyParentResponse")
> MerchantHierarchyParentResponseDTO
>     getParent(
>             @WebParam(name="institutionNumber") @XmlElement(required=true)
> String institutionNumber,
>             @WebParam(name="clientNumber") String clientNumber,
>             @WebParam(name="ourReference") String ourReference,
>             @WebParam(name="accessMerch") String accessMerch,
>             @WebParam(header=true, name="callerId") String callerId,
>             @WebParam(header=true, name="timestamp") String timestamp,
>             @WebParam(header=true, name="signature") String signature
>     );
>
> As you can see, it receives 4 normal parameters plus 3 extra parameters in
> the header (callerId, timestamp and signature).
>
> It compiles successfully. Then I deploy it also successfully in a WebLogic
> server.
>
> Finally, I use SoapUI to test it. I provide SoapUI with the URL that
> WebLogic is providing me with the WSDL. This is, I am not doing any change
> in the automatic generated WSDL. This is what I am getting for this
> getParent in SoupUI:
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:web="http://webService.webservice.omnipay.com.server/";>
>    <soapenv:Header>
> *      <web:signature>?</web:signature>
>       <web:timestamp>?</web:timestamp>
>       <web:callerId>?</web:callerId>*
>    </soapenv:Header>
>    <soapenv:Body>
>       <web:getParent>
>          <institutionNumber>?</institutionNumber>
>
>          <clientNumber>?</clientNumber>
>
>          <ourReference>?</ourReference>
>
>          <accessMerch>?</accessMerch>
>       </web:getParent>
> /*      <web:callerId>?</web:callerId>
>       <web:timestamp>?</web:timestamp>
>       <web:signature>?</web:signature>*/
>    </soapenv:Body>
> </soapenv:Envelope>
>
> My question is very clear. I see the 3 parameters in the header section
> (callerId, timestamp and signature) but why these 3 parameters are *AGAIN*
> at the end in the body part ??? I don't want them in the body part, I want
> them only in the header.
>
> Any idea why this is happening ? Is that normal ? is it a bug ? Thank you
> for your help !
>
> thanks
> Felix Mercader
>
>
>
>
>
>
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/CXF-incorrect-WSDL-automatically-generated-Please-help-tp5763489.html
> Sent from the cxf-dev mailing list archive at Nabble.com.

Reply via email to