Ik moet in een C# applicatie een functie in een JAVA webservice aanroepen, die 2 parameters verwacht: een string (een GUID) en een byte array.
Als ik de SOAP request bekijk, staat de string parameter er wel keurig in, maar de byte array niet (als ik debug op de functie aanroep is die wel degelijk gevuld):
ASCIIEncoding encoding = new ASCIIEncoding();
byte[] inhoud = encoding.GetBytes(input);
............
response = server.addOrUpdateCaseWithData(unid, inhoud);
Dit is de SOAP:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none"></Action></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><addOrUpdateCaseWithData xmlns="http://api.index.webservice.actonomy.com"><in0>b5817456-fa77-49ec-b3ba-c59aec3fed39</in0><in1></in1></addOrUpdateCaseWithData></s:Body></s:Envelope
Iemand enig idee hoe dit kan? En hoe het is op te lossen?
Als ik de SOAP request bekijk, staat de string parameter er wel keurig in, maar de byte array niet (als ik debug op de functie aanroep is die wel degelijk gevuld):
ASCIIEncoding encoding = new ASCIIEncoding();
byte[] inhoud = encoding.GetBytes(input);
............
response = server.addOrUpdateCaseWithData(unid, inhoud);
Dit is de SOAP:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none"></Action></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><addOrUpdateCaseWithData xmlns="http://api.index.webservice.actonomy.com"><in0>b5817456-fa77-49ec-b3ba-c59aec3fed39</in0><in1></in1></addOrUpdateCaseWithData></s:Body></s:Envelope
Iemand enig idee hoe dit kan? En hoe het is op te lossen?