Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

.NET client calling Java web-service (SOAPFaultException)  RSS feed

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

We are replacing a set of .NET web-services with a set of Java ones (deployed into JBoss 4.0.5). All is fine with building/deploying/calling the web-services from .NET - however, I'm having some trouble with regards exceptions.

The .NET client code (which we cannot change), has the following code:

The problem is highlighted in bold - I cannot seem to fill the Detail object being returned in the SOAPFaultException I throw in the web-service code. I'm throwing a simple SOAPFaultException as follows:

The following snippet shows the JBoss log file after the above code executes:

As can be seen in bold, the Detail object is null....

I have a few questions:

i) How can I create the SOAPFaultException so that the Detail object is not null when it is pushed out of JBoss?
ii) As seen above, I am pushing an XML string into the Detail object. However, I also have this XML document as an org.w3c.dom.Element object. Therefore, it is possible to push the XML document in this form into the Detail object in order to stop it being null? If so, how do I convert an org.w3c.dom.Element object into javax.xml.soap.SOAPElement object in order to add it to the Detail object set within the SOAPFaultException object.

Is it possible to return a Detail object from JBoss that is not null? The web-service FAQ says to create it as per the above, but it comes out as a null?

Thanks in advance for all your help,

Kind regards
A feeble attempt to tell you about our stuff that makes us money
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!