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 Maurya
Hi,
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
Similar Messages
-
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 BHi,
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 -
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 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 code a Module in NWDS and deploy
Hi ,
That is exactly my question ...
how to code a Module in NWDS and deploy
Kindly let me know if there are any step by step available
also I may not always have access to nwds
To the same in a tool like eccilpse.
P.S.
I am an abaper ...have a little working knowlege of Java..so playing around with eccilpse alot...
Kindly help>>also I may not always have access to nwds
>>To the same in a tool like eccilpse.
apart from the links provided by others , if your above statement means that you might have to use Eclipse at times in place of NWDS, then I would suggest you to have a build process independent of Eclipse. NWDS makes use of SAP specific plugins which recognizes your SAP sepcific files like application-j2ee-engine.xml and ejb-j2ee-engine.xml and you see them differently inside NWDS. So to have a better project setup
1. At least create the whole project (EJB / EAR) once in NWDS.
2. Export it and then import inside Eclipse.
3. Make changes and have a build script may be based on ANT to build your project and create EAR out of it.
4. Deploy using SDM. -
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 -
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 -
Developing adapter modules for PI 7.0 using NWDS 7.3
Hello all,
Did someone have already developed adapter modules for PI 7.0 using NWDS 7.3? I can´t find the EJB libraries for Java 1.4.
I'm able to develop mapping programs, but I'm not sure if it is possible to create EJB projects.
Thanks,
MarcosHi Marcos,
I haven't tried developing adapter modules in NWDS 7.3 for PI 7.0 myself, but according to the documentation from SAP it is possible to develop J2EE 1.4 compliant applications i.e. EJB 2.1 components, which is used by SAP PI 7.0.
[http://help.sap.com/saphelp_nw73/helpdata/en/48/fc1e73a0ad2637e10000000a42189d/frameset.htm]
Because of this backwards-compatibility I would expect that the EJB libraries for J2EE 1.4 should be available directly in NWDS 7.3 somewhere.
Best regards,
Jacob -
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 -
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. -
What authorization required to deploy module from NWDS 7.1
Hi Experts,
Need to deploy custom adapter module from NWDS 7.1 to PI server, Please help me to know exact access/authorization role required one developer to publish the module.
I have gone through many blogs and thread but not able to find exact administrator role which help to deploy the custom module on PI server.
Error I am getting in NWDS 7.1, while deploying module:
Could not establish connection to AS Java on [<server detail>]. Authentication did not succeed. Wrong or missing security credentials (password) for principal [PIUSER], or the specified principal has no permissions to perform JNDI related operations.
Regards
Raghav
Edited by: RaghavTiwari on Feb 4, 2012 8:25 AMHi Raghav,
Check this [SAP Help link|http://help.sap.com/saphelp_nw73ehp1/helpdata/en/43/1e1bbc5d9206fde10000000a422035/frameset.htm] for User Roles for Adapter and Module Development.
Regards,
Raghu_Vamsee.
Maybe you are looking for
-
How to recover photos from the recycle bin ?
how to recover phontos from the recycle bin or how to find them on icloud ??
-
How can I get my songs back that have been lost due to my IPod freezing up. I took it to best buy they restored everything said I would be able to just go back and retrieve my songs and not have to pay for them, but so for ITunes is charging again fo
-
No Bluetooth even after PRAM and PMU resets, fully updated Leopard
Subject should explain pretty much everything. I reset the PRAM and PMU to try to get my Bluetooth back (it doesn't even appear in System Profiler). Still nothing. Leopard with all updates. Any suggestions, before I take it in?
-
Don't have access to JOIN key for secured networks
I have a 3GS iPhone and want to use my wireless internet connection at home. When I press my network name, it goes to a screen where I am supposed to type my password, however, the key JOIN is not accessible, so nothing happens. I tried with other se
-
My hardware is saturated and I can't go on my session
Hello, I was downloading google crime when i got a message saying my hardware is saturated and that i had to delete some documents but when i wanted to do it,my Mac froze so I restarted it and went on my session and only the apple wallpaper appeared,