• 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

soap fault return empty <detail> element.

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I have designed a web service in a top down manner. I am working with Axis2 stack.

Below is the WSDL for a simple web service with only one operation 'concat'



I generate the server side code using wsdl2java tool.

Concat method implementation.


When I send the request to web service using SOAP-UI, It does return anything for <detail> element of soap fault.


Did I miss anything?
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Based on the SOAP schema at Schema for the SOAP/1.1 envelope, what you posted seems to be valid -



 
Ravinderjit Singh
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree the schema is valid.

I was looking for soap fault like below.



At present I am getting empty <detail/> element. How I can get the message part in <detail>?
Reason being the tool in which I will be using this WSDL, will be accessing the <detail> element, if its empty it would not work.
 
Ravinderjit Singh
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I figured it out.

The concat function should be like.

 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Many thanks for the update.
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ravinderjit Singh wrote:

I was looking for soap fault like below.





I wonder, where does this sim namespace come from?

Regards,
Dan
 
Ravinderjit Singh
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That was a dummy soap-fault I posted.
Here is exact soap-fault I am getting.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am facing a similar issue in which i am not getting the user defined exception for fault case in detail section , rather getting it in fault string section. I dont understand what is ConcatFault in the fix suggested by you and did you write an implementation class for this ConcatFault which is described as an element of type string in xml schema.
 
Ravinderjit Singh
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ContactFault is an auto generated class from the WSDL you can check in my very first post. You don't have to do anything with this class. Below is the code which I used to set the fault.

 
reply
    Bookmark Topic Watch Topic
  • New Topic