cancel
Showing results for 
Search instead for 
Did you mean: 

Sap Sample Adapter testing in PCK

Former Member
0 Kudos

I configured sample adapter as sender and receiver, and configured sender agreement

and receiver agreement according to (http://help.sap.com/saphelp_nw04/helpdata/en/f7/0c2441509fa831e10000000a1550b0/frameset.htm),

but i found in audit log that the system did not find receiver agreement, detail see below:

2005-11-29 16:39:44 Success Application attempting to send an XI message asynchronously

using connection AFW.

2005-11-29 16:39:44 Error Returning to application. Exception: No XI receiver agreement configured

in PCK for XI message header:

SenderParty=SampleParty_A; ReceiverParty=SampleParty_A; SenderService=SampleService_A; ReceiverService=SampleService_A; Interface=IF_XML; InterfaceNamespace=http://IF

Who can help me?

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

Did you change the settings of the service <i>SAP XI Adapter XI</i> with the <i>Visual Administrator</i> like mentioned in the documentation on the same page?

If not, one channel (sender or receiver) have to use the message protocol XI and point to an XI system. This is what the error messages means.

Regards

Stefan

Former Member
0 Kudos

I updated my pck to SP14, the testing for adapter in pck is ok, thank you very much:)

Former Member
0 Kudos

What SP was your baseline and did you have to take any special steps for the upgrade to succeed? I've had trouble getting from SP9 -> SP12 and currently can't get the sample to work.

Former Member
0 Kudos

I apply the Support Package from SP9->SP14. the following is my procedure.

PCK Patch Procedure

1. Create a directory .SCA

7. Change the property sap.com/com.sap.xi.pck*pck in visual admin (Sap note 746328)

· Logon to the visual admin using j2ee administrator account

· Click Cluster tab

· Click the Security Provider

· Click the toolbar button to change the status to modify state, for the initial state, you cannot change it

· Assign user or group roles to particular user or group in the Security Roles Tab.

o The role of administer from the component sap.com/com.sap.xi.pck*aii_ib_sbeans.jar

o The role of xi_af_receive and the role of xi_af_monitor from the component sap.com/com.sap.aii.af.ms.app*MessagingSystem

o The role of display, modify, payload from the component sap.com/com.sap.xi.mdt*mdt

o The role of xi_af_adapter_monitor from the component sap.com/com.sap.aii.af.app*AdapterFramewor

o The role of support from the component sap.com/com.sap.xi.pck*pck

Message was edited by: Spring Tang

I changed the 7th step for enabling to modify the role

Message was edited by: Spring Tang

Former Member
0 Kudos

Hi

I followed your procedure, but apparently the PCK kit dont work after the update.

I can log on the PCK Client, but I get a java.io.InvalidClassException: com.sap.aii.af.service.cpa.CPAObjectType, local class incompatible, stream class desc serialVersionUID=43324334243343234, local class serialVersionUID=60319877833433

whenever I do an operation that hits the server.

I tried to re-deploy the

SAPXIPCK<SP>_<PL>.SCA, and clean the javaws cache directory. but the error remains.

Regards

Former Member
0 Kudos

I ran into the exact same error. Be sure to also install the required XI AF components as listed in Spring's previous emails.

Be certain that you've already set all of the Security Roles in the Visual Administrator in case you run into my problem whereby the admin account can no longer add users to security roles. See my posting under Web AS General which has no answer yet.

Former Member
0 Kudos

I'm sure I installed the XI AF components like described.

I've done and re-done it. Same problem. How did you get rid of the problem?

Former Member
0 Kudos

Martin,

Unfortunately I am an inexperienced SAP user but I went through several installs with SR1 and related patches (SP12 & SP14) so I can only tell you what has worked for me.

1)Install SR1 (SP9) software: Java J2EE Web AS & PCK. I made sure that there were no PCK components defined at this point.

2)Fix security roles according to note 746328.

3)Apply SP14 patches using the 7 components:

a)SAPINST

b)J2EE OS Independent

c)J2EE OS Dependent

d)Database component

e)XI AF

f)XI AFC

g)PCK

I'm using Java 1.4.2_07 for all of these components based on what an SAP consultant advised as I had problems with 1.4.2_08 and 1.5.

No other special steps other than hoping it will work!

Regards,

Paul

p.s. even with this I still have an issue since I get the loopback example to work.

Former Member
0 Kudos

1. for your loopback scenario, did you test the url

http://host:port/MessagingSystem/receive/AFW/XI using the account and passowrd you specified in the SAP XI Adapter XI in visual admin?

2. maybe you need to change the namespace in sap xi adapter xi, for sap sample adpater, its default namespace is http://xi/XI/Sample, but the default in sap xi adpater xi is http://xi/XI/System.

Message was edited by: Spring Tang

Former Member
0 Kudos

> 2. maybe you need to change the namespace in sap xi

> adapter xi, for sap sample adpater, its default

> namespace is http://xi/XI/Sample, but the default in

> sap xi adpater xi is http://xi/XI/System.

Hi,

I have problems setting up the sample loopback scenario as described in the SAP library (http://help.sap.com/saphelp_nw04/helpdata/en/f7/0c2441509fa831e10000000a1550b0/frameset.htm) with SP14.

Doing some research, I found this posting and an another one, there it is written to change the Namespace in the visual admin -> XI Adapter service.

Then I do this, the XI adapter is not displayed anymore as "started and running" in the pck adapter monitoring.

Any hints?

Prinz

Former Member
0 Kudos

Hi Stefan,

I am trying to install PCk on one of the sand box, as per my installation guide it is asking to have JRE and Prepare the SAP Web AS J2EE system for SAP PCK

i would really appreciate if you can drop of any links that might have been usefull during installing this PCK..

If there is any personal screen shots taken for your reference..any sort of help is appreciated..

Former Member
0 Kudos

Martin,

I am not experienced in SAP, worked with lot of integration tools and trying to install PCK on the sand box. It would of great if you can suggest step by step process or any notes which you had for your refernce.... ppt is truely appreciated.

any links you can suggest are truely would be of great help...

p.s

sprattipati@gmail.com

Answers (2)

Answers (2)

Former Member
0 Kudos

Testing sap adapter on PCK

1. Prerequisite:

My current PCK is SP14

2. Configure the property in service SAP XI Adapter XI in visual administrator

Reference document: Partner Connectivity kit ->Adapter and Module Development ->Example Adapter and Example Module -> Configuration Objects for Adapter

Test in the browser the url specified in xiadapter.isconfig.url using the username in xiadapter.isconfig.username and password in xiadapter.isconfig.password

The property xiadapter.adapterTypeNamespace keeps default value http://sap.com/xi/XI/System

3. Configure the file adapter inherent in PCK as sender and receiver to make sure the testing environment is ok

For configuring the file adapter, find the help doc in Partner Connectivity kit->Adapters->File/FTP Adapters to configure the channel:

Find help doc in Partner Connectivity kit ->Adapter and Module Development ->Example Adapter and Example Module -> Configuration Objects for Adapter Test to configure agreement

4. Test the file adapter whether it works. If not working, I am not clear too.

Check adapter channels whether it configured right: http://host:port/mdt/amtServlet

Check adapter agreement whether it configure right: http://172.31.235.100:50200/MessagingSystem/monitor/auditlog.jsp.

5. Get the sample adapter from the PCK named sample_ra.sda

6. Change the property xiadapter.adapterTypeNamespace to value http://sap.com/xi/XI/Sample, due to the sample adapter using this namespace.

7. Deploy the sample_ra.sda using sdm tool

8. Upload the metadata named SampleRA.xml located in sample_ra.sda to the server: http://host:port/CPACache/schemaupload.jsp. Specify the adapter type to JCA and adapter namespace to http://sap.com/xi/XI/Sample complicant to the info denoted in RA.xml in sample_ra.sda.

9. Configure the sample adapter in pck like file adapter. In the dropdown list, you select the “JCA|http://sap.com/xi/XI/Sample”. Pck address is http://host:port/pck/start/index.jsp

10. Test the sample adapter, if it is not ok, maybe I missed someone, please tell me.

Check adapter channels whether it configured right: http://host:port/mdt/amtServlet

Check adapter agreement whether it configure right: http://172.31.235.100:50200/MessagingSystem/monitor/auditlog.jsp.

P.S. 1.the namespace in xiadapter.adapterTypeNamespace need be compliant to the adapter namespace being tested. I got it from forum. Just follow itJ

2. For my own scenario, I need to use my own adapter and file adapter to work together, I just change my own adapter’s namespace to http://sap.com/xi/XI/System.

Former Member
0 Kudos

Hi,

In the help file it is specified for example Service_A and Party_A but in the error message Xi looks for SampleService_A and SampleParty_A. Check your receiver agreement to seet that it is configured with the Sample<XX> entries.

rgds Johan