on 06-23-2008 12:58 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi Vijay,
Can you provide some of the code where you are invoking the service.
Regards,
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.