Deserialisation failed

Hello ,
I have a problem with decimal as input parameter for a webservice,
The decimal has 4 digits behind the decimal point. But if you instead give more than 4 (e.g. 5) digits as input, then you will get the following exception:
(The test was carried out using Web services navigator)
My question is, if SAP is not able to round down such a decimal to the predefined format automatically?
- <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/WSS0071009153138917323</MainName>
<ProgName>/1BCDWB/WSS0071009153138917323</ProgName>
<Line>10</Line>
<Valid>X</Valid>
- <DeserialisationFault>
<DescriptionText>Im ST-Program /1BCDWB/WSS0071009153138917323 ist bei der Deserialisierung ein Fehler aufgetreten.</DescriptionText>
<DescriptionDetailText>Beim Konvertieren von 0.76000000 trat ein Verlust von Nachkommastellen auf.</DescriptionDetailText>
<TreePosition />
<ClassName>CX_SY_CONVERSION_LOST_DECIMALS</ClassName>
</DeserialisationFault>
- <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>
Thanks in advances
Yy

hi Yy,
I experence a similar problem.
I found an OSS note 830340 that seems to describe exactly the situation. But it is issued for BASIS 640, whereas our basis is version 700.
the problem seems to be in the transformation generated automatically from web service interface (or the ST engine interpreting it).
I have manually modified the Simple Transformation the way that I could get through the SOAP message. The problem is that I am not sure if I can transport such generated simple transformation to Q / P, as originally it is assigned to $TMP package. Another problem is that by modifying the Simple Transformation I made it incompatible with some SOAP clients.
My transformation
<tt:deserialize>
<n0:ZEosGetshoppingcartstatus tt:extensible="deep-dynamic">
<n0:Shoppingcardid>
<tt:ref name="SHOPPINGCARDID">
<tt:value/>
</tt:ref>
</n0:Shoppingcardid>
</n0:ZEosGetshoppingcartstatus>
</tt:deserialize>
the original was
<tt:deserialize>
<n0:ZEosGetshoppingcartstatus tt:extensible="deep-dynamic">
<Shoppingcardid>
<tt:ref name="SHOPPINGCARDID">
<tt:value/>
</tt:ref>
</Shoppingcardid>
</n0:ZEosGetshoppingcartstatus>
</tt:deserialize>
I'm looking forward to any feedback, should you managed to get more info/ solution for this case.
Best regards,
KK

Similar Messages

  • Error "Deserialisation failed" when trying to use BAPI via a web service

    I created a web service in BW with the help from the wizard WS_WZD_START. The web service contains
    (among others) the RFC BAPI_ODSO_READ_DATA_UC.
    The web service runs OK & can be used from the SAP Web Services Navigator.
    Now when i try to use the web service from Delphi i get
    an error: "Deserialisation failed" (SimpleTransformationFault) "ODSOBJECT erwartet".
    The ODSOBJECT parameter is there to be sure.
    I saw the same error before in this forum but found no real solution there. I am using BW 6.40 & SP 12.
    XML sent:
    <?xml version="1.0" encoding="UTF-8" ?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Header>
    <sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap/features/session/">
    <enableSession>true</enableSession></sapsess:Session></SOAP-ENV:Header>
    <SOAP-ENV:Body><ns1:BAPI_ODSO_READ_DATA_UC xmlns:ns1='urn:sap-com:document:sap:rfc:functions'>
    <DATALAYOUT></DATALAYOUT><INFOOBJECTLIST><item>
    <INFOOBJECT>/CIVGM/NUM</INFOOBJECT></item></INFOOBJECTLIST>
    <MAXROWS>2</MAXROWS><ODSOBJECT>/CIVGM/BPLO001</ODSOBJECT><ORDERBY></ORDERBY>
    <RESULTDATA></RESULTDATA><SELECTIONCRITERIA></SELECTIONCRITERIA><UNICODE>N</UNICODE>
    </ns1:BAPI_ODSO_READ_DATA_UC></SOAP-ENV:Body></SOAP-ENV:Envelope>
    Answer:
    <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/WSS0050825153239449000</MainName>
    <ProgName>/1BCDWB/WSS0050825153239449000</ProgName>
    <Line>73 </Line>
    <Valid>X</Valid>
    <MatchFault>
    <DescriptionText>Element 'ODSOBJECT' erwartet</DescriptionText>
    <TokenType>S</TokenType>
    <TokenName>CODEPAGE</TokenName>
    <TokenNameSpace>urn:sap-com:document:sap:rfc:functions</TokenNameSpace>
    <TokenValue></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>
    The same error occurs when I take the exact XML that was sent from Web Services Navigator (the XML that worked) and send that from Delphi.
    What could be wrong?

    Hi Simon,
       Other thing you can do is compare the HTTP requests (including header) from both Delphi and XMLSPY. I suspect if the SOAP message is same in both case the difference might be in the header. But one thing is certain, WAS can not respond differently for same request, don't you think so ?
    Cheers,
    Sanjeev

  • Bad Archive return org.apache.axis2.AxisFault: Deserialisation failed

    We tried to generate stub using Axis2-1.5 tool from SAP WSDL file. We developed the Java client to consume the Web Services with Stub. When we tried to connect and send the required data received the following error.
    Bad Archive return org.apache.axis2.AxisFault: Deserialisation failed
    org.apache.axis2.AxisFault: Deserialisation failed
          at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:517)
          at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
          at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
          at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
          at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
          at mc_style.functions.soap.sap.document.sap_com.Z_BAPI_PARKServiceStub.zBapiParkDocument(Z_BAPI_PARKServiceStub.java:181)
          at com.newgen.wns.util.TestArchiveClient.main(TestArchiveClient.java:275)
    Could you please help us in the same. Client Code and WSDL for Web Service created by our SAP team is attached for your reference.

    Try posting the full stacktrace that you are getting and the relevant code.

  • Web Service error deserialisation failed.

    Hi Guru's,
    I have set up a Web Service, generated via a Z-Bapi. When posting to the webservice I am getting an error message saying:
    deserialisation failed
    So i did a search and found 2 SAP notes:
    - SAP Note 892944 Deserialisation failed
    - SAP Note 830340 SOAP request - Deserialisation failed
    Both notes I checked, I renegerated the webservice and checked the package. The package is even a higher version, so must be ok.
    This is the WSDL generated from the Z-Bapi; http://www.koopmann.nu/test/ZBAPI_GET_MAT_DESC_2.wsdl
    This link contains the actual soap message used during posting: http://www.koopmann.nu/test/soap_msg_example.xml
    Does anyone have another idea on this? maybe the soap message is not correct?
    Best regards,
    Guido Koopmann

    Another strange thing is that when I post this:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:rfc:functions">
       <soapenv:Header/>
       <soapenv:Body>
         </soapenv:Body>
    </soapenv:Envelope>
    Basicly just the SOAP enveloppe, I get an HTTP 200 Ok back.

  • WSDL Deserialisation failed

    i face this problem in web service bapi... so can anyone help me???
    HTTP/1.1 500 Internal Server Error
    Set-Cookie: <value is hidden>
    content-type: text/xml; charset=utf-8
    content-length: 803
    sap-srt_id: 20080610/144609/v1.00_final_6.40/DD36B8E7DE44B5F19BA900145E6770F3
    server: SAP Web Application Server (1.0;700)
    <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/WSS0080610064309718000</MainName><ProgName>/1BCDWB/WSS0080610064309718000</ProgName><Line>128 </Line><Valid>X</Valid><ReferenceFault><DescriptionText>Error accessing the ref. node 'EMPLOYEENUMBER'</DescriptionText><RefName>EMPLOYEENUMBER</RefName></ReferenceFault><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>

    Hi Koh,
    When i get this error, i refresh my web service throught transaction SE80, i active again the service, then in transaction WSCONFIG, i delete the service and i create the service again.
    Best regards,
    Alejandro López

  • Deserialisation failed ERROR

    Hi All,
    I have a custom BAPI developed within the ECC 6.0 system which is then exposed as a web service. I have accessed this wsdl file from WSADMIN tcode and imported that into my WD Model. Now when I execute the WD Component I get a deserialisation failed error after setting all the input fields.
    Can any one help me to overcome this error ?
    Thanks
    Rg/Venkat.

    Hi Sergei,
    All are of type String.
    But i observed one thing here.
    All Date fields are converted into of type string after i imported the wsdl as a web service model.
    When i set the value to date input field, i call execute method of web service.
    Now i m getting this error ?
    Any clue .. Pls suggest to resolve this error.
    Thanks in advance.
    Reg/Venkat

  • Deserialisation error in web service

    Hi All,
    This is SOAP response I got when I tested Webservice.
    HTTP/1.1 500 Internal Server Error
    Set-Cookie: <value is hidden>
    content-type: text/xml; charset=utf-8
    content-length: 990
    sap-srt_id: 20080602/082242/v1.00_final_6.40/AEFF43B5245BB14C841E53F219B63B73
    server: SAP Web Application Server (1.0;640)
    <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/WSS0080602150152530000</MainName><ProgName>/1BCDWB/WSS0080602150152530000</ProgName>
    <Line>76 </Line>
    <Valid>X</Valid>
    <DeserialisationFault><DescriptionText>An error occurred when deserializing in the simple transformation program /1BCDWB/WSS0080602150152530000</DescriptionText>
    <DescriptionDetailText>02.06.2008  is not a valid date</DescriptionDetailText>
    <TreePosition></TreePosition><ClassName>CX_SY_CONVERSION_NO_DATE_TIME</ClassName></DeserialisationFault><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>
    Please help me in this regard.
    Thanks & Regards
    Santhosh
    Edited by: Santosh Subbanna on Jun 2, 2008 5:29 PM

    Hi Johan,
    it seems when you clicking upon the link - it is sending a wrong set of parameters to underlying Web Service method. What I mean is - suppose the web service method is expecting 3 parameters - but the link click is actually effecting into sending less than that number. Please check what & how many parameter values are being sent to the web service.
    Regards,
    Shubho

  • Web Service - Serialization failed

    Hello everybody
    I have a problem of Serialization.
    I have developed a web service with SE80.
    I have executed  WSDL file of web service developed with XMLSpy.
    This is the log of 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">Serialisation failed</faultstring>
                   <detail>
                        <n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates">
                             <MainName>/1BCDWB/WSS0070126110220757577</MainName>
                             <ProgName>/1BCDWB/WSS0070126110220757577</ProgName>
                             <Line>8 </Line>
                             <Valid>X</Valid>
                             <SerialisationFault>
                                  <DescriptionText>An error occurred during serialization in the simple transformation program /1BCDWB/WSS0070126110220757577</DescriptionText>
                                  <DescriptionDetailText/>
                                  <AbapPosition/>
                                  <ClassName>CX_ST_REF_ACCESS</ClassName>
                             </SerialisationFault>
                             <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>
    SOME HELPS ????
    Thanks,
            Antonio

    Hi,
    Which SP do you have on NW640? I see Note 830340 - SOAP request - Deserialisation failed. It's about Deserialisation, but the output is simular.
    It says: Summary
    Symptom
    The call of an ABAP Web service fails. The system returns a SOAP Fault and the faultstring field has the value, "Deserialisation failed".
    "Solution
    You can correct the problem by importing the relevant Support Package. You cannot implement the correction in a manual way since it also requires changes delivered in Support Package SAPKB64009"
    Eddy
    Pimp up the S(D)N site and earn points. Check this <a href="/people/eddy.declercq/blog/2007/02/01/pimp-up-the-jam log</a> for details. Deadline Feb 15th!

  • Deserialization Failed when testing BAPI exposed as a web service

    Hello, I have created a webservice by expoing BAPI_EQMT_MODIFY. I am planning on using this service to add partner information to an equipment from a .Net UI. When I test the service from the web service home page, I get an error message: "Deserialization Failed". The SOAP response looks as follows:
    HTTP/1.1 500 Internal Server Error
    Set-Cookie: <value is hidden>
    Set-Cookie: <value is hidden>
    content-type: text/xml; charset=utf-8
    content-length: 800
    sap-srt_id: 20090303/162239/v1.00_final_6.40/DE08396C2AC45DF1AC700014C25948BD
    server: SAP Web Application Server (1.0;700)
    <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/WSSA04DD064E9E26505F40</MainName><ProgName>/1BCDWB/WSSA04DD064E9E26505F40</ProgName><Line>34 </Line><Valid>X</Valid><ReferenceFault><DescriptionText>Error accessing the ref. node '_EQUILOCATION'</DescriptionText><RefName>_EQUILOCATION</RefName></ReferenceFault><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>
    Please help resolving the issue. Also, if there is any other way of updating an equipment with partner information, please let me know.
    Thank you very much in advance

    Hi,
    have you checked OSS note 809901? It looks like your problem. If not have a look on service.sap.com there are some other OSS notes related to "Deserialization Failed".
    Cheers

  • Problem while testing a BAPI Web Service

    i face this problem in web service bapi when i am carrying out the test... so can anyone help me???
    HTTP/1.1 500 Internal Server Error
    Set-Cookie: <value is hidden>
    content-type: text/xml; charset=utf-8
    content-length: 803
    sap-srt_id: 20080610/144609/v1.00_final_6.40/DD36B8E7DE44B5F19BA900145E6770F3
    server: SAP Web Application Server (1.0;700)
    <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/WSS0080610064309718000</MainName><ProgName>/1BCDWB/WSS0080610064309718000</ProgName><Line>128 </Line><Valid>X</Valid><ReferenceFault><DescriptionText>Error accessing the ref. node 'EMPLOYEENUMBER'</DescriptionText><RefName>EMPLOYEENUMBER</RefName></ReferenceFault><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>

    There is SAP Note no. 830340 addressing this issue.
    https://websmp106.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=830340&_NLANG=E
    Pl try to apply that SupportPack and let us know the results after that.
    Also pl reward points as appropriate.

  • Problem while testing a BAPI Web Servicei face this problem in web service

    i face this problem in web service bapi when i am carrying out the submit test... so can anyone help me???
    HTTP/1.1 500 Internal Server Error
    Set-Cookie: <value is hidden>
    content-type: text/xml; charset=utf-8
    content-length: 803
    sap-srt_id: 20080610/144609/v1.00_final_6.40/DD36B8E7DE44B5F19BA900145E6770F3
    server: SAP Web Application Server (1.0;700)
    <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/WSS0080610064309718000</MainName><ProgName>/1BCDWB/WSS0080610064309718000</ProgName><Line>128 </Line><Valid>X</Valid><ReferenceFault><DescriptionText>Error accessing the ref. node 'EMPLOYEENUMBER'</DescriptionText><RefName>EMPLOYEENUMBER</RefName></ReferenceFault><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>

    Hi,
    since I did not find that BAPI in my system: what is the exact name?
    Did you test the BAPI directly in ABAP, i.e. function builder SE37, successfully?
    Currently it looks to me as if you did not provide sufficient business data.
    Did you specify the employee number before executing the call?

  • How to make serializable object in webdynpro?

    Hi
    I have written the following code... when i am executing i am getting the following error..........
    <b>javax.xml.rpc.soap.SOAPFaultException: Deserialisation failed</b>
    I think is it becoz of data... how to make it serializable
         Request_Z_BAPI_CUSTOMER_CHANGE_WS_customerChangeFromData customer = new Request_Z_BAPI_CUSTOMER_CHANGE_WS_customerChangeFromData();
         ComplexType_CustomerChangeFromData complexType = new ComplexType_CustomerChangeFromData();
         ComplexType_Bapikna101 bapi = new ComplexType_Bapikna101();
         Bapikna101 bapi1 = new Bapikna101();
         bapi1.setCity("RIYAD");
         bapi1.setCountraiso("SA");
         bapi1.setCountrniso("SA");
         bapi1.setCountry("SA");
         bapi1.setCountryiso("SA");
         bapi1.setFaxNumber("12345678");
         bapi1.setFirstName("First Name");
         bapi1.setInternet("[email protected]");
         bapi1.setDateBirth("12.12.2006");
         bapi1.setLanguIso("EN");
         bapi1.setName("Name");
         bapi1.setName3("Name 3");
         bapi1.setName4("Name 4");
         bapi1.setRegion("GB");
         bapi1.setFormOfAd("Address");
         bapi1.setStreet("Street");
         bapi1.setPostlCode("12345");
         bapi1.setLangu("X");
         bapi1.setTelephone("12345678");
         bapi1.setTelephone2("12345678");
         bapi1.setCurrency("INR");
         bapi1.setCurrencyIso("INR");
         bapi1.setOnlyChangeComaddress("X");
         complexType.setCustomerNo("0000040009");
         complexType.setPiDistrChan("01");
         complexType.setPiDivision("01");
         complexType.setPiSalesorg("QNIN");
         customer._setUser("abap");
        customer._setPassword("quinnox");
         CustomerChangeFromData data = new CustomerChangeFromData();
         data.setPiAddress(bapi1);
         //bapi.setOriginalBean(bapi1);
         complexType.setOriginalBean(data);
         wdComponentAPI.getMessageManager().reportSuccess(" "+complexType.getOriginalBean().getCustomerNo());
         wdComponentAPI.getMessageManager().reportSuccess(" "+complexType.getPiAddress());
         wdContext.nodeRequest_Z_Bapi_Customer_Change().bind(customer);
         complexType.setPiAddress(bapi);
         wdComponentAPI.getMessageManager().reportSuccess(" "+data.getPiAddress().getCity());
         customer.setParameters(complexType);
    help me
    Best Regards
    Ravi Shankar B

    Hi ashuthosh,
      What is the structure of your import and Export parameters of your RFC.
    There are 2 ways to acheive it.
    In the RFC either
    1. Use a Table parameter
    2. Use a Export Structure
    If you use a Table parameter in your RFC then in your webdynpro when you import your adaptive RFC model you would get the Table as a class.
    Assume your RFC/BAPI is called "Bapi_RFC_Insert"
    write the code
    Bapi_RFC_Insert in = new Bapi_RFC_Insert();
    wdContext.nodeBAPI_RFC_Insert_InputElement().bind(in);
    <TableName> <someName> = new <TableName>
    <someName>.setTabValue1();
    <someName>.setTabValue2();
    in.add<>(<someName>);
    This should pass values as a batch.
    You can also do this using Export parameters. But a table is much better.
    Let me know if you require more information.
    regards
    ravi

  • Web Services from Excel

    Hi,
    i want to use Excel (office 2003) with the web services toolkit from Microsoft (2.01) to call Web services from SAP (ABAP 7.0).
    In the 6.40 version of ABAP i was able to call a web service also with some complex data types (internal tables) from excel. Finally the trick was to avoid empty input complex types.
    Now trying this with the new version seems impossible. The system always respond "deserialisation failed". Tracking the problem shows a nice SOAP request in the SAP system, however, somehow the "deserialisation" error occurs here.
    Is there any hint on how to deal with this kind of error ?
    Thanks for any advice.
    Marcus

    Hi,
    first here is the soap request from the SAP trace in SICF: ( a response is not visible due to the deserialisation error)
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    - <SOAP-ENV:Envelope xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema" xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    - <SOAP-ENV:Body>
    - <SOAPSDK4:ZBpcontactCreatefromdata xmlns:SOAPSDK4="urn:sap-com:document:sap:soap:functions:mc-style">
    - <SOAPSDK4:Businesspartner SOAPSDK3:arrayType="SOAPSDK4:VbkaVbpa2kom[3]" SOAPSDK3:offset="[0]" SOAPSDK2:type="SOAPSDK3:Array">
    - <item>
      <Refobjecttype SOAPSDK2:nil="true" />
      <Refobjectkey SOAPSDK2:nil="true" />
      <DocNumber>1</DocNumber>
      <ItmNumber>1</ItmNumber>
      <CountParvw>1</CountParvw>
      <PartnRole>AG</PartnRole>
      <PartnRoleOld>AG</PartnRoleOld>
      <PartnId>0000002000</PartnId>
      <PartnIdOld>0000002000</PartnIdOld>
      <AddrNo SOAPSDK2:nil="true" />
      <PersNo SOAPSDK2:nil="true" />
      <Addrtype SOAPSDK2:nil="true" />
      <AddrOrigin SOAPSDK2:nil="true" />
      <UnloadPt SOAPSDK2:nil="true" />
      <CalendarUpdate SOAPSDK2:nil="true" />
      <AddrLink SOAPSDK2:nil="true" />
      </item>
    - <item>
      <Refobjecttype SOAPSDK2:nil="true" />
      <Refobjectkey SOAPSDK2:nil="true" />
      <DocNumber>1</DocNumber>
      <ItmNumber>1</ItmNumber>
      <CountParvw>1</CountParvw>
      <PartnRole>AP</PartnRole>
      <PartnRoleOld>AP</PartnRoleOld>
      <PartnId>0000000005</PartnId>
      <PartnIdOld>0000000005</PartnIdOld>
      <AddrNo SOAPSDK2:nil="true" />
      <PersNo SOAPSDK2:nil="true" />
      <Addrtype SOAPSDK2:nil="true" />
      <AddrOrigin SOAPSDK2:nil="true" />
      <UnloadPt SOAPSDK2:nil="true" />
      <CalendarUpdate SOAPSDK2:nil="true" />
      <AddrLink SOAPSDK2:nil="true" />
      </item>
    - <item>
      <Refobjecttype SOAPSDK2:nil="true" />
      <Refobjectkey SOAPSDK2:nil="true" />
      <DocNumber>1</DocNumber>
      <ItmNumber>1</ItmNumber>
      <CountParvw>1</CountParvw>
      <PartnRole>ZM</PartnRole>
      <PartnRoleOld>ZM</PartnRoleOld>
      <PartnId>0000001708</PartnId>
      <PartnIdOld>0000001708</PartnIdOld>
      <AddrNo SOAPSDK2:nil="true" />
      <PersNo SOAPSDK2:nil="true" />
      <Addrtype SOAPSDK2:nil="true" />
      <AddrOrigin SOAPSDK2:nil="true" />
      <UnloadPt SOAPSDK2:nil="true" />
      <CalendarUpdate SOAPSDK2:nil="true" />
      <AddrLink SOAPSDK2:nil="true" />
      </item>
      </SOAPSDK4:Businesspartner>
    - <SOAPSDK4:Generaldata SOAPSDK3:arrayType="SOAPSDK4:Bus1037VbkakomCr[1]" SOAPSDK3:offset="[0]" SOAPSDK2:type="SOAPSDK3:Array">
    - <item>
      <Refobjecttype SOAPSDK2:nil="true" />
      <Refobjectkey SOAPSDK2:nil="true" />
      <DocNumber>1</DocNumber>
      <Refdoctype SOAPSDK2:nil="true" />
      <Refreltype SOAPSDK2:nil="true" />
      <ActivityType>0001</ActivityType>
      <Salesorg>1000</Salesorg>
      <DistrChan>10</DistrChan>
      <Division>00</Division>
      <SalesOff>1000</SalesOff>
      <SalesGrp>100</SalesGrp>
      <FromDate>11/7/2006</FromDate>
      <ToDate>11/7/2006</ToDate>
      <FromTime>12:00:00 AM</FromTime>
      <ToTime>12:00:00 AM</ToTime>
      <Reason>003</Reason>
      <Result>005</Result>
      <ResultExplanation>005</ResultExplanation>
      <State>1</State>
      <FollowUpType SOAPSDK2:nil="true" />
      <FollowUpDate>12:00:00 AM</FollowUpDate>
      <ActivityComment>Das ist ein  Test</ActivityComment>
      <Descrpt01 SOAPSDK2:nil="true" />
      <Descrpt02 SOAPSDK2:nil="true" />
      <Descrpt03 SOAPSDK2:nil="true" />
      <Descrpt04 SOAPSDK2:nil="true" />
      <Descrpt05 SOAPSDK2:nil="true" />
      <Descrpt06 SOAPSDK2:nil="true" />
      <Descrpt07 SOAPSDK2:nil="true" />
      <Descrpt08 SOAPSDK2:nil="true" />
      <Descrpt09 SOAPSDK2:nil="true" />
      <Descrpt10 SOAPSDK2:nil="true" />
      <TxtKonse SOAPSDK2:nil="true" />
      <Direction SOAPSDK2:nil="true" />
      <PartnRole>AG</PartnRole>
      <PartnId>0000002000</PartnId>
      <ContactRole>AP</ContactRole>
      <Contact>0000000005</Contact>
      <Langu SOAPSDK2:nil="true" />
      <LanguIso SOAPSDK2:nil="true" />
      </item>
      </SOAPSDK4:Generaldata>
      <SOAPSDK4:Return SOAPSDK2:nil="true" SOAPSDK3:arrayType="SOAPSDK4:Bapiret2[0]" SOAPSDK3:offset="[0]" SOAPSDK2:type="SOAPSDK3:Array" />
    - <SOAPSDK4:Sender>
      <LogSystem SOAPSDK2:nil="true" />
      </SOAPSDK4:Sender>
      <SOAPSDK4:Testrun SOAPSDK2:nil="true" />
      </SOAPSDK4:ZBpcontactCreatefromdata>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>
    here is the VB coding in Excel:
    The call of the WS is done in standard generated classes from the WS plugin in Excel:
    Call contractWS.wsm_ZBpcontactCreatefromdata
    Dim contractWS As New clsws_zcreatecontact2Servic
    Dim ar_Businesspartner() As New struct_VbkaVbpa2kom
    Dim ar_Generaldata(0) As New struct_Bus1037VbkakomCr
    Dim ar_Return() As Variant
    Dim obj_Sender As New struct_Sender
    Dim str_Testrun As String
    With ar_Generaldata(0)
    .DocNumber = "1"
    .ActivityType = "0001"
    .Salesorg = "1000"
    .DistrChan = "10"
    .Division = "00"
    .SalesOff = "1000"
    .SalesGrp = "100"
    .ActivityComment = Range("C9").Text
    .FromDate = Format(Range("C8").Text, "yyyy-mm-dd")
    .ToDate = Format(Range("C8").Text, "yyyy-mm-dd")
    .FromTime = "00:00:00"
    .ToTime = "00:00:00"
    .Reason = "003"
    .Result = "005"
    .ResultExplanation = "005"
    .State = "1"
    .PartnRole = "AG"
    .PartnId = "0000002000"
    .ContactRole = "AP"
    .Contact = "0000000005"
    End With
    ReDim ar_Businesspartner(2)
    With ar_Businesspartner(0)
    .DocNumber = "1"
    .ItmNumber = "1"
    .CountParvw = "1"
    .PartnRole = "AG"
    .PartnRoleOld = "AG"
    .PartnId = "0000002000"
    .PartnIdOld = "0000002000"
    End With
    With ar_Businesspartner(1)
    .DocNumber = "1"
    .ItmNumber = "1"
    .CountParvw = "1"
    .PartnRole = "AP"
    .PartnRoleOld = "AP"
    .PartnId = "0000000005"
    .PartnIdOld = "0000000005"
    End With
       With ar_Businesspartner(2)
    .DocNumber = "1"
    .ItmNumber = "1"
    .CountParvw = "1"
    .PartnRole = "ZM"
    .PartnRoleOld = "ZM"
    Dim id As String
    id = Range("C7").Value
    .PartnId = id
    .PartnIdOld = id
    End With
    Call contractWS.wsm_ZBpcontactCreatefromdata( _
    ar_Businesspartner, _
    ar_Generaldata, _
    ar_Return, _
    obj_Sender, _
    str_Testrun _
    Message was edited by: Marcus Schiffer
    Message was edited by: Marcus Schiffer

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

    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

    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

  • Problem in WEB SERVICES

    Good morning everybody
    I've buil a web service from Function module.
    I can execute my services from SE37 and It's ok, the problem born when i call my web service from another external custom application.
    Infact, when i call my web services the log show: ERROR IN SERIALIZATION.
    After very long search I Find that the serialization error born because the parameter order that pass to web services in my application in different from parameter order definited into XML WEB SERVICES file.
    for Example:
    In my application i pass parameters:
    p1, p2, p3
    and in XML file i can see:
    SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body xmlns:ns1="urn:sap-com:document:sap:soap:functions:mc-style">
          <ns1:ZWsMaterialList>
             <P2 xsi:nil="true"/>
             <P3 xsi:nil="true"/>
            <P1>HA01</P1>
         </ns1:ZWsMaterialList>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Using another web services-test-program I can see that if I change xml file with different order, my application start in correct way.
    RIGHT CODE:
    <SOAP-ENV:Body xmlns:ns1="urn:sap-com:document:sap:soap:functions:mc-style">
          <ns1:ZWsMaterialList>
          <P1>HA01</P1>
          <P2 xsi:nil="true"/>
          <P3 xsi:nil="true"/>
          </ns1:ZWsMaterialList>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    My ask is: Can i create a WEB SERVICES where the order of parameter isn't foundamental ???
    I CAN'T change my custom application because the code is copiled so i can only change my WEB SERVICE.
    some helps ???
    than you very much
    Andrea

    Hi Raja,
      I used the tool that you suggest to me, and the results are I expect to be: if I change the order of parameters in the request, web service gives a serialization error.
    I include the 2 differents call of my service. The first with the correct order of parameter, and the second changing the order
    CORRECT CALL *******************
    <?xml version="1.0" encoding="utf-16"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <soap:Body>
        <ZWsMaterialList xmlns="urn:sap-com:document:sap:soap:functions:mc-style">
          <MaterialeBg xmlns="" />
          <MaterialeEn xmlns="" />
          <Tipomat xmlns="">HAWA</Tipomat>
        </ZWsMaterialList>
      </soap:Body>
    </soap:Envelope>
    RESPONSE
    ResponseCode: 200 (OK)
    set-cookie:sap-usercontext=sap-client=100; path=/
    content-type:text/xml; charset=utf-8
    content-length:21112
    sap-srt_id:20060321/140843/v1.00_final_6.40/FF064F59782D3B4B969BE0E893537D22
    server:SAP Web Application Server (1.0;640)
    <?xml version="1.0" encoding="utf-16"?>
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
      <soap-env:Body>
        <n0:ZWsMaterialListResponse xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style">
          <Output>
            <item>
          </Output>
        </n0:ZWsMaterialListResponse>
      </soap-env:Body>
    </soap-env:Envelope>
    INCORRECT CALL ***************
    <?xml version="1.0" encoding="utf-16"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <soap:Body>
        <ZWsMaterialList xmlns="urn:sap-com:document:sap:soap:functions:mc-style">
          <MaterialeEn xmlns="" />
          <MaterialeBg xmlns="" />
          <Tipomat xmlns="">HAWA</Tipomat>
        </ZWsMaterialList>
      </soap:Body>
    </soap:Envelope>
    RESPONSE
    ResponseCode: 500 (Internal Server Error)
    set-cookie:sap-usercontext=sap-client=100; path=/
    content-type:text/xml; charset=utf-8
    content-length:929
    sap-srt_id:20060321/140959/v1.00_final_6.40/0AAC3086A117C447B58AAB58E9F7551B
    server:SAP Web Application Server (1.0;640)
    <?xml version="1.0" encoding="utf-16"?>
    <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/WSS0060321101057890000</MainName>
              <ProgName>/1BCDWB/WSS0060321101057890000</ProgName>
              <Line>34 </Line>
              <Valid>X</Valid>
              <MatchFault>
                <DescriptionText>System expected end of element 'ZWsMaterialList'</DescriptionText>
                <TokenType>S</TokenType>
                <TokenName>MaterialeBg</TokenName>
                <TokenNameSpace>
                </TokenNameSpace>
                <TokenValue>
                </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>
    Thank you very much.
    Regards
    Andrea

Maybe you are looking for

  • Saving Adobe forms in R/3

    Hi All,   We are using ISR scenarios (Eg: Personal change request of MSS package) where we have used adobe forms. Manager generates a new form whcih goes to HR co-ordinator as a workitem. But we need to save these forms in R/3 also. because in future

  • How to specify ejbgen options using wlcompile ?

    We are using the split development model is WL8.1 are are using ant, specifically ant target wlcompile for development. How does one specify for example a valueObjectSuffix option for ejbgen, when auto generating value class(es) for CMP Entity Beans

  • Windows taskbar not showing when iTunes window at full screen.

    I have my taskbar unlocked so it hides when I am not moused over it. I just downloaded 10.5 and when I have the iTunes window maximized I cannot get the taskbar to appear. I have to press the Windows key in order for it to show.

  • Nano randomly works

    since the other day my ipod is not working correctly. i keep having to restart it & it will randomly work for a while then will stop responding to any button pressed. i have now restarted it an endless amount of times, is the warranty for a year?! an

  • Infoview error when opening crystal report

    Anyone experienced this type of problem and managed to resolve it? Kindly assist. Thanks