Im sorry for sooo many posts today.
 
I solved my problem.
 
In the example the services.xml file should have included an operation tag:
 
<service name="MTOMFileService"> 
   <parameter 
name="ServiceClass">com.akimeka.attachments.MTOMFileService</parameter>
   <operation name="getFile">
      <messageReceiver
         mep=http://www.w3.org/2004/08/wsdl/in-out
         class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
   </operation>
   <parameter name="enableMTOM">true</parameter>
</service>

Why is this?   Other services work without.  Any ideas for future reference?

 
__
Marc Lefebvre, Principle Software Engineer
Akimeka, 1305 N. Holopono Street, Kihei, HI 96753 
Phone: (808)442-7168, Email: [EMAIL PROTECTED]
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc


________________________________

From: Marc Lefebvre [mailto:[EMAIL PROTECTED]
Sent: Tue 6/10/2008 8:37 AM
To: axis-user@ws.apache.org
Subject: RE: SOAP Attachment Questions


Trying again with attaching ZIP of the files.
 
__
Marc Lefebvre, Principle Software Engineer
Akimeka, 1305 N. Holopono Street, Kihei, HI 96753 
Phone: (808)442-7168, Email: [EMAIL PROTECTED]
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc

________________________________

From: Marc Lefebvre [mailto:[EMAIL PROTECTED]
Sent: Tue 6/10/2008 8:30 AM
To: Axis Mailing List
Subject: RE: SOAP Attachment Questions



I went through the example:
http://thilinag.blogspot.com/2008/04/download-file-from-axis2-web-service.html


And am getting this error:

2008-06-10 08:11:45,964 [http-8080-1] ERROR org.apache.axis2.engine.AxisEngine  
- Message Receiver not found for AxisOperation: getFile
org.apache.axis2.AxisFault: Message Receiver not found for AxisOperation: 
getFile
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:172)
 at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
 at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
 at 
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:852)
 at 
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:584)
 at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
 at java.lang.Thread.run(Unknown Source)


Im using SoapUI 2.0.2 to send the test message from the generated WSDL.  How 
best to debug this issue?

The service and WSDL are showing up nicely in the AXIS Available services page.

Attached are the WSDL, Services.xml, and the JAVA class.
__
Marc Lefebvre, Principle Software Engineer
Akimeka, 1305 N. Holopono Street, Kihei, HI 96753
Phone: (808)442-7168, Email: [EMAIL PROTECTED]
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc

________________________________

From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
Sent: Thu 5/22/2008 2:32 PM
To: axis-user@ws.apache.org
Subject: Re: SOAP Attachment Questions


Hi,



        1) Is there an example on how to send a soap message with a binary 
attachment using MOTM in java for client and server side using Axis2?  I found 
the one in the samples directory using SoapwithAttachments, but Im looking for 
same example but using MOTM.

There is a MTOM sample in the Axis2 distribution. You may also want to check 
http://thilinag.blogspot.com/2008/04/download-file-from-axis2-web-service.html




        2) Are there any examples using SwA and MOTM that "gets" a file from a 
web service, instead of "sending" a file to a webservice.  (something similar 
to #1) The file must pass through contained within the soap response message.  
Sending a weblink is not appropriate for this application because of security 
constraints.

Check out the following.

http://wso2.org/library/1675

http://thilinag.blogspot.com/2008/04/download-file-from-axis2-web-service.html
http://wso2.org/library/1148

thanks,
Thilina




        Thanks!
       
        __
        Marc Lefebvre, Principle Software Engineer
        Akimeka, 1305 N. Holopono Street, Kihei, HI 96753
        Phone: (808)442-7168, Email: [EMAIL PROTECTED]
        echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc
       
       
       
       
        ---------------------------------------------------------------------
        To unsubscribe, e-mail: [EMAIL PROTECTED]
        For additional commands, e-mail: [EMAIL PROTECTED]
       




--
Thilina Gunarathne - http://thilinag.blogspot.com 
<http://thilinag.blogspot.com/>  <http://thilinag.blogspot.com/> 


<<winmail.dat>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to