Two Laptop Bag*
The moose likes Web Services and the fly likes How to convert xml file to javax.xml.soap.SOAPElement [ ] array? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to convert xml file to javax.xml.soap.SOAPElement [ ] array?" Watch "How to convert xml file to javax.xml.soap.SOAPElement [ ] array?" New topic
Author

How to convert xml file to javax.xml.soap.SOAPElement [ ] array?

navat venu
Ranch Hand

Joined: May 14, 2006
Posts: 66
Hi,

How to convert xml file to javax.xml.soap.SOAPElement [ ] array?

I have an xml file.I have to call a webservice with an input parameter object.This object is java bean containing the variable javax.xml.soap.SOAPElement [ ] array.


-------------------- <br />SCJP 1.4<br />SCWCD 1.4<br />SCBCD 5(in progress)<br /> <br />"Do, what you think that you cannot do"
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2921
    
    5
Axis 1.x has org.apache.axis.message.MessageElement(org.w3c.dom.Element element) which implements javax.xml.soap.SOAPElement.

See: How to create SOAPElement from existing XML document?


I suspect that you are a victim of xsd:any.
xsd:any: A cautionary tale
Using the <xsd:any/> element for custom serialization
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to convert xml file to javax.xml.soap.SOAPElement [ ] array?
 
Similar Threads
Xml Element to Byte Array
byte array to bits
How to Create a Byte Arrary from a XML File?
javax.xml.soap.SOAPElement addTextNode(String)
xml to excel conversion