• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

.NET client calling Java web-service (SOAPFaultException)

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,

Thanks
Kind regards
Dave
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic