You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Ralf Hauser (Jira)" <ji...@apache.org> on 2019/11/12 13:14:00 UTC

[jira] [Commented] (AXIS2-5949) missing or late namespace declarations

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

Ralf Hauser commented on AXIS2-5949:
------------------------------------

while this is on the "writing"-side, a similar/related problem is also on the reading side: AXIS2-5972

> missing or late namespace declarations
> --------------------------------------
>
>                 Key: AXIS2-5949
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5949
>             Project: Axis2
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.7.8
>         Environment: debian stable
>            Reporter: Ralf Hauser
>            Priority: Major
>         Attachments: juspace-1-0.xsd, juspace-cr-1-0.xsd, juspace-crDeliverSvc-1-0.wsdl, juspace-crDeliverSvc-1-0.xsd, juspace-crLog-1-0.xsd, versioning-1-0.xsd
>
>
> A client built with v2-1.6.2 worked well with a server based on jaxws in the past.
> Now the server side took the latest jaxws libraries and no longer accepts what v2.-1.7.8. wsdl2java produced from the attached wsdl.
>  
> Oxygen or their SAXParser complain:
> [org.xml.sax.SAXParseException; lineNumber: 0; columnNumber: 0; cvc-complex-type.4: Attribute 'contentType' must appear on element 'ns3:fileRefs'.]
>  
> if I look at the generated xml, Axis produces
>         <fileRefs contentType="application/pdf" filename="Test.pdf" ..
>  
> while they expect / soapUI produces
>          <ns5:files xmime:contentType="application/pdf" filename="Test.pdf"
>  
> Any wsdl2java command-line parameter that fixes this ?
>  
> ------------ Further details --------
> Also the declaration by Axis at the beginning of the xml are
> <ns8:deliverRequest xmlns:ns8="http://schemas.juspace.ch/xmlns/cr/deliverSvc/1/0">
>  <ns8:crDataContainer>
>          <crHeader xmlns="http://schemas.juspace.ch/xmlns/cr/1/0">
>          <process>
> ...
>  
> while they expect
>  
> <deliverRequest xsi:noNamespaceSchemaLocation="/app/domains/appdomain/applications/juspace/WEB-INF/classes/META-INF/wsdl/juspace-crDeliverSvc-1-0.xsd" xmlns="http://schemas.juspace.ch/xmlns/cr/deliverSvc/1/0" xmlns:ns6="http://www.ech.ch/xmlns/eCH-0044/2" xmlns:ns5="http://schemas.juspace.ch/xmlns/1/0" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:ns7="http://www.ech.ch/xmlns/eCH-0046/2" xmlns:ns9="http://schemas.juspace.ch/xmlns/cr/log/1/0" xmlns:ns2="http://schemas.juspace.ch/xmlns/versioning/1/0" xmlns:ns4="http://www.ech.ch/xmlns/eCH-0010/4" xmlns:ns3="http://schemas.juspace.ch/xmlns/cr/1/0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> ...
>  
> See also: AXIS2-5449



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org