cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Web service

Former Member
0 Kudos

Hi Experts,

I created a webservice using SAP and imported the wsdl into XMLSpy to run the webservice, upon executing the client code I am getting the following error :

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">

<soap-env:Body>

<soap-env:Fault>

<faultcode>soap-env:Client</faultcode>

<faultstring xml:lang="en">Deserialisation failed</faultstring>

<detail>

<n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates">

<MainName>/1BCDWB/WSS0080516040549033932</MainName>

<ProgName>/1BCDWB/WSS0080516040549033932</ProgName>

<Line>27 </Line>

<Valid>X</Valid>

<MatchFault>

<DescriptionText>Element 'HpCourseId' expected</DescriptionText>

<TokenType>E</TokenType>

<TokenName>CustomerNumber</TokenName>

<TokenNameSpace/>

<TokenValue/>

</MatchFault>

<Caller>

<Class>CL_SRG_RFC_PROXY_CONTEXT</Class>

<Method>IF_SXML_PART~DECODE</Method>

<Positions>1 </Positions>

</Caller>

</n0:SimpleTransformationFault>

</detail>

</soap-env:Fault>

</soap-env:Body>

</soap-env:Envelope>

Is there anything I can do about this?

Cheers, all help would be greatly appreciated .

Kelvin

Accepted Solutions (0)

Answers (3)

Answers (3)

sumesh_k2
Participant
0 Kudos

Hi,

You are getting a deserialisation error which may be due to some mandataory parameters in response are not filled back to the webservice.

please check your response from RFC back to webservice.

moorthy
Active Contributor
0 Kudos

Hello,

Can you cross-check the WebService Creation starting from the datatype ..Also check the schema validity of the WSDL created.

I think the problem is with some structures.

Also check out all the node and fields of mapping. Probably some of the fields/nodes are not mapped correctly.

Regards, Moorthy

Former Member
0 Kudos

Hi Krishna,

My viewpoint is same to you.Do you konw which data type is propositional?I am using a RFC function is SAP to implement a web service.These data type all valid in SAP,I have check it.So can you give me more idea?

Regards

Kelvin

moorthy
Active Contributor
0 Kudos

Hi,

Have a quick question, if you are using RFC data types, hope you exposed this as an WebService from SAP backend. And imported wsdl ? is it right ? or you have created/imported the RFC into Repository and generated the service ?

Following docs help to cross check the steps you did : https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40611dd6-e66e-2910-f383-e80fb44f...

To find the details of TCP Gateway or to debug the Webservice call: SAP Note: 856597

/people/stefan.grube/blog/2007/03/29/troubleshooting-soap-http-and-mail-adapter-scenarios-with-tcpgateway

Regards, Moorthy

Former Member
0 Kudos

Hi Kelvin,

The error it will shows, Mapping transformation fault,

check ur data end , is the right data to push it? and take some payload and test the mapping in Repoistery end.

hope u find out the error.

Regards,

Sateesh

Former Member
0 Kudos

Hi Sateesh,

If I input right data to test this web service,the error message will appear.If I don't input any parameters, this error message will appear too.

I don't know whether there is a tool can debug web service like debug program in SAP?