<soap:envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:dev="XXXX/devicemanagement/device" xmlns:com="XXXX/ws/common" xmlns:com1="XXXX/types/common"> <soap:header /> <soap:body> <dev:adddevicesrequest xmlns:db="XXXX/deviceattribute/basicinfo" xmlns:dauth="XXXX/deviceattribute/authentication" xmlns:dgauth="XXXXX/devicegroupattribute/authentication"> <dev:device> <dev:attribute> <com:name>db:HostName</com:name> <com:stringvalue>192.168.200.101</com:stringvalue> </dev:attribute> <dev:attribute> <com:name>db:DisplayDeviceName</com:name> <com:stringvalue>d01</com:stringvalue> </dev:attribute> <dev:attribute> <com:name>db:ModelCode</com:name> <com:stringvalue>ModelCode01</com:stringvalue> </dev:attribute> <dev:attribute> <com:name>db:SerialNumber</com:name> <com:stringvalue>12301</com:stringvalue> </dev:attribute> </dev:device> </dev:adddevicesrequest> </soap:body> </soap:envelope> <big>When I pass parameter as "db:hostname" from c# to java, it is getting encrypted at java end as "db_x003A_hostname" which means colon (":") is getting converted to " _x003A" at java service. This results an error as "invalid parameter name".</big> Please help me in resolving this error. Thanks in advance for your help.
// Serialize the hostname field as an attribute with the given namspace [XmlAttribute( Namespace ="www.db.com")] public string hostname;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)