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 » Namespaces

Post new topic  Reply to topic
 Namespaces « View previous topic :: View next topic » 
Author Message
fast8
PostPosted: Wed Aug 17, 2016 9:44 pm    Post subject: Namespaces Reply with quote

Newbie

Joined: 17 Aug 2016
Posts: 3

Hello ,
can someone help me with this code
Back to top
View user's profile Send private message
fast8
PostPosted: Wed Aug 17, 2016 9:46 pm    Post subject: Reply with quote

Newbie

Joined: 17 Aug 2016
Posts: 3

Hello ,
Can some one help me with this code :

<FIDCCP02 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FIDCC2.FIDCCP02.xsd">
I want this in the output and i wrote code as :


DECLARE xsd NAMESPACE 'http://www.w3.org/2001/XMLSchema-instance';
DECLARE xsi NAMESPACE 'FIDCC2.FIDCCP02.xsd';
SET OutputRoot.XMLNSC.FIDCCP02.(XMLNSC.Attribute)xmlns:xsi = xsd;
SET OutputRoot.XMLNSC.FIDCCP02.(XMLNSC.Attribute)xsi:noNamespaceSchemaLocation = xsi;


but it throws an error for me can someone help?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Aug 17, 2016 10:04 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

fast8 wrote:
Hello ,
Can some one help me with this code :

Code:
<FIDCCP02 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FIDCC2.FIDCCP02.xsd">

I want this in the output and i wrote code as :


Code:
DECLARE xsd NAMESPACE 'http://www.w3.org/2001/XMLSchema-instance';
       DECLARE xsi NAMESPACE 'FIDCC2.FIDCCP02.xsd';
       SET OutputRoot.XMLNSC.FIDCCP02.(XMLNSC.Attribute)xmlns:xsi = xsd;
       SET OutputRoot.XMLNSC.FIDCCP02.(XMLNSC.Attribute)xsi:noNamespaceSchemaLocation = xsi;



but it throws an error for me can someone help?

Code:

--DECLARE xmlns NAMESPACE 'http://www.w3.org/1999/xhtml'; --??
DECLARE xsi NAMESPACE 'http://www.w3.org/2001/XMLSchema-instance';
SET OutputRoot.XMLNSC.FIDCCP02.(XMLNSC.NameSpaceDecl)xmlns:"xsi"=xsi;
SET OutputRoot.XMLNSC.FIDCCP02.(XMLNSC.Attribute)xsi:noNamespaceSchemaLocation = '"FIDCC2.FIDCCP02.xsd"';
      

_________________
MQ & Broker admin


Last edited by fjb_saper on Wed Aug 17, 2016 10:24 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
fast8
PostPosted: Wed Aug 17, 2016 10:11 pm    Post subject: Reply with quote

Newbie

Joined: 17 Aug 2016
Posts: 3

It still shows error while deploying :

The correlation name 'XMLNSC.NameSpaceDecl' is not valid. Those in scope are: Environment, InputLocalEnvironment, OutputLocalEnvironment, InputRoot, InputBody, InputProperties, OutputRoot, InputExceptionList, OutputExceptionList, InputDestinationList, OutputDestinationList, xsi.

The first element of a field reference must be a valid correlation name, from those in scope. This message may sometimes be due to an incorrectly formed or spelled expression which is not intended to be a field reference being parsed as if it were a field reference because the parser does not recognize it.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Aug 17, 2016 10:26 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

fast8 wrote:
It still shows error while deploying :

The correlation name 'XMLNSC.NameSpaceDecl' is not valid. Those in scope are: Environment, InputLocalEnvironment, OutputLocalEnvironment, InputRoot, InputBody, InputProperties, OutputRoot, InputExceptionList, OutputExceptionList, InputDestinationList, OutputDestinationList, xsi.

The first element of a field reference must be a valid correlation name, from those in scope. This message may sometimes be due to an incorrectly formed or spelled expression which is not intended to be a field reference being parsed as if it were a field reference because the parser does not recognize it.

So do a little research of your own and find the right correlation name for the XML declaration with the XMLNSC parser...
Have you tried (XMLNSC.NamespaceDecl) ??
_________________
MQ & Broker admin


Last edited by fjb_saper on Wed Aug 17, 2016 10:35 pm; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Wed Aug 17, 2016 10:26 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

This post
http://www.mqseries.net/phpBB/viewtopic.php?t=53242

has your answer.

I found it by putting
XMLNSC.Attribute
in to the search box on the upper right of this page. This was the first answer returned.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
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 » Namespaces
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.