File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "Non build in data type in webservice" Watch "Non build in data type in webservice" New topic
Author

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
Thanks
Gopi
keerthi matta
Greenhorn

Joined: May 31, 2002
Posts: 27
Gopi,

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.

<types>
<xs:schema targetNamespace="http://ibtco.com/webservices/cobol/facts" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:types="http://ibtco.com/webservices/cobol/facts" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="GeneralFaultType">
<xs:sequence>
<xs:element name="faultSeverity" type="xs:string"/>
<xs:element name="faultDesc" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</types>
<message name="GeneralFaultMsg">
<part name="fault" type="tns:GeneralFaultType"/>
</message>


Thanks
Keerthi
 
 
subject: Non build in data type in webservice