hi, I'm work with Openedge 10.1c and I want to write a document XML using the SAX method, but I have a little problem when I execute my program.
I use a prefix with name soapenv and I want put into my XML, my "namespaceuri", just like this:
lok = hsaxwriter:start-element(soapenv:"Envelope").
lok = declarespacename("http://schemas.xmlsoap.org/soap/envelope/","soapenv").
When I check my sintaxys, the system send this error:
** Unknown Field or Variable name - soapenv. (201)
somebody can tell me what is this error and how can I solve this problem?.
Thanks.
Move the quotes to include the soapenv word:
lok = hsaxwriter:start-element("soapenv:Envelope").
However, if you're using the ABL's WEbSErvices client (ie calling out to a webservice) you don't need to add the soap envelope; the AVM will do that for you.
-- peter
Thanks Peter.
I move my quotes for this line.
lok = hsaxwriter:start-element("soapenv:Envelope").
lok = hsaxwriter:DECLARENAMESPACE("http://schemas.xmlsoap.org/soap/envelope/", "soapenv").
but now, Progress send me this error.
Unknown attribute DECLARENAMESPACE used in widget:attribute phrase. (3406)
** Could not understand line 62. (196)
In fact, I define soapenv as char, and the error is the same.
What can I do???...
Again Thanks a lot Peter.
I found the error, in this new problem, was the way to declare the attribute.
this is the correct way to define my lines.
hsaxwriter:start-element("soapenv:Envelope").
hsaxwriter:DECLARE-NAMESPACE("http://schemas.xmlsoap.org/soap/envelope/", "soapenv").
You left a dash/hyphen/minus out of the attribute name
DECLARE-NAMESPACE(...)
-- peter