cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice executin error

Former Member
0 Kudos

Hi All,

I have created a DC and there created a webservice but while executing this gives me the bellow exception

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

I have tested the webservice its running fine.

so can anyone help me in this regards

Thnanks

Ninad

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hai,

check whether you are providing input prametres correct or not.

are you proving all the input parameters?

see this :

regards,

naga

Former Member
0 Kudos

Hi

Thanks a lot for your help but still it gives the error I have exposed function module BAPI_USER_GET_DETAIL as webservice where only username is the mandatory and I have set that still it is giving the error.

can you help me in this regards

Thanks

Ninad

Former Member
0 Kudos

HI Ninad,

You may be passing the mndatory prameters correctly but it looks like you forgot to add the modelclass instance to the request object !!!

Refer to the above link only (mentioned by Nagaraju) and check how the are adding the instance to requestObject.

Regards,Anilkumar

Former Member
0 Kudos

Hi Anilkumar,

I have added the instance to request object but one thing I am not getting is the mandatory parameter name is return its a structure and return is the keyword in the java so is that making any difference? I don't know wheter this is a valid point or not.

can you suggest me something on that?

Former Member
0 Kudos

You are right..

The WSDL contains an element called return

which will result in a java class attribute called return.Ideally the import of WSDL should fail !!!

So change the attribute and import it again.

Regards,Anilkumar