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/>  
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:ns1="http://org.apache.axis2/xsd"; xmlns:ns="http://attachments.akimeka.com"; xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"; xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; targetNamespace="http://attachments.akimeka.com";>
    <wsdl:types>
        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://attachments.akimeka.com";>
            <xs:element name="getFile">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="fileName" nillable="true" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="getFileResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="return" nillable="true" type="xs:base64Binary"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
    </wsdl:types>
    <wsdl:message name="getFileRequest">
        <wsdl:part name="parameters" element="ns:getFile"/>
    </wsdl:message>
    <wsdl:message name="getFileResponse">
        <wsdl:part name="parameters" element="ns:getFileResponse"/>
    </wsdl:message>
    <wsdl:portType name="MTOMFileServicePortType">
        <wsdl:operation name="getFile">
            <wsdl:input message="ns:getFileRequest" wsaw:Action="urn:getFile"/>
            <wsdl:output message="ns:getFileResponse" wsaw:Action="urn:getFileResponse"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="MTOMFileServiceSoap11Binding" type="ns:MTOMFileServicePortType">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; style="document"/>
        <wsdl:operation name="getFile">
            <soap:operation soapAction="urn:getFile" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="MTOMFileServiceSoap12Binding" type="ns:MTOMFileServicePortType">
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"; style="document"/>
        <wsdl:operation name="getFile">
            <soap12:operation soapAction="urn:getFile" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="MTOMFileServiceHttpBinding" type="ns:MTOMFileServicePortType">
        <http:binding verb="POST"/>
        <wsdl:operation name="getFile">
            <http:operation location="MTOMFileService/getFile"/>
            <wsdl:input>
                <mime:content type="text/xml" part="getFile"/>
            </wsdl:input>
            <wsdl:output>
                <mime:content type="text/xml" part="getFile"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="MTOMFileService">
        <wsdl:port name="MTOMFileServiceHttpSoap11Endpoint" binding="ns:MTOMFileServiceSoap11Binding">
            <soap:address location="http://marc.low.ia.akimeka.com:8080/axis2/services/MTOMFileService"/>
        </wsdl:port>
        <wsdl:port name="MTOMFileServiceHttpSoap12Endpoint" binding="ns:MTOMFileServiceSoap12Binding">
            <soap12:address location="http://marc.low.ia.akimeka.com:8080/axis2/services/MTOMFileService"/>
        </wsdl:port>
        <wsdl:port name="MTOMFileServiceHttpEndpoint" binding="ns:MTOMFileServiceHttpBinding">
            <http:address location="http://marc.low.ia.akimeka.com:8080/axis2/services/MTOMFileService"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>
package com.akimeka.attachments;

import javax.activation.DataHandler;
import javax.activation.FileDataSource;

public class MTOMFileService {

	public DataHandler getFile(String fileName) { 
		FileDataSource dataSource = new FileDataSource(fileName); 
		DataHandler fileDataHandler = new DataHandler(dataSource); 
		return fileDataHandler;
	}	
}
<service name="MTOMFileService">   
	<messagereceivers>
		<messageReceiver
			mep="http://www.w3.org/2004/08/wsdl/in-out";
			class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
	</messagereceivers>   
	<parameter name="ServiceClass">com.akimeka.attachments.MTOMFileService</parameter>
	<parameter name="enableMTOM">true</parameter>
</service>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to