cancel
Showing results for 
Search instead for 
Did you mean: 

Missing Class library: WSDL2Java

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Bhaskar,

the missing class is part of

webservices_lib.jar

Regards, Victoria

Former Member
0 Kudos

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.

former_member184385
Active Participant
0 Kudos

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

former_member184385
Active Participant
0 Kudos

Bashkar,

another comment as to how to use your ws. The simplest thing to to, in order to call a ws method would be

// create service stub object

MI_OB_Forder stub = new MI_OB_ForderBindingStub();

// call service method(s)

stub.<some-service-method>( ... );

Regards

Gregor

Former Member
0 Kudos

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

Answers (1)

Answers (1)

former_member184385
Active Participant
0 Kudos

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