This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Non build in data type in webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Non build in data type in webservice" Watch "Non build in data type in webservice" New topic

Non build in data type in webservice

ganapathy gopinathan
Ranch Hand

Joined: Aug 10, 2004
Posts: 30
Hi All,

I have one query related to non buildin datatype in webservice. I use user defined exception in my webservice. when i use the error code and error message in the webservice it is working fine for me. When i tried with only the error message it is not working for me. Is that necessary for us to give both error code and message?

Please advice
keerthi matta

Joined: May 31, 2002
Posts: 27

It is not necessary to mention errorCode, it all depends on the way u have configured ur fault message in wsdl.
I tried with the below sample wsdl which does not have any errorCode element in the Fault, it works fine for me. Even errorCode element is present u can pass a null for that.

<xs:schema targetNamespace="" xmlns:SOAP-ENC="" xmlns:types="" xmlns:xs="">
<xs:complexType name="GeneralFaultType">
<xs:element name="faultSeverity" type="xs:string"/>
<xs:element name="faultDesc" type="xs:string"/>
<message name="GeneralFaultMsg">
<part name="fault" type="tns:GeneralFaultType"/>

Consider Paul's rocket mass heater.
subject: Non build in data type in webservice
Similar Threads
Transaction and Websphere - problems
Consume Sharepoint 2010 webservice in java
a new method is added to the old wsdl file causing issue
Problem with SOAP
error-page tag