File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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"/>

I agree. Here's the link:
subject: Non build in data type in webservice
jQuery in Action, 3rd edition