cancel
Showing results for 
Search instead for 
Did you mean: 

Error: When deploying the DC after adding the web services

Former Member
0 Kudos

Hi Experts,

I was able to add the Webservice sucessfully.

I execute the Webservice using the following code

Request_ServiceHttpGet_getMaterialInfo Catalogue_Req = new Request_ServiceHttpGet_getMaterialInfo(); wdContext.nodeRequest_ServiceHttpGet_getMaterialInfo().bind(Catalogue_Req); wdContext.currentRequest_ServiceHttpGet_getMaterialInfoElement().modelObject().execute(); wdComponentAPI.getMessageManager().reportSuccess("After WS Execution");

I am getting the foloowing error, durring the deployment.

[javac] Compiling 130 source files to /usr/sap/NWI/JC63/j2ee/cluster/server0/temp/CBS/22/.B/12309/t/F8932A28B6B6DA239F372D66126596DE/classes

/usr/sap/NWI/JC63/j2ee/cluster/server0/temp/CBS/22/.B/12309/t/F8932A28B6B6DA239F372D66126596DE/gwd/packages/xxxx/app/wdp/IPublicCC_CatalogueWS.java:666: package javax.xml.soap does not exist

public javax.xml.soap.SOAPElement get_any() {

^

/usr/sap/NWI/JC63/j2ee/cluster/server0/temp/CBS/22/.B/12309/t/F8932A28B6B6DA239F372D66126596DE/gwd/packages/xxxx/app/wdp/IPublicCC_CatalogueWS.java:702: incompatible types

found : javax.xml.soap.SOAPElement

required: java.lang.Object

return gen_modelInstance.get_any();

^

/usr/sap/NWI/JC63/j2ee/cluster/server0/temp/CBS/22/.B/12309/t/F8932A28B6B6DA239F372D66126596DE/gwd/packages/xxxx/app/wdp/IPublicCC_CatalogueWS.java:1016: incompatible types

found : javax.xml.soap.SOAPElement

required: java.lang.Object

return gen_modelInstance.get_any();

^

Note: /usr/sap/NWI/JC63/j2ee/cluster/server0/temp/CBS/22/.B/12309/t/F8932A28B6B6DA239F372D66126596DE/gwd/packages/xxxx/app/CreatePRPOView.java uses or overrides a deprecated API.

Note: Recompile with -deprecation for details.

3 errors

Ant build finished with ERRORS

file:/usr/sap/NWI/JC63/j2ee/cluster/server0/temp/CBS/22/.B/12309/DCs/xxxx/dc/_comp/gen/default/logs/build.xml:168: Compile failed; see the compiler error output for details.

Please help me to solve the same.

I am using NWDI for development.

Thanks & Regards,

Palani

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Palani,

Clear the CBS chache and if you are using old project reimport every thing. after that pls try to set path for Servlet.jar file which you can locate inside the standard sap.com DC which you will get indise the installed NWDS path,like:-

/dtc/0/DCs/SAP.COM/servlet/_comp/gen/default/public/default......

Hope this may help you.

Deepak!!!

Former Member
0 Kudos

Hi Deepak,

I hope you are telling about NWDS. I am working in NWDI.

When I tried to remove all the Links between the webservice and custom controller, the error was not there.

Whether we need to add any JAR file for the execution of webservices.

Thanks & Regards,

Palani

Former Member
0 Kudos

Hi Palani,

Nops i am talking abt NWDI only i have mention clear CBS cache, some time may create problem. As per error related to soap may come under the servlet. jar.

I think you have to mention sharing/service references in the Web dynpro references.

Let me explore more on this.

Deepak!!!

Answers (0)