axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele Mazzucco <Michele.Mazzu...@ncl.ac.uk>
Subject Re: The endpoint reference (EPR) for the Operation not found
Date Wed, 05 Mar 2008 16:42:12 GMT
Esther,

I'm running out of resources...
- Try to set the target operation into the EPR (i.e. http://localhost: 
8080/axis2/services/Service?Operation)
- Try to define a simple echo operation and call it in order to  
understand what's wrong.


Michele

On 5 Mar 2008, at 16:04, Capilla Castillo, Esther wrote:

> Ok, I did the change but I get the same message...
> In the services.xml appear:
> 	<operation name="sendAttachment">
> 		<actionMapping>urn:downloadFile</actionMapping>
> 		<messageReceiver  
> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver" />
> 	</operation>
>
> And the client:
>
> 		Options options = new Options();
> 		options.setTo(targetEPR);
> 		options.setAction("urn:downloadFile");
> 		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);
>
> Esther
>
> -----Mensaje original-----
> De: Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk]
> Enviado el: miércoles, 05 de marzo de 2008 16:47
> Para: axis-user@ws.apache.org
> Asunto: Re: The endpoint reference (EPR) for the Operation not found
>
> I think the message you create is wrong. The target operation is
> defined as "sendAttachment" in services.xml, but it's called
> "uploadFile" into your SOAP request.
>
> Michele
>
> On 5 Mar 2008, at 15:30, Capilla Castillo, Esther wrote:
>
>> 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:Michele.Mazzucco@ncl.ac.uk]
>> Enviado el: miércoles, 05 de marzo de 2008 16:18
>> Para: axis-user@ws.apache.org
>> 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:Michele.Mazzucco@ncl.ac.uk]
>>> Enviado el: miércoles, 05 de marzo de 2008 14:33
>>> Para: axis-user@ws.apache.org
>>> 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:Michele.Mazzucco@ncl.ac.uk]
>>>> Enviado el: miércoles, 05 de marzo de 2008 13:45
>>>> Para: axis-user@ws.apache.org
>>>> 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:deepalk@gmail.com]
>>>>> Enviado el: miércoles, 05 de marzo de 2008 13:37
>>>>> Para: axis-user@ws.apache.org
>>>>> 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.V

>>>>>> e
>>>>>> r
>>>>>> 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: axis-user-unsubscribe@ws.apache.org
>>>>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------ 
>>>>> -
>>>>> -
>>>>> -
>>>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------- 
>>>> -
>>>> -
>>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>>
>>>
>>>
>>> -------------------------------------------------------------------- 
>>> -
>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message