on 02-09-2006 3:57 PM
Hi Everyone,
I created a standalone proxy for a web service and while compiling i am getting the following error:
<b>The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.engine.services.webservices.jaxrpc.wsdl2java.lpapi.LogicalPortType. Fix the classpath then try rebuilding this project.</b>
MY system:
WAS 640, sp14, NWDS SP11, JdK:1.4.02_08
can you tell me where i can get this class.
Thank you
Bhaskar
Hi Bhaskar,
the missing class is part of
webservices_lib.jar
Regards, Victoria
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Viktoriya, and Gregor,
I want to explain clearly what i doing so that you can figure out where i am doing the mistake:
1. Created a Standalone Proxy project
2. Definied the Client Proxy Definition
3. Following are generated:
<b> SEI'S</b>
<b>I</b> MI_OB_Forder.java
<b>C</b> MI_OB_ForderBindingStub.java
<b>I</b> MI_OB_ForderService.java
<b>C</b> Mi_OB_ForderServiceImpl.java
<b>Logical Port</b>
MI_OB_ForderPort.java
<b>Proxy Classes</b>
.......
I wrote a client in java and the code is
<b>MI_OB_ForderServiceImpl client = new MI_OB_ForderServiceImpl();
MI_OB_Forder port = (MI_OB_Forder)client.getLogicalPort();
.......
port.MI_OB_Forder(....);
</b>
I had added all the classes to the classpath, set a break point at <i>MI_OB_Forder port = (MI_OB_Forder)client.getLogicalPort();</i> and while compiling i am getting the following error:
<b>Warning ! Protocol Implementation [com.sap.engine.services.webservices.jaxrpc.wsdl2java.features.builtin.MessageIdProtocol] could not be loaded (NoClassDefFoundError) !
Error Message is :com/sap/guid/GUIDGeneratorFactory</b>
Can you please tell me where i am doing wrong.
I read the following tutorials to
1. Providing and Consuming Web services
2. Sun's tutorial of creating the Web services.
Thank you
Bhaskar
PS: I do not know whether i can write the above error, if i had assigned the points to you.
Bashkar,
looking at the error message, I suspect, you are still missing the fundamental SAP jars, necessary to use the SAP webservices toolkit.
try the following:
1. put your test classes into the standalone ws proxy project (called MyWsProxy), which should have all the jars already imported and start testing here
2. if 1. works, you could continue, creating a separate testing project (called MyWsProxyTest) to proceeds. Reference in MyWsProxyTest to your proxy project MyWsProxy and add the necessary jars, please.
Btw. As last resort, you could do one bold move to catch all the classes, you would ever need for SAP client programming including sapj2eeclient.jar from /usr/sap/<system name>/JC<system no>/j2ee/j2eeclient at your NeetWeaver host to your project
Regards
Gregor
Hi Gregor Urbanek,
Thank you for your support, When i complied the client with
<b>MI_OB_Forder stub = new MI_OB_ForderBindingStub();
stub.<some-service-method>( ... );</b>
it's terminating. I think my client program is wrong.
I am a student, and trying to learn how to create web services from the help file of SAP(as a part of my studies). But, i am not able to succeeded.
I do not know where i can find the SAP Webservices toolkit. If you do not mind can you send me some example projects clients for Standalone and Deployable proxies to my email id(bhaskar.bysani@gmail.com)
Thank you Very much
Bhaskar
Hi,
my standalone proxy project has the following .classpath file content
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="var" path="JRE_LIB" sourcepath="JRE_SRC"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP-JEE/DCs/sap.com/IAIKSecurity/_comp/gen/default/public/default/lib/java/iaik_jce_export.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP-JEE/DCs/sap.com/IAIKSecurity/_comp/gen/default/public/default/lib/java/iaik_jsse.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP-JEE/DCs/sap.com/IAIKSecurity/_comp/gen/default/public/default/lib/java/iaik_smime.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP-JEE/DCs/sap.com/IAIKSecurity/_comp/gen/default/public/default/lib/java/iaik_ssl.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP-JEE/DCs/sap.com/IAIKSecurity/_comp/gen/default/public/default/lib/java/w3c_http.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP-JEE/DCs/sap.com/activation/_comp/gen/default/public/default/lib/java/activation.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP-JEE/DCs/sap.com/com.sap.exception/_comp/gen/default/public/default/lib/java/exception.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP-JEE/DCs/sap.com/mail/_comp/gen/default/public/default/lib/java/mail.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP-JEE/DCs/sap.com/sapxmltoolkit/_comp/gen/default/public/default/lib/java/sapxmltoolkit.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP_JTECHS/DCs/sap.com/webservices/_comp/gen/default/public/default/lib/java/jaxm-api.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP_JTECHS/DCs/sap.com/webservices/_comp/gen/default/public/default/lib/java/jaxrpc-api.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP_JTECHS/DCs/sap.com/webservices/_comp/gen/default/public/default/lib/java/saaj-api.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP_JTECHS/DCs/sap.com/webservices/_comp/gen/default/public/default/lib/java/sapxmltoolkit.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP_JTECHS/DCs/sap.com/webservices/_comp/gen/default/public/default/lib/java/webservices_api.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP-JEE/DCs/sap.com/webservices_lib/_comp/gen/default/public/default/lib/java/boot.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP-JEE/DCs/sap.com/webservices_lib/_comp/gen/default/public/default/lib/java/iq-lib.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP-JEE/DCs/sap.com/webservices_lib/_comp/gen/default/public/default/lib/java/tc_sec_wssec_lib.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP-JEE/DCs/sap.com/webservices_lib/_comp/gen/default/public/default/lib/java/util.jar"/>
<classpathentry kind="var" path="SAP_SYSTEM_ADD_LIBS/comp/SAP-JEE/DCs/sap.com/webservices_lib/_comp/gen/default/public/default/lib/java/webservices_lib.jar"/>
<classpathentry exported="true" kind="var" path="SAP_LOGGING_LIB_HOME/lib/logging.jar"/>
<classpathentry exported="true" kind="var" path="SAP_LOGGING_LIB_HOME/lib/loggingStandard.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Please check your's against!
Regards
Gregor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.