Skip to Content
0
Jun 05, 2008 at 10:08 PM

Java Webdynpro with WebServices error

22 Views

Hi all,

I need to use a Webservice in my java webdynpro project.

I tested the WS in wsnavigator and all works fine. I notice that one of the fields have type Long that can be null, but when i import that to my webdynpro it becames long.

The problem is when that value comes from the WS with value null.

In the wsnavigator i can get the result, but when i'm executing the application i get this error:

com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service with WSDL URL 'http://«host»?WSDL' with operation 'GetSimpleAvailability' in interface 'WSNewHotelSrvSoap'

...........

com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Caused by: java.rmi.RemoteException: Must not assign null to primitive type 'long' of attribute 'PackageTypeCode' in model class 'Room'; nested exception is:

com.sap.tc.webdynpro.model.webservice.base.exception.BaseModelRuntimeException: Must not assign null to primitive type 'long' of attribute 'PackageTypeCode' in model class 'Room'

How can i make that field with type Long on Web Dynpro?

Thanks,

Luis Cruz