Forums Register Login

Non build in data type in webservice

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1239 times.
Similar Threads
Transaction and Websphere - problems
Problem with SOAP
error-page tag
a new method is added to the old wsdl file causing issue
Consume Sharepoint 2010 webservice in java
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:08:50.