Skip to Content
avatar image
Former Member

XmlMarshalException on using XI generated Webservice with WebDynpro

Hi,

i have a problem creating a WebDynpro application using a WebService model created by XI.

When executing the service:

public void onActionGO(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionGO(ServerEvent)

try {

wdContext.currentRequest_MI_BESCHAFFUNG_MI_BESCHAFFUNGElement().modelObject().execute();

wdThis.wdFirePlugToMIBeschaffungResultView();

}

catch (Exception e) {

wdComponentAPI.getMessageManager().reportException( e.getLocalizedMessage(), false );

}

//@@end

}

I get the following error message:

Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlMarshalException: XML Serialization Error. Property [DATA] of class [de.gisa.mibeschaffung.model.proxies.types.RFC_READ_TABLE] must exist and can not be null. This is required by schema description.

The classes generated by the WSDL import are prefixed by ComplexType. So could this be the culprit here? Also the generated classes are in the de.gisa.mibeschaffung package not in the de.gisa.mibeschaffung.model.proxies.types package.

I appreciate your input!

regards

Dirk

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 31, 2005 at 12:13 PM

    Hi,

    I think complex types are not accepted so you have to convert the inputs to the webservice and send if you are using any complex types(serialize and send).

    Try it out and let me know the status.

    Regards,

    Sirisha.R.S

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 31, 2005 at 11:47 AM

    Hi,

    search this forum .. for XmlUnMarshal exception.. i think complex object s are not allowed !

    Regards

    Bharathwaj

    Add comment
    10|10000 characters needed characters exceeded