Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Defining a detail element for a fault in a WSDL  RSS feed

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys!

Is my assumption correct that if i define a fault message in the portType.operation node, in the case of that fault, the fault.detail element will hold a node with the local name of the porType.operation.fault.name value?

If so - what happens if the porType.operation.fault.name is not given (that attribute is optional)?

Many thanks in advance!

Take care, Alex

 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Your assumption is not correct.
In an attempt to clarify, I'll give an example:
In the <wsdl:types> element in the WSDL of a web service, there is an element declaration:

In the WSDL, there is the following <wsdl:message>, <wsdl:portType> and <wsdl:binding> definitions:

Note that the <wsdl:fault> in the <wsdl:binding> element uses the name element to refer to the corresponding <wsdl:fault> element in the <wsdl:portType> element.

If the web service in question generates a fault, the SOAP message returned will look like this:


Note how the <detail> element contains the <addValuesFault> element, as defined in the <wsdl:types> section. The <addValuesFault> element, in turn, contains the three child elements <errorMsg>, <value1> and <value2> - again according to the definition of the <addValuesFault> element.
As far as I can tell, there is nothing specifying how to use the name attribute you ask about in the SOAP 1.1 or WSDL 1.1 specifications.
References:
http://www.w3.org/TR/wsdl
http://www.w3.org/TR/2000/NOTE-SOAP-20000508/
Best wishes!
 
Allexicus Kernikus
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks for the great help!
 
expectation is the root of all heartache - shakespeare. tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!