How to test Adapter Module
Hi
My Scenario is File - to - File
I have written one adapter module and i have deployed in J2ee Engine as well. In sender communication channel i have given the JNDI name like
<b>"localejbs/<JNDI Name>"</b>.I have tested the my file to file scenario by placing a file in source directory which i have mentioned in Communication channel Source Directory and File Name.But i didnt find any difference in target file.
I have used the following blog
<b>
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6cb18c04805</b>
1.How to test the adapter module.
2.How to configure my communication channel.
Please help me its very urgent
Best Regards
Ravi Shankar B
Hi,
check JNDI service in visual admin to see if
your service has the same name there
>>>>1.How to test the adapter module.
by using it in a channel
>>>>2.How to configure my communication channel.
add you adapter module to the adapter module tab
in communication channel
Regards,
michal
Similar Messages
-
How to Test Adapter Module in NWDS
Hi Friends,
I have written an adapter module. Before deploying on adapter engine, I want to do test in NWDS. Any idea how to do this. Please provide sample java code, if possible.
Thanks,
Sandeep MauryaHi,
Since runtime and module processor framework is not available on your local machine that's why adapter module test not possible using NWDS on local machine.
Another possibility is to install PCK on some local machine for testing purpose.
You must deploy (either on PCK or AE) it and test.
Regards,
Gourav -
How to debug adapter module in PI 7.1
Hello all,
I am trying to figure out how to debug adapter module in PI 7.1.
I guess runtime debugging ( switch AS java in debug mode and attach NWDS to the AS Java to debug as module is being executed) is not possible with adapter module. Please let me know if this is indeed possible and how to enable it.
The only option is to send debug information to log file. So in the module code like:
audit.addAuditLogEntry(key, status, message);
location.debugT(SIGNATURE, message);
I've read that for PI 7.0, you need to add log-configuration.xml to meta-inf. Is this still required for PI 7.1?
My next question is how to read the log in audit log and in location. I've read that the audit log can be read in .../MessagingSystem/monitor/monitor.jsp, under which section of the page I can read the audit log? I can't see any of my log there.
For log in location, I guess I need to go to NWA, can you please share the path (navigation) in NWA to see the location?
Thanks
Jayson> I guess runtime debugging ( switch AS java in debug mode and attach NWDS to the AS Java to debug as module is being executed) is not possible with adapter module. Please let me know if this is indeed possible and how to enable it.
It is possible for adapter modules as well. I know this from our developers
It should work like this:
/people/christian.drumm/blog/2008/09/30/debugging-java-mappings-using-sap-netweaver-developer-studio
> The only option is to send debug information to log file. So in the module code like:
> audit.addAuditLogEntry(key, status, message);
> location.debugT(SIGNATURE, message);
> My next question is how to read the log in audit log and in location. I've read that the audit log can be read in .../MessagingSystem/monitor/monitor.jsp, under which section of the page I can read the audit log?
In the RWB under Message Monitoring for Adapter, or try the shortcut
http://server:port/mdt -
hi experts,
May i know how to create adapter modules..
Thanks & Regards
gunaHi,
Start with basics:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7bf6e190-0201-0010-83b7-cc557eb76abe
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a
Some good Examples to start with :
Rename Attachment Adapter Module
Copy a file with same filename using XI
Customized Adapter Module
Regards -
How to write adapter module to convert the xml to pdf file
Hi all,
how to write adapter module to convert the xml to pdf file.
Please any body assist step by step procedure.PI 7.1 XML to PDF transformation
have you seen below links:
http://forums.sdn.sap.com/thread.jspa?threadID=1212478
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/14363 -
How to deploy adapter module ------- in XI
hi forum,
i have developed a ejb adapter module from a blog,
i developed it in the NWDS,
i now want to deploy it, how should i deploy it,
i dont know anything about Visual Admin or SDM, pls help me out
Message was edited by:
sudeep dharHi,
Refer to these links may be useful to you
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3a83c242-0801-0010-dc95-d496cf6dba9d
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c95e290-0201-0010-d492-c4333f0d83b7
Web Service Wizards crash with java.lang.StackOverflowError
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1b651014-0301-0010-c39a-98d7cd057847
/people/riyaz.sayyad/blog/2006/05/10/consuming-xi-web-services-using-web-dynpro-150-ui-design-part-iii
Regards,
Kumar -
How to incorporate adapter module while writing the adapter metadata for it
Hi all,
We are developing a adapter and the custom adapter module has been prepared.Now we need to write our own adapter metadata. So I need to know in detail how to incorporate our custom adapter module into our adapter metadata.
Paulhi
check the below links
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/daa51a96-0b01-0010-738f-a0ecfd06104e
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7086f109-aaa7-2a10-0cb5-f69bd2affd2b
https://www.sdn.sap.com/irj/sdn/teched2004
note:reward points if solution found helpfull.....
regards
chandrakanth.k -
How possible in Adapter module
Hi
In my adapter module, i want to do the following. can any one help me out how can i achieve..
In my sync scenario, module at receiver side, want to know
Time of request sent to receiver ,
time of response get back from receiver to PI
what was the response
was it sucessfully sent to sender from PI.
Please provide with exact class and method name from API or sample code..
Thanks
PrabhakarHi Venkat,
I think ur looking for traces as per your request and this is not recommended option in production system. But the 2 options of request time and response time can be updated in traces (Moni) using date functions (standard functions), Container and MappingTrace objects. May I know ur requirement exactly. This solution in adapter module is static. Where you want to use these details and in what form.
Thanks
Ramesh -
Testing Adapter Module in NWDS
hi,
I have got a code for adapter module,I wanted to test it standalone using NWDS.
class XML2EdifactBean
public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData)
throws ModuleException { //Some Code... }
I am getting some error while executing the adapter module ,so I want to call the function using main method.Can you provide me with a sample code for this.
regards,
Ujjwal Kumar.This would be too complex to do all necessary steps for a stand alone test.
I recommend to split the generic adapter module stuff and the part, you really want to do something.
For the adapter modul, which we used on Teched session:
GetHostName.java code for 3.0/7.0
I did following: I introduced a helper class and passed the DOM code
public class HelperClass {
String hostElementName = "host";
String hostName = "host";
public static void main(String[] args) {
try {
InputStream in = new FileInputStream(new File("in.xml"));
OutputStream out = new FileOutputStream(new File("out.xml"));
new HelperClass().execute(in, out);
} catch (Exception e) {
e.printStackTrace();
public void setHostElementName(String hostElementName){
this.hostElementName = hostElementName;
public void setHostName(String hostName){
this.hostName = hostName;
public void execute(InputStream in, OutputStream out){
try {
DocumentBuilderFactory factory;
factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(in);
Element rootNode = document.getDocumentElement();
if(rootNode != null) {
Element childElement =
document.createElement(hostElementName);
childElement.appendChild(document.createTextNode(hostName));
rootNode.appendChild(childElement);
// Transforming the DOM object to Stream object.
TransformerFactory tfactory = TransformerFactory.newInstance();
Transformer transformer = tfactory.newTransformer();
Source src = new DOMSource(document);
Result dest = new StreamResult(out);
transformer.transform(src,dest);
} catch(Exception e){}
in the bean class, I used the helper class:
XMLPayload xmlpayload = msg.getDocument();
InputStream in = xmlpayload.getInputStream();
ByteArrayOutputStream out = new ByteArrayOutputStream();
HelperClass hc = new HelperClass();
hc.setHostElementName(hostElementName);
hc.setHostName(hostName);
hc.execute(in,out);
byte[] docContent = out.toByteArray();
if(docContent != null) {
xmlpayload.setContent(docContent);
inputModuleData.setPrincipalData(msg);
Now I can test the parser in the NWDI
Regards
Stefan -
How to deploy adapter module in PI 7.0
Hi,
Can ne one guide me how to deploy adapter mdule in PI 7.0?
The XI consultant has given me the EAR file..how do i deploy it?..how do i check it?Hi Teja,
This links should help to you
http://help.sap.com/saphelp_nw2004s/helpdata/en/f0/122abf61d4974eaea6b5d9c314cff1/frameset.htm
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414800)ID1509029850DB01452196011567672996End?blog=/pub/wlg/2493
http://help.sap.com/saphelp_nw04/helpdata/en/b5/3f533e5ff4d064e10000000a114084/frameset.htm
Regards
Ramesh -
Hi
I went through a blog on this and seen that we need some jar files inorder to develop this. these are files they have mentioned in the blog
aii_af_lib.sda,
aii_af_svc.sda and
aii_af_cpa_svc.sda.
Where are these files placed in the XI server. can naybody please tell me the exact location.
thanksHi Sudhakar,
These files to be deployed in Netweaver developer studio .
Plz do refer the following blog it explains clearly...
Adapter Module Development & Module Configuration
Also refer...
ADAPTER MODULES
how to create modules on j2ee engine
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81
Alerts from adapter modules - the JRA way!!
Alerts from adapter modules - the JRA way!!
Alerts from adapter modules - the JRA way!!
Alerts from adapter modules - the JRA way!!
RFC calls from Adapter modules...the Web Service Way!
RFC calls from Adapter modules...the Web Service Way!
TechEd 2007: EPI351 - Developing User Enhancement Modules in the Adapter Engine
TechEd 2007: EPI351 - Developing User Enhancement Modules in the Adapter Engine
TechEd 2006: EPI350 - Developing and Testing Adapter Modules in SAP NetWeaver Exchange Infrastructure
TechEd 2006: EPI350 - Developing and Testing Adapter Modules in SAP NetWeaver Exchange Infrastructure
Migrate from Java embedding in Oracle BPEL to Adapter modules in SAP XI
Migrate from Java embedding in Oracle BPEL to Adapter modules in SAP XI
XI Mapping Module for AFW
The specified item was not found.
XI: Dynamic configuration in adapter modules - one step further
The specified item was not found.
Adapter Module Development & Module Configuration
Adapter Module Development & Module Configuration
Dynamic configuration in adapter modules
Dynamic configuration in adapter modules
Rename Attachment Adapter Module
Rename Attachment Adapter Module
Regards,
Vinod. -
Adapter Modules in PI 7.1 EAR/SDA?
Hi guys,
is it possible to deploy adapter modules in the 7.1 version in the same form as before? I mean EARs?
Thanks,
OlianHi,
the below link already ravi provided if you read the PDF you will understand clearly how to deploy Adapter Modules.
http://www.sdn.sap.com/irj/scn/index;jsessionid=(J2EE3417300)ID1319576450DB10340902879478557111End?rid=/library/uuid/00838345-708c-2a10-1199-9514c0b0a91c&overridelayout=true
THere atre two ways we can delploy Adapter Module,Directly from NWDS,if you have acces to J2EE engine,this is the easy way,because you already have EAR files.
Second one is deploying in SDM ,i don think so you need to convert in to.sdm files, we can directly deploy EAR files in SDM.
Regards,
Raj -
Standard adapter modules in sap xi
Hi,
Can any one provide me the standard adpter modules in XI and the procedure to use them in the communication channel.
Thanks,
Rajeev.Hi,
Go with these blogs.
SAP NetWeaver Process Integration 7.1: Available Adapters and Adapter Modules
TechEd 2006: EPI350 - Developing and Testing Adapter Modules in SAP NetWeaver Exchange Infrastructure
these will help u out -
How to test RV_DOCUMENT_FLOW?
Hi,
Do you know how to test dialog module RV_DOCUMENT_FLOW?
ThanksHello,
for example :
DATA ls_vbco6 TYPE vbco6.
ls_vbco6-vbeln = '0000004711'.
ls_vbco6-posnr = '000010'.
CALL DIALOG 'RV_DOCUMENT_FLOW'
EXPORTING
vbco6 FROM ls_vbco6.
Stand-alone testing from the SE80 - no idea.
Best regards,
Ernst -
How to read Sender Interface name in Adapter module
I have a need to read the Sender Interface name in an adapter module that will be attached to a Sender SOAP channel. Any ideas on how this can be done.
I am familiar with the following code construct from the docs
Hashtable mp = (Hashtable)inputModuleData.getSupplementalData("module.parameters");
fileName = (String) mp.get("FileName");
What is the key name (in the hashtable) for Sender Interface name ? The docs seem to be silent on this
I dug around some and found references to "mp.context" and "message.interface". I guess I could just test this out but I dont have deploy access and I dont want to keep asking the BASIS group to deploy the module while I play around with different combinations...
So would the following work
Hashtable mp = (Hashtable)inputModuleData.getSupplementalData("mp.context");
interfaceName = (String) mp.get("message.interface");
Thank you
AnilHi Anil,
I am not sure of how to get the Sender interface name. I even tried the code that you suggested above. It gave me a null pointer exception.
I think instead of Sender Interface name you can decide upon the Sender System/Service.
To get the Sender System Name:
Object obj = null;
Message msg = null;
obj = ModuleData.getPrincipalData();
msg = (Message) obj;
String SenderSystem = msg.getFromService();
Here based on the sender system you can do your partner specific processing in Proxy. Instead of Sender Interface Name.
Hope this helps
Regards,
Aravind
Maybe you are looking for
-
Adding a new table in smart form
HI, I want to add a new table to a smartform. like say i want to print LIKP-ROUTE in the main window of the smart form, (islikp like likp) I have added this table in the table tab of form interface, then in the mainwindow, i have added a new loop and
-
please can someone help. I think I have a virus, infact I'm pretty sure I do. Here goes..... I installed protectmac antivirus software on a 30 day trial (recommended by apple support). While checking my email I had the usual 1000's of spam and one of
-
Headphone volume is always too loud
My new laptop is unacceptably loud when using headphones in the combo jack. The sound is bearable at exactly 1 volume, which obviously leaves no room for adjustment. This was not a problem with my previous laptop, an old HP Pavilion dv6t. That comput
-
MY ADOBE KEEPS ON FREEZING AND I AM UNABLE TO DELETE TO RE PURCHASE AN UPDATED VERSION - WHEN I TRY TO DELETE THIS IS WHAT KEEPS APPEARING ADOBE READER X (10.1.3) This patch package could not be opened. Verify that the patch package exists and that y
-
Revision: 15988 Revision: 15988 Author: [email protected] Date: 2010-05-10 09:32:06 -0700 (Mon, 10 May 2010) Log Message: asdocs build fix (missing closing </p> added x 3) Modified Paths: osmf/trunk/framework/OSMF/org/osmf/elements/Lightwei