cancel
Showing results for 
Search instead for 
Did you mean: 

Call synchronous java client proxy, from within a sync Provider proxy ( JAX-WS )

adam_smith7
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

adam_smith7
Participant

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)

Answers (1)

Answers (1)

Former Member
0 Kudos

thank you very much for answer. It saves me a lot of time.