Hello, I need to send XML data to a web service. Is there an XSD type I need to define? should I use some kind of encoding before? My problem is that the sent XML is being received encoded as follows: <?xml version="1.0" encoding="utf-8"?> ....... now I cant do HTML decoding in the web service as the XML itself contains HTML tags inside which are also being encoded (i.e. <). Please help, Thanks in advance, Yaniv.
"Yaniv" wrote in message news:F3C76CE0-CD04-4167-A27E-BCA29932EC31@microsoft.com... > Hello, > > I need to send XML data to a web service. > Is there an XSD type I need to define? should I use some kind of encoding > before? The XSD should have come from the Web service provider as to what the Web service expects in the XML that you are sending to the provider. > > My problem is that the sent XML is being received encoded as follows: > <?xml version="1.0" encoding="utf-8"?> ....... > You should be in contact with the Web service provider about this. > now I cant do HTML decoding in the web service as the XML itself contains > HTML tags inside which are also being encoded (i.e. <). > see above
Hello Mr. Arnold, Thank you for the reply but I guess I wasn't clear enough. I own the web service and right now the type is String as I'm sending XML as String. However when I'm sending the XML to the web service I get the XML in the web service encoded (i.e. <) and not "<". My question is how can I send it so in the web service I will get XML properly (i.e. "<"). one more thing, the XML may contain HTML tags inside for example: <XML> <Items> <Item> <Title> <!-- This is the html --> <div>HTML VALUE</div> </Title> </Item> </Items> </XML> Thanks a lot, Yaniv.
I'm sorry I just noticed it's not displaying the encoded chars as I wanted. What I meant in the i.e. was &-l-t-; without the dashes.
How to do this depends on whether you're developing the contract first, or the code first. If you do contract-first, then define the element as type xsd:any. In the code, define the corresponding field or property to be of type XmlElement. -- John Saunders | MVP - Connected System Developer