ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » http Request namespace

Post new topic  Reply to topic
 http Request namespace « View previous topic :: View next topic » 
Author Message
matuwe
PostPosted: Tue May 16, 2017 9:46 am    Post subject: http Request namespace Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue May 16, 2017 9:56 am    Post subject: Re: http Request namespace Reply with quote

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
View user's profile Send private message
matuwe
PostPosted: Tue May 16, 2017 10:54 am    Post subject: Reply with quote

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
View user's profile Send private message
matuwe
PostPosted: Tue May 16, 2017 10:57 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue May 16, 2017 11:12 am    Post subject: Reply with quote

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
View user's profile Send private message
timber
PostPosted: Tue May 16, 2017 11:27 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

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
View user's profile Send private message
matuwe
PostPosted: Thu May 18, 2017 9:29 am    Post subject: Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

Thanks a million guys..

You really helped guide me

https://www.ibm.com/support/knowledgecenter/en/SSKM8N_8.0.0/com.ibm.etools.mft.doc/ac67194_.htm

works beautifully
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » http Request namespace
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.