axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Waqar Sadiq" <waqar.sa...@practicepacs.com>
Subject RE: DIME attachments
Date Wed, 01 Dec 2004 14:17:31 GMT
Hello,

 

My problem is still un-resolved.  Does anyone out there has any ideas about
the cause of this problem.  I appreciate any pointers anybody can give.

 

Thanks,

 

 

 

___________________________________________

    Waqar Sadiq

President

Practice Pacs, LLC

5809 Dove Creek Lane

Plano, TX 75093

 

Phone: (469) 556-1354

Email:  <mailto:waqar.sadiq@practicepacs.com> waqar.sadiq@practicepacs.com

___________________________________________

 

  _____  

From: Waqar Sadiq [mailto:waqar.sadiq@practicepacs.com] 
Sent: Tuesday, November 30, 2004 3:49 PM
To: axis-user@ws.apache.org
Subject: RE: DIME attachments 

 

It is strange.  In debug mode, I can see more details and it seems like
although the content-length indicates the correct size, there is no data in
the attachment.

 

This is the partial debug out by axis the client side:

 

////////////////////////////////////////////////////////////////////////////
///////////////////////////////

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

 <soapenv:Body>

  <train
xmlns="http://com.practicepacs.services.transcription.TranscriptionService/"
>

   <userId>geppert</userId>

   <voiceModel>First Voice Model</voiceModel>

   <scriptName>gub</scriptName>

  </train>

 </soapenv:Body>

</soapenv:Envelope>)

[DEBUG] SOAPPart - -Exit: SOAPPart::getAsString(): <?xml version="1.0"
encoding="UTF-8"?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

 <soapenv:Body>

  <train
xmlns="http://com.practicepacs.services.transcription.TranscriptionService/"
>

   <userId>geppert</userId>

   <voiceModel>First Voice Model</voiceModel>

   <scriptName>gub</scriptName>

  </train>

 </soapenv:Body>

</soapenv:Envelope>

[DEBUG] ProjectResourceBundle -
-org.apache.axis.i18n.resource::handleGetObject(setMsgForm)

[DEBUG] SOAPPart - -Setting current message form to: FORM_BYTES
(currentMessage is now [B)

[DEBUG] SOAPPart - -Exit: SOAPPart::getAsBytes

[DEBUG] ProjectResourceBundle -
-org.apache.axis.i18n.resource::handleGetObject(axisUserAgent)

[DEBUG] SOAPPart - -Enter: SOAPPart::getAsBytes

[DEBUG] SOAPPart - -Exit: SOAPPart::getAsBytes

[DEBUG] SOAPPart - -Enter: SOAPPart::getAsBytes

[DEBUG] SOAPPart - -Exit: SOAPPart::getAsBytes

[DEBUG] ProjectResourceBundle -
-org.apache.axis.i18n.resource::handleGetObject(xmlSent00)

[DEBUG] HTTPSender - -XML sent:

[DEBUG] HTTPSender - ----------------------------------------------------

[DEBUG] HTTPSender - -POST /TranscriptionService/TranscriptionService.asmx
HTTP/1.0

Content-Type: application/dime

Accept: application/soap+xml, application/dime, multipart/related, text/*

User-Agent: Axis/1.1

Host: waqar

Cache-Control: no-cache

Pragma: no-cache

SOAPAction:
"http://com.practicepacs.services.transcription.TranscriptionService/train"

Content-Length: 5380384

 

null

[DEBUG] HTTPSender - -HTTP/1.1 400 Bad Request

[DEBUG] HTTPSender - -Server Microsoft-IIS/5.1

[DEBUG] HTTPSender - -Date Tue, 30 Nov 2004 21:38:45 GMT

[DEBUG] HTTPSender - -X-Powered-By ASP.NET

[DEBUG] HTTPSender - -X-AspNet-Version 1.1.4322

[DEBUG] HTTPSender - -Cache-Control private

[DEBUG] HTTPSender - -Content-Length 0

 

////////////////////////////////////////////////////////////////////////////
///////////////////////////////

 

Any help is appreciated.

 

 

___________________________________________

    Waqar Sadiq

President

Practice Pacs, LLC

5809 Dove Creek Lane

Plano, TX 75093

 

Phone: (469) 556-1354

Email:  <mailto:waqar.sadiq@practicepacs.com> waqar.sadiq@practicepacs.com

___________________________________________

 

  _____  

From: Waqar Sadiq [mailto:waqar.sadiq@practicepacs.com] 
Sent: Tuesday, November 30, 2004 3:34 PM
To: axis-user@ws.apache.org
Subject: RE: DIME attachments 

 

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.tra
in(TranscriptionServiceSoapStub.java:301)

            at
com.practicepacs.services.speech.wizzscribe.WizzscribeTranscriptionService.t
rain(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:  <mailto:waqar.sadiq@practicepacs.com> waqar.sadiq@practicepacs.com

___________________________________________

 

  _____  

From: Simon Fell [mailto:sfell@salesforce.com] 
Sent: Tuesday, November 30, 2004 2:59 PM
To: axis-user@ws.apache.org
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:waqar.sadiq@practicepacs.com] 
Sent: Tuesday, November 30, 2004 12:48 PM
To: axis-user@ws.apache.org
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.tra
in(TranscriptionServiceSoapStub.java:301)

            at
com.practicepacs.services.speech.wizzscribe.WizzscribeTranscriptionService.t
rain(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_ENCA
PSULATION_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:  <mailto:waqar.sadiq@practicepacs.com> waqar.sadiq@practicepacs.com

___________________________________________

 


Mime
View raw message