cancel
Showing results for 
Search instead for 
Did you mean: 

Service interface with more than one operation

Former Member
0 Kudos

Hi all,

is it possible to have a service interface with more than one operation?

I have found this blog:

http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414900)ID0209118050DB10459657028039341762End...

But this sentence:

ABAP proxy (inbound/ outbound) cannot be developed out of a Service Interface having Operations with different type of messages included. If an ABAP proxy is to be developed then all the messages included should be of one type i.e. either the included messages should be Message Type, External Message, IDOC or RFC Message. This behavior can be observed when a Service Interface is created and then subjected for a check

regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

Its possible to have service interface with more than one operation..

provided it is not of pattern stateless (XI 3.0 -Compatible)...

in this case proxy generated will have only one method...

if it is of interface pattern (stateless) then methods generated in proxy will be equivalent to no of operations defined..

i think all message types should be of same type(external,idoc,rfc,...)

HTH

Rajesh

Former Member
0 Kudos

Hi,

thanks.

In the proxy interface my two methods are generated.

If I test the proxy and I choose the methods manually everything works fine.

But if I try to call the service via the service registry for example an error occurs.

I can see in the monitoring only the interface name but not the method which should be called.

regards

Former Member
0 Kudos

Hi,

the error in the log is the following:

No implementing class registered for the interface (ABAP interface, request message MI_OSRBG_BC_SOA_EXCEL_SYNC_IN, request message, namespace http://osram-os.com/rbg/bc/soa/excel/xi118)

But I have created the proxy classes and they are activated!!!!!

Any ideas?

regards

former_member200962
Active Contributor
0 Kudos

What are the message types that you have included for the Service Interface on which you have developed the proxy?

I can see in the monitoring only the interface name but not the method which should be called.

Did you see the screenshot that I have inlcuded in the last of the SXMB_MONI....method name is not displayed...only interface name is displayed!

Regards,

Abhishek.

Former Member
0 Kudos

Hi,

I have created data types and then created "normal" message types.

Now the test with an external tool:

XIServer:CO_TXT_OUTBINDING_ERROR:No standard agreement found for , BS_OS_NON_XX, , BS_OS_OSD_XXX, http://<namespace>, MI_OSRBG_BC_SOA_EXCEL_SYNC_OUT

But there is a receiver agreement available with this settings.

regards

Former Member
0 Kudos

Hi,

now the interface is running but I get another error in .NET.

"The header 'Diagnostic' from the namespace 'http://sap.com/xi/XI/Message/30' was not understood by the recipient of this message, causing the message to not be processed. This error typically indicates that the sender of this message has enabled a communication protocol that the receiver cannot process. Please ensure that the configuration of the client's binding is consistent with the service's binding. "

Any ideas?

regards