Author |
Message
|
matuwe |
Posted: Tue May 16, 2017 9:46 am Post subject: http Request namespace |
|
|
 Master
Joined: 05 Dec 2007 Posts: 296
|
Please help.. I have a Flow thats looks like this
HTTP Input >> Compute >> http Request >> COMPUTE >> HTTP REply
I am trying to build a line like this
<getCustomer xmlns="http://mydomain.ss.com">
Code: |
SET OutputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.getCustomer (XMLNSC.Attribute) xmlns ='http://mydomain.com';
|
ALSO tried
Code: |
SET OutputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.getCustomer (XMLNSCNamespaceDecl) xmlns: ="" ='http://mydomain.com';
|
The code seems to build the tag, but i get an arror when i call the HTTP Request node
I am using IIB 9. Is there anyway that I can make this work? |
|
Back to top |
|
 |
mqjeff |
Posted: Tue May 16, 2017 9:56 am Post subject: Re: http Request namespace |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
matuwe wrote: |
I am using IIB 9. Is there anyway that I can make this work? |
Yes.
matuwe wrote: |
The code seems to build the tag, but i get an arror when i call the HTTP Request node |
Examine the error. Examine the message you are sending out... _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
matuwe |
Posted: Tue May 16, 2017 10:54 am Post subject: |
|
|
 Master
Joined: 05 Dec 2007 Posts: 296
|
Thank you for the quick response..
I tried writing the data to a queue on to a file so i can see the full request I am sending to the HTTPrequest..
I am getting an error
Quote: |
Text:CHARACTER:Element must have a namespace specified if there is a default namespace in scope
Insert
Type:INTEGER:5
Text:CHARACTER:getCustomer
|
|
|
Back to top |
|
 |
matuwe |
Posted: Tue May 16, 2017 10:57 am Post subject: |
|
|
 Master
Joined: 05 Dec 2007 Posts: 296
|
It works if I change the like to xmlns1 and not xmlns,, Is this word reserved?
Code: |
SET OutputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.getCustomer (XMLNSC.Attribute) xmlns1 ='http://mydomain.com';
|
|
|
Back to top |
|
 |
mqjeff |
Posted: Tue May 16, 2017 11:12 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
"xmlns" means "the default namespace".
"xmlns1" means "some random namespace".
There's a lot of posts here about the difference between creating a namespace declaration and creating an element that has a namespace. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
timber |
Posted: Tue May 16, 2017 11:27 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
1. You must use XMLNSCNamespaceDecl. An XML namespace declaration is not 'just an XML attribute'.
2. An xmlns attribute with a zero-length prefix is called a 'default namespace declaration' When you use a default namespace you must set the namespace on every child element within its scope. Looks as if you forgot to do that. |
|
Back to top |
|
 |
matuwe |
Posted: Thu May 18, 2017 9:29 am Post subject: |
|
|
 Master
Joined: 05 Dec 2007 Posts: 296
|
|
Back to top |
|
 |
|