Hi all,

I continue with my developments in axis2 and when I invoke my webservice I 
receive this message:

 

java.util.MissingResourceException: Can't find resource for bundle 
org.apache.axis2.i18n.ProjectResourceBundle, key 
spec.FAULT_ACTION_NOT_SUPPORTED_REASON

 

The public method in my WebServices is:

            public OMElement loginOMElement(OMElement xmlEle)

 

The services.xml is:

<service name="WsLogin">

    <Description>

        Este WebService permite crear una sesion en Documentum

    </Description>

            <parameter name="enableMTOM">true</parameter>

    <parameter name="ServiceClass" 
locked="false">com.soluziona.documental.servicios2.login.LoginWebService</parameter>

    <operation name="loginOMElement">

                        <actionMapping>urn:loginOMElement</actionMapping>

                        <messageReceiver 
class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver" />

    </operation>

</service>

 

The chunk of code when I call to my service is:

 

EndpointReference targetEPR = 

                  new 
EndpointReference("http://10.111.96.136:7001/axis2/services/LoginWebService";);

 

            Options options = new Options();

            options.setTo(targetEPR);

            options.setAction("urn:loginOMElement");

               

            // Habilitamos MTOM

            options.setProperty(Constants.Configuration.ENABLE_MTOM, 
Constants.VALUE_TRUE);

                  

            // Incrementamos el timeout por si el fichero fuese grande

            options.setTimeOutInMilliSeconds(10000);

            

            ServiceClient sender;

            sender = new ServiceClient();

            sender.setOptions(options);

//          Enviamos un omelement 

            OMElement OMElement = (OMElement) sender.sendReceive( 
getOMElementLogin(Str_xml) );

 

And the method getOMElementLogin is that:

 

public static OMElement getOMElementLogin(String Str_xml) {

            OMFactory fac = OMAbstractFactory.getOMFactory();

            

            OMNamespace omNs = 
fac.createOMNamespace("http://http://baratz.pruebas.com";, "mtom");

            

            // Elemento del xml <sendAttachment> en este caso va vacío porque 
el WS

            // siempre manda el mismo fichero y no tenemos que pasarle ningún 
parámetro

            OMElement echoElement = fac.createOMElement("sendAttachment", omNs);

            OMElement xmlData = fac.createOMElement("xml", omNs);

            xmlData.setText(Str_xml);

            echoElement.addChild(xmlData);

                  

            return echoElement;

      }

 

Any idea??

Thanks!!

 

 

Reply via email to