cancel
Showing results for 
Search instead for 
Did you mean: 

How can a Java prg pass data to a SAP table (TStpo)

Former Member
0 Kudos

Hi All,

I created a webservice using JAVA.

Got WSDL for a SAP Funtional Module(CSAP_MAT_BOM_CREATE) and created Java Classes using (WSDL2Java -t XXX.wsdl ).

While Invoking the service from Java Client program by Passing all the parameters.

Error:Deserialisation failed

Exception in thread "main" AxisFault

faultCode: Client

faultSubcode:

faultString: Deserialisation failed

faultActor:

faultNode:

faultDetail:

SimpleTransformationFault:<

MainName>/1BCDWB/WSS0080429093947734000</MainName><ProgName>/1BCDWB/WSS008042909

3947734000</ProgName><Line>209 </Line><Valid>X</Valid><MatchFault><DescriptionTe

xt>System expected the end of the element 'TStpo'</DescriptionText><TokenType>S<

/TokenType><TokenName>ItemCateg</TokenName><TokenNameSpace/><TokenValue/></Match

Fault><Caller><Class>CL_SRG_RFC_PROXY_CONTEXT</Class><Method>IF_SXML_PART~DECODE

</Method><Positions>1 </Positions></Caller>

Thanx ,

Vijay

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Vijay,

from the exception i understand that your not pasiing any value to ItemCateg which is causing Deserialisation. try passing the value and test.

Venkat

Former Member
0 Kudos

Hi Venkat,

I am passing the value to ItemCateg.. Pls see the portion of XML Sent below..!

<TStpo xsi:type="ns2:StpoApi01" xmlns="" xmlns:ns2="urn:sap-com:document:sap:soap:functions:mc-style">

<ItemCateg xsi:type="xsd:string">L</ItemCateg>

<ItemNo xsi:type="xsd:string" />

<Component xsi:type="xsd:string">PART008</Component>

<CompQty xsi:type="xsd:string">1.0</CompQty>

<CompUnit xsi:type="xsd:string">EA</CompUnit>

<FixedQty xsi:type="xsd:string" />

<ItemText1 xsi:type="xsd:string" />

<ItemText2 xsi:type="xsd:string" />

<Sortstring xsi:type="xsd:string" />

<RelCost xsi:type="xsd:string" />

<RelEngin xsi:type="xsd:string" />

<RelPmaint xsi:type="xsd:string" />

.

.

.

</TStpo>

Thanx,

Vijay

gaurav_modgil
Participant
0 Kudos

Hi Vijay,

Can you provide some of the code where you are invoking the service.

Regards,

Gaurav