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/02/08 15:03:00 UTC
[jira] [Created] (AXIS2-5949) missing namespace declarations
Ralf Hauser created AXIS2-5949:
----------------------------------
Summary: missing 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
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
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org