on 04-12-2012 8:52 AM
Hi ,
Im trying to call a java client proxy from within the implementation of a provider proxy ( WS ) .
The whole scenario is as follows:
consumer/client >> SOAP adapter >> IntegratedConfiguration >> SOAP XI3 > Inbound/Provider/Reciever syncronous proxy (JAX-WS) >> Outboud/Consumer/Sender proxy >> SOAP XI3 >> SOAP adapter >> mock web service.
I have successfully called the Inbound/Provider/Reciever syncronous proxy (JAX-WS) and gotten a response. Im now trying to call the Outboud/Consumer/Sender proxy from within the implemenation with the following code:
//////////////
String businessParterIdentification = "111111";
DTGetDummyDetailsRequest requestMessage = new DTGetDummyDetailsRequest();
requestMessage.setId(businessParterIdentification);
GetDummyDetailsSyncOut port = service.getPort(GetDummyDetailsSyncOut.class);
DTGetDummyDetailsResponse callResponse = new DTGetDummyDetailsResponse();
callResponse = port.getDummyDetailsSyncOut(requestMessage);
//////////////
As soon as the port.getDummyDetailsSyncOut(requestMessage); is called the following error occurs:
nested exception is: javax.xml.ws.WebServiceException: com.sap.engine.services.webservices.espbase.xi.exceptions.ESPXIException: Technical errors were encountered during proxy call through XI; Hint: Error sending MS message. Exception: Cannot invoke call from within a transactional context.
Any help is appreciated......
I have found some other posts regarding that error which are all marked as answered but without any clear explainantion.
http://scn.sap.com/thread/1568251
http://scn.sap.com/thread/1130797
http://scn.sap.com/thread/1211047
Regards Adam
BTW im working on the new 7.31 Process Orchestration system, although Im quite sure my problem is applicable from 7.1.1 onwards.
So it turns out the I needed to annotate the method in the implementation class of the provider proxy from where I was calling port.getDummyDetailsSyncOut(requestMessage with:
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thank you very much for answer. It saves me a lot of time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.