Hi,
I'm trying to invoke one of the webservices I created and have some problems.
I created the stubs for my calls using the standard axis tools:
<taskdef name="wsdl2java" classname="org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask"
etc.
This works fine and also works with simple calls. (But if there's a better way to create
the stubs, please let me know). But I have a more complex call from the client:
createNewBill( bill : VOBill ) where VOBill has a 1-n association to VOBillPosition.
If I try to send this from the client to the server, the server complains:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Invalid element in de.janheise.billing.domain.vo.VOBill - vOBillPositions
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:Silberfisch.local
org.xml.sax.SAXException: Invalid element in de.janheise.billing.domain.vo.VOBill - vOBillPositions
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.ja va:221)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.jav a:128)
at org.apache.axis.encoding.DeserializationContext.endElement(Deserializati onContext.java:1083)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
I already thought that's maybe because the association-setter/getter are private per default
and changed that but that didn't seem to help.
I think I'll have to write some tests, but if someone has any suggestions, I'd be glad to
hear them :)
thx,
Jan
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user