cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Updating ServiceCall using DIServer

Former Member
0 Kudos

Hi,

I am using DIServer in one of my webpages.I successfully added and retrieved servicecall object to B1 from webpage using DIServer.The problem now I am facing is that when I try to update a servicecall , I get a weird xml error message.I successfully updated BusinessPartner Object previously.But when it comes to servicecall it fails.Can any body help? I add my code below.

string UpCmd="<?xml version=\"1.0\" encoding=\"UTF-16\"?><env:Envelope xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\"><env:Header><SessionID>B1528F25-8ED9-9B11-A0CE-5A95AEC5E7D7</SessionID></env:Header><env:Body><dis:UpdateObject xmlns:dis=\"http://www.sap.com/SBO/DIS\"><BOM><BO><AdmInfo><Object>oServiceCalls</Object></AdmInfo><QueryParams><callID>37</callID></QueryParams><ServiceCalls><row><Subject>Test...Siji</Subject><CustomerCode>C30000</CustomerCode><CustomerName>Microchips</CustomerName><Description>Test..siji</Description><U_Approach>Testing</U_Approach><U_Comment></U_Comment><U_Resolution></U_Resolution><U_InComment></U_InComment><U_Cmpled>N</U_Cmpled></row></ServiceCalls></BO></BOM></dis:UpdateObject></env:Body></env:Envelope>";

string res = null;

res = n.Interact( AddCmd );

The errormsg that get in res is

<?xml version=\"1.0\"?><env:Envelope xmlns:env=\"http://www.w3.org/2003/05/soap-envelope\"><env:Body><env:Fault><env:Code><env:Value>env:Receiver</env:Value><env:Subcode><env:Value>-1114</env:Value></env:Subcode></env:Code><env:Reason><env:Text xml:lang=\"en\">Schema Validation Failed</env:Text></env:Reason><env:Detail><ErrorList><Error>System Id = 30245776, Line Number = 1, Column Number = 79, Description = The namespace of element 'schema' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 99, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 28758288, Line Number = 1, Column Number = 112, Description = The namespace of element 'complexType' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 117, Description = The namespace of element 'all' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number =

164, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 177, Description = The namespace of element 'complexType' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 187, Description = The namespace of element 'sequence' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 239, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 252, Description = The namespace of element 'complexType' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 257, Description = The namespace of element 'all' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 321, Description = The namespace of element 'element' must be from th

e schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 386, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 472, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 485, Description = The namespace of element 'complexType' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 490, Description = The namespace of element 'all' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 563, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 650, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1,

Column Number = 663, Description = The namespace of element 'complexType' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 673, Description = The namespace of element 'sequence' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 729, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 742, Description = The namespace of element 'complexType' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 747, Description = The namespace of element 'all' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 814, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 886, Description = The namespace of element 'element

' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 958, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 1027, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 1108, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 1185, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 1253, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 1327, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123

207016, Line Number = 1, Column Number = 1399, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 1463, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 1531, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 1606, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 1670, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 1738, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 1804, Description = The

namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 1873, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 1943, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 2014, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 2086, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 2156, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 2231, Description = The namespace of element 'element' must be from the schema namespace.

</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 2296, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 2366, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 2435, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 2507, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 2578, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 2646, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Num

ber = 2777, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 2790, Description = The namespace of element 'complexType' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 2800, Description = The namespace of element 'sequence' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 2856, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 2869, Description = The namespace of element 'complexType' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 2874, Description = The namespace of element 'all' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 2944, Description = The namespace of element 'element' mu

st be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 3082, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 3095, Description = The namespace of element 'complexType' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 3105, Description = The namespace of element 'sequence' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 3161, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 3174, Description = The namespace of element 'complexType' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 3179, Description = The namespace of element 'all' must be from the schema namespace.</Error><Error>System Id = 1232

07016, Line Number = 1, Column Number = 3251, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 3323, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 3389, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 3471, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 3601, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 3614, Description = The namespace of element 'complexType' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 3624, Description = Th

e namespace of element 'sequence' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 3680, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 3693, Description = The namespace of element 'complexType' must be from the schema namespace.</Error><Error>System Id = 30245776, Line Number = 1, Column Number = 3698, Description = The namespace of element 'all' must be from the schema namespace.</Error><Error>System Id = 123207016, Line Number = 1, Column Number = 3766, Description = The namespace of element 'element' must be from the schema namespace.</Error><Error>System Id = 27639352, Line Number = 1, Column Number = 109, Description = Unknown element 'callID'</Error><Error>System Id = 27639352, Line Number = 1, Column Number = 134, Description = Element 'callID' is not valid for content model: 'All(ServiceCallID,)'</Error><Error>System Id = 26845616, Line Numbe

r = 1, Column Number = 193, Description = Unknown element 'customer'</Error><Error>System Id = 26845616, Line Number = 1, Column Number = 387, Description = Element 'customer' is not valid for content model: 'All(Subject,CustomerCode,CustomerName,ContactCode,ManufacturerSerialNum,InternalSerialNum,ContractID,ResolutionDate,ResolutionTime,Origin,ItemCode,ItemDescription,Status,Priority,CallType,ProblemType,AssigneeCode,Description,TechnicianCode,Resolution,BelongsToAQueue,Queue,U_Approach,U_Comment,U_Resolution,U_InComment,U_Cmpled)'</Error></ErrorList><Object>191</Object><ObjectIndex>1</ObjectIndex><Command>UpdateObject</Command><SessionID>B1528F25-8ED9-9B11-A0CE-5A95AEC5E7D7</SessionID></env:Detail></env:Fault></env:Body></env:Envelope>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Deepesh:

I do believe you are using the wrong param in the

you should use ServiceCallID instead of CallID

that kind of error is almost always because a field name is different that the expected for the DI-Server, and the error is always at the bottom of that long message.

Hope this helps

Harold Gómez

Former Member
0 Kudos

Thankyou very much Harold,

it was the problem...

Deepesh..

Answers (0)