• AviAvi
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 0
    Replies

Hello all,

do you know if SF support in (parsing) XML that encoding in UTF-16.

 

the probem is that I send httpRequest and I received the xml but if I'm trying to display the content or just pars the xml an errror message raise "ParseError at [row,col]:[1,1]Message: Content is not allowed in prolog."

facts:
1.) I already trying to setHeader(before the http.send) to content-type,UTF-16 (;charset=utf-16).
2.) I'm trying to display the (getBody()) of the xml in visualforce page - and I recieved a lot weird charcters,
like question mark or something.

3.) all those problems not happened if the xml encoded in UTF-8.

4.) 

ErrorLog4 = ''; HttpRequest req = new HttpRequest(); req.setEndpoint(XML FILE PATH); req.setMethod('GET'); req.setHeader('Content-Type', 'text/xml'); Http http = new Http(); HTTPResponse res = http.send(req); String responseBody = res.getBody() ; Xmlstreamreader xmlreader = new Xmlstreamreader(responseBody) ; try { ErrorLog1 += responseBody ; // Weird Characters been displayed //ErrorLog3 += xmlreader.nextTag() ; // Error message }

 Thanks in advance,
Avi.


 

  • December 23, 2009
  • Like
  • 0

Hello all,

 

i just want to be sure that i can create a custom field (for standard object - lead) via eclipse.

 

i know that if i'll take the XML file of the lead.object and i add him a fields it will work(i.e - i adding an XML code that represent a field and save the XML file ==> the field been created), the problem is that i need to

create the field in a dynamic way (let's say i have WS and he pass me a list of fields that i need to create .. and it's must be done immediately).

 

i read that there are some function that handle in the metadata API such as : create() , retrieve() ..

so basically i want to know 2 things :

 

1.) to change the API metadata, it must be done from JAVA , or maybe i can do it from apex classes.

2.) Please -  examples.

 

Thanks and all the best ,

Avi .

 

 

hello all ,


someone here know if there is a limitation on what i can display on the custom portal ? (custom objects/fields) ?

the page is VF , with a standart controller , and in the SANDBOX it working great , but when i transfer the page to the custom portal area , some field and some object not appear when i log in (i am system admin so i from the security point i can see it all)

thnaks .

  • March 04, 2009
  • Like
  • 0

hello all ,


someone here know if there is a limitation on what i can display on the custom portal ? (custom objects/fields) ?

the page is VF , with a standart controller , and in the SANDBOX it working great , but when i transfer the page to the custom portal area , some field and some object not appear when i log in (i am system admin so i from the security point i can see it all)

thnaks .

  • March 04, 2009
  • Like
  • 0

hello all ,


someone here know if there is a limitation on what i can display on the custom portal ? (custom objects/fields) ?

the page is VF , with a standart controller , and in the SANDBOX it working great , but when i transfer the page to the custom portal area , some field and some object not appear when i log in (i am system admin so i from the security point i can see it all)

thnaks .

  • March 04, 2009
  • Like
  • 0