Hi list,
I'm using XFire with Spring using Aegis bindings (with annotations) and
we have an issue with how DOM documents are constructed.
I have a save method, defined like this:
@WebMethod(operationName = "save")
@WebResult(name = "result")
WSResult save(@WebParam(name = "id")Long id,
@WebParam(name = "contentXml")Document contentXml) throws
WSFault;
The WS request I'm sending looks like this:
<soap:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://foo">
<soap:Body>
<save>
<id>5498</id>
<contentXml>
<copy xmlns="http://foo">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<p>Some content.</p>
</body>
</html>
</copy>
</contentXml>
</save>
</soap:Body>
</soap:Envelope>
Now, I would expect (and want) the DOM document, contentXml, to have
<copy> as it's document element. However, this is not the case and the
document element is <contentXml> with <copy> as the first element under
it.
Is there anyway I can achieve this through configuration without having
to change my code? DOM manipulation in painful enough.
rgds,
Richard
PS. To pre-emp any suggestion, to rename the parameter and only post the
<html> element onwards is not a workable solution. I have tried this
and it puts the content in the incorrect namespace.
Richard Grantham
Development
-------------------------------
[EMAIL PROTECTED]
Limehouse Software Ltd
DDI: (020) 7566 3336
Main: (020) 7566 3320
Fax: (020) 7566 3321
Limehouse Software Ltd
4th Floor
1 London Bridge
London
SE1 9BG
Manchester Office:
3rd Floor, The Triangle, Exchange Square, Manchester M4 3TR
Tel: (0161) 240 2440, Fax: (0161) 240 2441, ISDN: 08700 119 400
Check out Limehouse Software's innovative solutions
www.limehousesoftware.co.uk - Transforming the way you publish and consult on
information
The information contained in this e-mail or in any attachments is confidential
and is intended solely for the named addressee only. Access to this e-mail by
anyone else is unauthorised. If you are not the intended recipient, please
notify Limehouse Software Ltd immediately by returning this e-mail to sender or
calling 020 7566 3320 and do not read, use or disseminate the information.
Opinions expressed in this e-mail are those of the sender and not necessarily
the company. Although an active anti-virus policy is operated, the company
accepts no liability for any damage caused by any virus transmitted by this
e-mail, including any attachments.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email