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 » Coping SOAP Message element values to Output

Post new topic  Reply to topic
 Coping SOAP Message element values to Output « View previous topic :: View next topic » 
Author Message
Bharat_123
PostPosted: Mon Sep 22, 2008 12:59 pm    Post subject: Coping SOAP Message element values to Output Reply with quote

Acolyte

Joined: 15 Sep 2008
Posts: 58

Mbians


I know i am close but some where i am missing something here.

I am trying to copy the all the SOAP message element values as it is but the end of the message bosy i am adding a new element. It works very fine when i hard code the values.

But when i try to copy the values ....from the input message its does not work....Please give me valuable suggestions....

MQ Input Node Properties:

Message Domain : XMLNSC
Compute Node Properties Compute Node: Message


When i use debugger the entire Message is copying to WMQI Message i can see that. But its not assigniing to the particulat variable...

here is the scenario..........

DECLARE ns NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE UserId CHARACTER;

SET UserId = InputRoot.XMLNSC.ns:Envelope.ns:Header.SecurityConcern.UserToken.Username;

CREATE LASTCHILD OF OutputRoot.XMLNSC.ns:Envelope.ns:Header.SecurityConcern.UserToken.UserName TYPE NameValue VALUE UserId;

When i use debugger i can see only null value assigned to that variable.



Any ideas Please............................


Thank You for your help and time
Back to top
View user's profile Send private message
Hari
PostPosted: Tue Sep 23, 2008 2:46 pm    Post subject: Reply with quote

Centurion

Joined: 21 Nov 2002
Posts: 117
Location: USA

Check your Input message again, to see if you are missing any namespace declarations.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Sep 23, 2008 3:10 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Please give me valuable suggestions
User trace. It will show you where the processing is going wrong.
Back to top
View user's profile Send private message
Bharat_123
PostPosted: Tue Sep 23, 2008 7:41 pm    Post subject: Reply with quote

Acolyte

Joined: 15 Sep 2008
Posts: 58

Thanks for ur reply......

1 Input message has namespace declaration
2) UserTrace..but i dont see any valid valur for use


as i said my inbound message looks something like this

<soap:envelope>
<soap:Header>
<uvwxyz>
<uvwxy>
<head1/>
<head2/>
</uvwxy>
</uvwxyz>
<soap:Header>
<soap:Body>
<abcd>
<element1/>
<element2/>
</abcd>
<abcde>
<![DATA]>
</abcde>
</soap:Body>
</soap:envelope>


when i create a message set from the example mesage i see its not creating any values in type folder. so when parser try to fetch the data i dont c nothing in there. i believe thats one of the reason its taking null values.

PS: i can not submit the real message here..sorry

Please help me either correcting the message or reading the values from the input message.

Thank U
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Sep 23, 2008 8:20 pm    Post subject: Reply with quote

Grand High Poobah

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

Don't quite get your command:

Quote:
CREATE LASTCHILD OF OutputRoot.XMLNSC.ns:Envelope.ns:Header.SecurityConcern.UserToken.UserName TYPE NameValue VALUE UserId;
Shouldn't it be more like
Quote:
CREATE LASTCHILD OF OutputRoot.XMLNSC.ns:Envelope.ns:Header.SecurityConcern.UserToken TYPE NameValue NAME 'UserName' VALUE UserId;

_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Wed Sep 24, 2008 1:24 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I think fjb_saper has identified the problem.
Quote:
2) UserTrace..but i dont see any valid valur for use

Not sure what you mean. User Trace is a diagnostic tool. You use the command mqsichangetrace to enable user trace, then you put a message through your flow and read the user trace. It is a text file containing a log of everything that the execution group was doing. I strongly suspect that it would have shown you what was going wrong here.
Back to top
View user's profile Send private message
Bharat_123
PostPosted: Thu Sep 25, 2008 8:41 am    Post subject: Need ur Help..Error While creating Message Set Reply with quote

Acolyte

Joined: 15 Sep 2008
Posts: 58

Hello

When i am Trying to create a Message set with following XML (Created XSD and validated using Spy2008).

<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope
C:\DOCUME~1\Sai\Desktop\mbp_req_soap_v1.xsd">
<env:Header>
<SecurityName>
<UsernameToken>
<Username>V777777</Username>
<Password>password</Password>
</UsernameToken>
</SecurityName>
</env:Header>
<env:Body>
<MBPStrrucs>
<aicCd>77777</NaicCode>
<MBPUserId>india</MBPUserId>
<TypeVer>DEMCOHDC</TypeVer>
<TranType>CLM</TranType>
<ClientStateData><![CDATA[XXXXXXXXXX]]></ClientStateData>
</MBPStrucs>
<MBPDATA><![CDATA[XXXXXXXXXX]]></MBPDATA>
</env:Body>
</env:Envelope>



I can c only Message and Element and Attribute folder structre and empty folders for Types and Groups.

Can someone help in that. Is that problem with XSD and XML itself.

I believe without that proper strucure i could not able to read the values of inbound message.

U r help is needed

Thanks
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Sep 25, 2008 2:43 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Is that problem with XSD and XML itself.
That is an XML document. If you want to create a message set, you need to create an XML schema to describe that XML document and then import the schema.
Quote:
I believe without that proper strucure i could not able to read the values of inbound message.
Yes, it is good practice to create a message set for each message flow. However, if you decide not to, you can still create a message flow to process your XML. You will just make a few more errors because the toolkit cannot use the message set to guide you.
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 » Coping SOAP Message element values to Output
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.