Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

com.sap.engine.services.webservices.jaxrpc.exceptions.XmlMarshalException

Hi

I have created on web service model in webDynpro....

My Model is like this:

Request_Z_BAPI_CUSTOMER_CHANGE_WS_customerChangeFromData

>>>>>|

>>>>>|

>>>>>|------parameters(ComplexType_CustomerChangeFromData)

>>>>>>>>>>>|

>>>>>>>>>>>|

>>>>>>>>>>>|------ComplexType_CustomerChangeFromData

>>>>>>>>>>>>>>>>>>|

>>>>>>>>>>>>>>>>>>|

>>>>>>>>>>>>>>>>>>|------piAddress(ComplexType_Bapikna101)

>>>>>>>>>>>>>>>>>>>>>>>>|

>>>>>>>>>>>>>>>>>>>>>>>>|

>>>>>>>>>>>>>>>>>>>>>>>>|-----ComplexType_Bapikna101

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>|

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>|

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>|---city

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>|---firstname

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>|---postalCode

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>|---......

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>|---...n

>>>>>>>>>>>>>>>>>|

>>>>>>>>>>>>>>>>>|

>>>>>>>>>>>>>>>>>|------customerNumber

>>>>>>>>>>>>>>>>>|------DistrChan

>>>>>>>>>>>>>>>>>|------Division

>>>>>>>>>>>>>>>>>|-----SalesOrg

I have tested that webservice and it is working fine....

Using this webservice i have created one webDynpro application....

But when i am runnig this application i am getting the following error

<b>com.sap.engine.services.webservices.jaxrpc.exceptions.XmlMarshalException: XML Serialization Error. Property [CustomerNo] of class [com.sap.changeaddress.model.proxies.types.p1.CustomerChangeFromData] must exist and can not be null. This is required by schema description</b>

in CustomController i have written the following code

<i><b>Request_Z_BAPI_CUSTOMER_CHANGE_WS_customerChangeFromData customer = new Request_Z_BAPI_CUSTOMER_CHANGE_WS_customerChangeFromData();

ComplexType_CustomerChangeFromData dataStructure = new ComplexType_CustomerChangeFromData();

customer.setParameters(dataStructure);

wdContext.nodeRequest_Z_Bapi_Customer_Change().bind(customer);</b></i>

please help me how to solve this problem

Best Regards

Ravi Shankar B

Former Member
Not what you were looking for? View more on this topic or Ask a question