on 04-18-2007 5:55 AM
Hello All,
I have connected to MDM using the MDM Java APIs. Now I want to call the same function in a WebDynpro(WD) application. But it fails to connect. Below is my code
In my WD Login page i have entered the following code (i have hardcoded the values passed iin the function)
int resultLogin = catalog.Login("INLD50042949A",2025,"admin","welcome","English [US]");
if (resultLogin != RC.RC_OK)
{
wdComponentAPI.getMessageManager().reportException("Not connected",true);
}
The control is going into the if condition. bcoz resultLogin !=0
But the same parameters work fine if i call this method from a normal Java standalone application (Without using WebDynpro)
Please help
Thanks
Suresh
Hi,
Are you using the same service pack MDM4j in java application classpath and webdynpro application?
Note : You may not be able to connect to MDM if you are not using the same service pack MDM4j file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramu,
Act there are no other versions of that jar in my workspace or class path. But one thing i could figure out was this is happeninig due to version problem. I have tried to put in the versions of all the things im using to write this prog. please have a look and let me know if something is wrong
Netweaver Developer Studio -->Version: 2.0.14 Build id: 200509270219
JDK (Local machine) -->1.4
MDM4J and other jars are taken from the SAP Market place so they are the latest version.
J2EE server to which Im connecting -->
Version: 1.4.2_11-b06
And one more thing is I have copied the MDM4J.jar to the lib folder and in the project properties I have added the same as external jars.
Thanks
Suresh
Hello:
How are you referencing the MDM4J.jar? Remember that webdynpros are server-sided. So one thing could be that it does compile correctly (since compilation is done on your computer, where the MDM4J is) but after deployment it won't find the jar.
is it on the Classpath or something on the Server? One piece of advice would be
1) Create a set of EJB with the business logic inside
2) Generate a webService with those EJB
3) Import the model on webDynpro based on the wsdl generated
You should use the MDM Connector for this, rather than the MDM4J.jar
Greetings
Alejandro
Thanks, it worked
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.