Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.7.8
-
None
-
None
-
debian stable
Description
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