I am using service reference in .NET to call a third party carrier API i.e. ESTES. you can find the wsdl here. now whenever I call it from the code and there are some errors it just throws a FaultException and exception message as GeneralErrorMsg or SchemavalidationError with no meaningful messages. I do get the meaningful messages when I run it in SOAP UI tool but not from .Net code.
Following are some link of images of exception. FYI innerexception is null
Below is the response that I get, when I run the API using SOAPUI. FYI this is third party API and not ours I am just calling their API
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>GeneralErrorMsg</faultstring>
<detail>
<bol:generalError xmlns:bol="http://ws.estesexpress.com/bol">
<bol:error>
<bol:code>BOL0193</bol:code>
<bol:message>We cannot automatically assign a PRO number if the shipping address is not serviced directly by Estes. Please uncheck the "Assign PRO #" box. Questions? Feel free to call your <a href="/WebApp/TerminalList/"> local terminal</a>.</bol:message>
</bol:error>
<bol:error>
<bol:code>BOL0101</bol:code>
<bol:message>Invalid state/zip combination</bol:message>
</bol:error>
</bol:generalError>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Please help me guys its really giving me hard time.