I guess that was part of the problem.  I increased the limit and now am getting a 400 – Bad Request error.  If I do not send the attachment then my method on the target service is called.  However, with the attachments, I get the Bad Request error before the method on the target web service is called.

 

AxisFault

 faultCode: {http://xml.apache.org/axis/}HTTP

 faultSubcode:

 faultString: (400)Bad Request

 faultActor:

 faultNode:

 faultDetail:

            {}string: return code:  400

 

 

(400)Bad Request

            at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)

            at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)

            at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)

            at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)

            at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)

            at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)

            at org.apache.axis.client.Call.invokeEngine(Call.java:2564)

            at org.apache.axis.client.Call.invoke(Call.java:2553)

            at org.apache.axis.client.Call.invoke(Call.java:2248)

            at org.apache.axis.client.Call.invoke(Call.java:2171)

            at org.apache.axis.client.Call.invoke(Call.java:1691)

            at com.practicepacs.services.speech.wizzscribe.TranscriptionServiceSoapStub.train(TranscriptionServiceSoapStub.java:301)

            at com.practicepacs.services.speech.wizzscribe.WizzscribeTranscriptionService.train(WizzscribeTranscriptionService.java:162)

            at com.practicepacs.services.speech.SpeechService.train(SpeechService.java:127)

            at com.practicepacs.tests.SpeechServiceTest.testTrain(SpeechServiceTest.java:93)

            at com.practicepacs.tests.SpeechServiceTest.main(SpeechServiceTest.java:28)

 

 

 

Thanks in advance for your help.

 

 

___________________________________________

    Waqar Sadiq

President

Practice Pacs, LLC

5809 Dove Creek Lane

Plano, TX 75093

 

Phone: (469) 556-1354

Email: [EMAIL PROTECTED]

___________________________________________

 


From: Simon Fell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 30, 2004 2:59 PM
To: [EMAIL PROTECTED]
Subject: RE: DIME attachments

 

ASP.NET has a default max POST request of 4MB, sounds like you're running into that. There's some config settings you can change on the ASP.NET side to increase that limit.

 

Cheers

Simon

 


From: Waqar Sadiq [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 30, 2004 12:48 PM
To: [EMAIL PROTECTED]
Subject: DIME attachments

Hi All,

 

I have a .NET web service that receives large audio files and transcribes them.  This web service is written in C# and is of-course deployed in IIS.  The client is written in Axis and is sending the large audio file (My sample is about 5M but they could be much bigger).  However, when I send the attachment, I get the following error:

 

java.net.SocketException: Software caused connection abort: recv failed

            at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)

            at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)

            at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

            at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

            at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

            at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)

            at org.apache.axis.client.Call.invokeEngine(Call.java:2719)

            at org.apache.axis.client.Call.invoke(Call.java:2702)

            at org.apache.axis.client.Call.invoke(Call.java:2378)

            at org.apache.axis.client.Call.invoke(Call.java:2301)

            at org.apache.axis.client.Call.invoke(Call.java:1758)

            at com.practicepacs.services.speech.wizzscribe.TranscriptionServiceSoapStub.train(TranscriptionServiceSoapStub.java:301)

            at com.practicepacs.services.speech.wizzscribe.WizzscribeTranscriptionService.train(WizzscribeTranscriptionService.java:162)

            at com.practicepacs.services.speech.SpeechService.train(SpeechService.java:127)

            at com.practicepacs.tests.SpeechServiceTest.testTrain(SpeechServiceTest.java:93)

            at com.practicepacs.tests.SpeechServiceTest.main(SpeechServiceTest.java:28)

 

I have researched around and I think I have all the necessary files jars (such as activation.jar and mail.jar).

 

Here is what my client looks like:

 

 

public static void train(String userId,String modelName,String scriptId,String voiceDataFile) throws Exception

            {

                        try

                        {

                                    File f = new File(voiceDataFile);

                                   

                                    TranscriptionServiceSoapStub proxy = connect(svcUrl_,TRAIN);

                                    proxy._setProperty(Call.ATTACHMENT_ENCAPSULATION_FORMAT,Call.ATTACHMENT_ENCAPSULATION_FORMAT_DIME);

                                    DataHandler dh = new DataHandler(new FileDataSource(voiceDataFile));

                                    proxy.addAttachment(dh);

                                    proxy.train(userId,modelName,scriptId);

                        }

                        catch(Exception e)

                        {

                                    throw e;

                        }

            }

 

 

Any help will be appreciated.

 

Thanks,

 

 

 

 

___________________________________________

    Waqar Sadiq

President

Practice Pacs, LLC

5809 Dove Creek Lane

Plano, TX 75093

 

Phone: (469) 556-1354

Email: [EMAIL PROTECTED]

___________________________________________

 

<<image001.jpg>>

<<image002.jpg>>

Reply via email to