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>>

Reply via email to