Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Non build in data type in webservice

 
ganapathy gopinathan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic