• Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis client and JAXB

 
Nitti Lin
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,
I have some Java classes generated by Apache Axis WSDL2Java. I'm writing wrapper classes using "Apache Axis WSDL2Java" generated classes to communicate to a remote server, then using JAXB generated classes to build XML messages.
My question is...
1) If I execute my wrapper Java classes to talk to remote server, program works fine.
2) If I run a Tomcat server on my local machine using JSP to call my wrapper class to talk to remote server, one of my wrapper classes got an exception...
System was unable to process request due to internal error
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
...
3) If I execute my wrapper Java classes to talk to remote server and using JAXB generated classes to generate XML message, program raised an exception...
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.SystemFailure
faultSubcode:
faultString: System was unable to process request due to internal error
faultActor:
faultNode:
faultDetail:
{}StackTrace: java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.dom4j.TextImpl
at com.xxxxx.universalservices.base.io.ebxml.EbXMLMessage.getErrorResponseMessage(EbXMLMessage.java:765)
I think 2) and 3) are related problems, but not sure what's going on. Could anyone please show me some directions to solve this problem?
Thanks,
Nitti
[ April 14, 2004: Message edited by: Nitti Lin ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is "EbXMLMessage.java:765" trying to do?
 
Nitti Lin
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lasse Koskela:
What is "EbXMLMessage.java:765" trying to do?

Sorry, I figurred it out. It's my fault and a very stupid one. One of the required field I sent was null.

Nitti
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!