cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jara Cesnek (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-3402) http://util.java in WSDL
Date Tue, 15 Mar 2011 13:19:29 GMT

    [ https://issues.apache.org/jira/browse/CXF-3402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006907#comment-13006907
] 

Jara Cesnek commented on CXF-3402:
----------------------------------

Hotfix: add targetNamespace  to all List<> params
{code}
@WebService
public interface IStringSl {
  void storeStrings(@WebParam(name = "stringsToStore", targetNamespace = "http://dto.tra.modules.daisy.marbes.cz")
List<DTOtra_string> stringToStore);
}

{code}

> http://util.java in WSDL 
> -------------------------
>
>                 Key: CXF-3402
>                 URL: https://issues.apache.org/jira/browse/CXF-3402
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.3.2
>            Reporter: Jara Cesnek
>            Priority: Minor
>         Attachments: IStringSl-List.xml, IStringSl-array.xml
>
>
> For SEI:
> {code}
> @WebService
> public interface IStringSl {
>   void storeStrings(@WebParam(name = "stringsToStore") List<DTOtra_string> stringToStore);
> }
> @XmlType ( name = "DtoString")
> public class DTOtra_string {
>  ....
> }
> {code}
> there is many http://util.java namespaces in WSDL.
> Maybe this is bug maybe not? I dont know.
> But I expect same wsdl as List<> is replaces with array.
> WSDL with array is more clean.
> *Fortunately XML on-the-wire is almost same in booth cases.*
> And our customers can consume booth without reimporting changed WSDL. 
> Xml with array.
> {code}
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sl="http://sl.tra.modules.daisy.marbes.cz/"
xmlns:dto="http://dto.tra.modules.daisy.marbes.cz">
>    <soapenv:Header/>
>    <soapenv:Body>
>       <sl:storeStrings>
>          <stringsToStore>
>             <dto:DtoString>
>                <dto:Anglicky>?</dto:Anglicky>
>                <dto:AnglickyPrelozeno>true</dto:AnglickyPrelozeno>
>             </dto:DtoString>
>          </stringsToStore>
>       </sl:storeStrings>
>    </soapenv:Body>
> </soapenv:Envelope>
> {code}
> Xml with List<>.
> {code}
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sl="http://sl.tra.modules.daisy.marbes.cz/"
xmlns:util="http://util.java" xmlns:dto="http://dto.tra.modules.daisy.marbes.cz">
>    <soapenv:Header/>
>    <soapenv:Body>
>       <sl:storeStrings>
>          <stringsToStore>
>             <util:DtoString>
>                <dto:Anglicky>?</dto:Anglicky>
>                <dto:AnglickyPrelozeno>true</dto:AnglickyPrelozeno>
>             </util:DtoString>
>          </stringsToStore>
>       </sl:storeStrings>
>    </soapenv:Body>
> </soapenv:Envelope>
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message