You need to sign in to do that
Don't have an account?
maybemedic
Fault Schema in WSDL for Apex code
Hello All,
I am trying to expose an Apex class as a web service. Earlier I have built a client from outside SF to invoke services from SF. The apex developer then said that there is no way he could send faults from SF. So I had to parse the response at the client for some code like "FAIL"/"SUCCESS". Now I am involved in some apex development and I'd like to know if there is any way force.com platform WSDL generator would include fault shcema in the WSDL it generates for an apex class.I'd appreciate any help in this regards. Thanks all.
I am trying to expose an Apex class as a web service. Earlier I have built a client from outside SF to invoke services from SF. The apex developer then said that there is no way he could send faults from SF. So I had to parse the response at the client for some code like "FAIL"/"SUCCESS". Now I am involved in some apex development and I'd like to know if there is any way force.com platform WSDL generator would include fault shcema in the WSDL it generates for an apex class.I'd appreciate any help in this regards. Thanks all.
I think I may be facing the same issue.
I tried generating Apex stubs for a service that includes as part of its definition--
<wsdl:fault name="orderException" message="tns:orderException"/>
But I just get a SOAP fault and can't get at the members of orderExcepiton (I don't have this problem in java using wsdl2java).
So two questions--
Am I totally stuck getting the contents in the Exception?
If I didn't use wsdl2apex bindings, would there be a way to invoke the service where I could get the details of the Exception?