cancel
Showing results for 
Search instead for 
Did you mean: 

"Class must exist and can not be null" error in webservice

Former Member
0 Kudos

Hi

I have exposed a webservice for BAPI_USER_GET_DETAIL and tried to consume it in WebDynpro but I am getting bellow error

Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlMarshalException: XML Serialization Error. Property [Return] of class [com.test_ws_usrgetdtl.usrgetdtl.models.usergetdetails.proxies.types.p1.UserGetDetail] must exist and can not be null. This is required by schema description.

Though I have instantiated the Return node in the custom controllers init method. Can any one help me out in this regards?

Thanks

Ninad

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hi Ninad,

Did you only "instantiated the Return node in the custom controllers init method"? Did you set instance of Return class to UserGetDetail inctanse? Like


Return return = new Return();
UserGetDetail userGetDetail = new UserGetDetail();
userGetDetail.setReturn(return);

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hi Maksim,

I have instantiated and also done proper binding fot those instances.

Thanks

Ninad