Hi Michele, the chunk of code: 

targetEPR = new EndpointReference(rb.getString("UrlVerDocumento"));
                System.out.println("URL del WebService: 
"+rb.getString("UrlVerDocumento"));
                
                // Definimos el endPoint y la acción
                Options options = new Options();
                options.setTo(targetEPR);
                options.setAction("sendAttachment");
                options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
                                
                options.setProperty(Constants.Configuration.ENABLE_MTOM, 
Constants.VALUE_TRUE);
                        
                // Incrementamos el timeout por si el fichero fuese grande
                options.setTimeOutInMilliSeconds(10000);
                
                ServiceClient sender = new ServiceClient();
                sender.setOptions(options);
                
                OMElement echoElement = getOMElement();
                
                
                OMElement MTOMEle = (OMElement) sender.sendReceive(echoElement);

And the method getOMElement...

public static OMElement getOMElement(  ) {
                OMFactory fac = OMAbstractFactory.getOMFactory();
                
                //OMNamespace omNs = 
fac.createOMNamespace("http://baratz.pruebas.com";, "mtom");                
                OMNamespace omNs = 
fac.createOMNamespace("http://verdocumento.servicios2.documental.soluziona.com/xsd";,
 "mtom");
                
                OMElement xmlData = fac.createOMElement("xml", omNs);
                OMElement echoElement = fac.createOMElement("uploadFile", omNs);
                StringBuffer xml = new StringBuffer();
                
                xml.append(result);
                xmlData.setText(xml.toString());
                echoElement.addChild(xmlData);
                
                return echoElement;
        }




-----Mensaje original-----
De: Michele Mazzucco [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 05 de marzo de 2008 16:18
Para: [email protected]
Asunto: Re: The endpoint reference (EPR) for the Operation not found

Can you post the chunk of code which sends the message?

Michele

On 5 Mar 2008, at 15:00, Capilla Castillo, Esther wrote:

> When I invoke my webservice from the client, the exception is:
> org.apache.axis2.AxisFault: unknown
>       at org.apache.axis2.description.OutInAxisOperationClient.execute 
> (OutInAxisOperation.java:287)
>       at org.apache.axis2.client.ServiceClient.sendReceive 
> (ServiceClient.java:457)
>       at org.apache.axis2.client.ServiceClient.sendReceive 
> (ServiceClient.java:399)
>       at clientesAxis2.VerDocumentoCliente.main(VerDocumentoCliente.java: 
> 91)
>
>
>
> -----Mensaje original-----
> De: Michele Mazzucco [mailto:[EMAIL PROTECTED]
> Enviado el: miércoles, 05 de marzo de 2008 14:33
> Para: [email protected]
> Asunto: Re: The endpoint reference (EPR) for the Operation not found
>
> What about the protocol (I'm not expert with MTOM -- so I might be
> wrong)?
>
> options.setTransportInProtocol(Constants.TRANSPORT_HTTP); // set
> according to the protocol in operation
> This is needed (if MTOM is not used), otherwise an error like "cannot
> infer transport..." occurs.
>
> Michele
>
> On 5 Mar 2008, at 12:51, Capilla Castillo, Esther wrote:
>
>> In my client I have the following code to set options:
>>              Options options = new Options();
>>              options.setTo(targetEPR);
>>              options.setAction("sendAttachment");
>>              
>>              
>>              options.setProperty(Constants.Configuration.ENABLE_MTOM,
>> Constants.VALUE_TRUE);
>>                      
>>              options.setTimeOutInMilliSeconds(10000);
>>              
>>              ServiceClient sender = new ServiceClient();
>>              sender.setOptions(options);
>>
>> -----Mensaje original-----
>> De: Michele Mazzucco [mailto:[EMAIL PROTECTED]
>> Enviado el: miércoles, 05 de marzo de 2008 13:45
>> Para: [email protected]
>> Asunto: Re: The endpoint reference (EPR) for the Operation not found
>>
>> Try to call options.setAction("sendAttachment");
>>
>> Michele
>>
>> On 5 Mar 2008, at 12:39, Capilla Castillo, Esther wrote:
>>
>>> This is the SOAP request:
>>>
>>> <soapenv:Reason>
>>> −
>>>     <soapenv:Text>
>>> The endpoint reference (EPR) for the Operation not found is /axis2/
>>> services/WsVerDocumento and the WSA Action = null
>>> </soapenv:Text>
>>> </soapenv:Reason>
>>>
>>> -----Mensaje original-----
>>> De: Deepal jayasinghe [mailto:[EMAIL PROTECTED]
>>> Enviado el: miércoles, 05 de marzo de 2008 13:37
>>> Para: [email protected]
>>> Asunto: Re: The endpoint reference (EPR) for the Operation not found
>>>
>>>
>>> Any possibility of looking at the SOAP request (including HTTP
>>> headers)
>>> , then I may be able to give you an answer.
>>>
>>> Thank you,
>>> Deepal
>>>> Hi all!
>>>> I'm deployed a WebServices in beaWeblogic 9.2, but I've a problem,
>>>> when
>>>> I invoke the Services I obtain the follow message:
>>>> The endpoint reference (EPR) for the Operation not found is
>>>> /axis2/services/WsVerDocumento and the WSA Action = null
>>>> I think that my problem is in the services.xml, but I don't  
>>>> know. My
>>>> services.xml is that:
>>>> <service name="WsVerDocumento">
>>>>     <Description>
>>>>         Este WebService permita bajar un documento del
>>>> repositorio de
>>>> Documentum
>>>>     </Description>
>>>>    <parameter name="enableMTOM">true</parameter>
>>>>     <parameter name="ServiceClass"
>>>> locked="false">com.soluziona.documental.servicios2.verdocumento.Ver 
>>>> D
>>>> o
>>>> cum
>>>> entoWebService</parameter>
>>>>     <operation name="sendAttachment">
>>>>            <actionMapping>sendAttachment</actionMapping>
>>>>            <messageReceiver
>>>> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver" />
>>>>     </operation>
>>>> </service>
>>>>
>>>> Thanks!
>>>> Esther
>>>>
>>>> ------------------------------------------------------------------- 
>>>> -
>>>> -
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> -------------------------------------------------------------------- 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

Reply via email to