Questions tagged [soapexception]
45 questions
7
votes
2 answers
Catching a SoapException thrown by a WebService
I wrote the following service :
namespace WebService1
{
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
public class Service1 :…

Sharpac
- 418
- 3
- 5
- 13
4
votes
1 answer
Throwing SoapException in .Net web service
EDIT: I have scoured high and low for an answer to this and nobody seems to be getting a similar issue. It seems to me that throwing the SoapException should format the response as required, not with just the exception message. Any help gratefully…

anothershrubery
- 20,461
- 14
- 53
- 98
3
votes
3 answers
Handling exceptions in WCF service?
I have project in which i am calling soap based service . I am using fault and communication exception as mostly two of these exception occurs in calling of api. but what if any other exception occurs instead of these two exception in soap api ?
…

shujaat siddiqui
- 1,527
- 1
- 20
- 41
3
votes
2 answers
SoapHttpClientProtocol automatically retry after exception?
I am just curious about this. I am making a change in this project, that is using NetSuite web service, and sometimes it throws a SoapException at random, "Only one request may be made against a session at a time".
private NetSuiteService…

live-love
- 48,840
- 22
- 240
- 204
2
votes
0 answers
SAP Webservice Client - Deserialization failed
I've created a simple Net WebSvc Client which receives an up to date reference of a SAP WebSvc. It expects a String, and four elements sent by reference: three arrays of custom objects and another custom object outside any collection structure…

apacay
- 1,702
- 5
- 19
- 41
2
votes
1 answer
How to change SOAPException ResponseCode
I am using SoapException to handle invalid inputs and all other kind of exception handling in my web service. It's working fine and I am able to format and return proper information to client. I am following a method similar to the one explained…

Ansar Muhammad
- 1,238
- 5
- 25
- 45
2
votes
1 answer
Retrieving Fault types deep inside xml
I am connecting to a web-service and getting errors in form of SoapException. This can contain different types of faults but are send down within the Detail property of SoapException. It can contain more than one faults. Here is one example of what…

paul deter
- 857
- 2
- 7
- 20
2
votes
0 answers
Provider org.apache.axis2.saaj.SAAJMetaFactoryImpl not found
i am tyring to convert my SOAPEnvelope from org.apache.axiom.soap.SOAPEnvelope to javax.xml.soap.SOAPEnvelop using org.apache.axis2.jaxws.message.util.impl.SAAJConverterImpl converter.
But while i try to convert i get the error like this :…

Tejas Patel
- 89
- 4
- 16
2
votes
0 answers
System.Web.Services.Protocols.SoapException The application encountered an unhandled system exception. From binary file
I have a project in .net that accesses a GP Web Services, it works fine. However when I generate a dll from this project and try to run the same from a different project using this dll, I get the following message:…

Rafael
- 1,099
- 5
- 23
- 47
2
votes
1 answer
Dynamics nav 2009 RE: SoapException: Standard Item Code 'foo' does not exist
I am trying to create purchase invoice:
PurchseInvoice_Service pis = new PurchseInvoice_Service();
PurchseInvoice pi = new PurchseInvoice();
pis.Create(ref pi);
pi.Buy_from_Vendor_No = "40000";
pi.Currency_Code = "EUR";
pi.Location_Code =…

vt100
- 923
- 1
- 11
- 21
2
votes
1 answer
How to narrow down to the actual issue when you receive a generic SoapException: Server was unable to process request. from MS-CRM 4.0
I recently started programming against CRM 4.0 and I am issuing these requests using the CrmService. Often I get the wrong values in the some property of the dynamic entity that I am using when I send the request. Of course the request fails, am…

Mircea Ion
- 658
- 5
- 20
1
vote
1 answer
Unable to create message factory for SOAP: Unable to create SAAJ meta-factoryProvider com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found
Our product is built on eclipse RCP and OSGi frameworks.
I have upgraded my code from JDK1.8 to JDK11. In the code I am creating a SOAP Message using MessageFactory.newInstance().createMessage() but I am getting below when running on…

Ajay Lamba
- 71
- 5
1
vote
1 answer
C# Error: RestClient read value from SoapENV XML
I am try to get session ID from soapenv using RestClient but i get value as 0 or -1.
This is my code
var client = new RestClient(url);
client.Authenticator = new HttpBasicAuthenticator(name, pwd);
var request = new…

Harshal Gandhi
- 13
- 4
1
vote
0 answers
How to analyze "the handshake failed due to an unexpected packet format " inner exception
I send some data to a web service. But the web service returns a soap exception which has the "handshake failed due to an unexpected packet format" inner exception. How can I know which packet is unexpected? Because I send a few packets to web…

cagin
- 5,772
- 14
- 74
- 130
1
vote
2 answers
WCF HTTP/SOAP Webservice - Returning exception message in faults
I have asimple WCF HTTP/SOAP web service, the service implementation looks something like this:
public CustomResponse DoSomething(CustomRequest request)
{
try
{
return InternalGubbins.WithErrorHandling.ProcessRequest(request);
}
…

MrEyes
- 13,059
- 10
- 48
- 68