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 » Problem in build SOAP Response in JCN with name space

Post new topic  Reply to topic
 Problem in build SOAP Response in JCN with name space « View previous topic :: View next topic » 
Author Message
mahesh2069
PostPosted: Wed Jul 10, 2013 4:55 am    Post subject: Problem in build SOAP Response in JCN with name space Reply with quote

Centurion

Joined: 26 Jun 2013
Posts: 103

Hi ALL,

I have a simple flow,
SOAP input --> JCN ---> SOAP Reply

I have given input through SOAP UI, Input message contain some soap input with name space ,In JCN I just modify the input soap body and create structure of output message,but error is coming in while send response from soap reply to soap ui, After JCN that structure go to SOAP reply..Here error is coming after go to infinite loop..

I want to generate namespace based response..But problem in create name space for output structure ,where do we add name space??

error is " <com.ibm.broker.plugin.MbBrokerException source:BIPmsgs key:3752 message:[BIPmsgs:3752]BIP3752E: The SOAP Reply node 'Error occurred in ImbSOAPReplyHelper::makeSOAPReply()' encountered an error while processing a reply message.

An error occurred during reply message processing. "

Error occurred in ImbSOAPReplyHelper::makeSOAPReply() >
_________________
Thanks & Regards
Mahesh Mediboyina
WMB Developer
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Jul 10, 2013 5:09 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Swap your JCN out for an ESQL Compute, then create the Logical Message Tree for the SOAPReply node. If your processing is unhappy, be sure to set the Http status code to something other than 200-- say 500 series -- in your http headers.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.samples.SOAPNodes.doc%2Fdoc%2Foverview.htm
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mahesh2069
PostPosted: Wed Jul 10, 2013 6:04 am    Post subject: Reply with quote

Centurion

Joined: 26 Jun 2013
Posts: 103

Already I had done in Compute node ,But I need to do same in JCN , problem when we generate name space based outputs in java compute node.


Give me some Idea's to do..
_________________
Thanks & Regards
Mahesh Mediboyina
WMB Developer
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Jul 10, 2013 6:32 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Did MbElement.setNamespace not work for you?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
lancelotlinc
PostPosted: Wed Jul 10, 2013 6:55 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

mahesh2069 wrote:
Already I had done in Compute node ,But I need to do same in JCN , problem when we generate name space based outputs in java compute node. Give me some Idea's to do..


If you already had it working in an ESQL Compute node, why do you need to change to JCN?

The whole benefit of ESQL is the ease of working with the Logical Message Tree including namespaces. ESQL is a purpose-built language for WebSphere Message Broker that has specific linguistic constructs to manipulate the Logical Message Tree including namespaces.

Java is a general purpose langauge which lacks the sophistication of the ESQL language when it comes to efficiently addressing the Logical Message Tree including namespaces.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mahesh2069
PostPosted: Wed Jul 10, 2013 8:20 am    Post subject: Reply with quote

Centurion

Joined: 26 Jun 2013
Posts: 103

Yah.. your are correct ESQL is correct way to do, but my client said that "use JCN to do "
Help me to solve..that issue.
_________________
Thanks & Regards
Mahesh Mediboyina
WMB Developer
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jul 10, 2013 8:29 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Your code is building the wrong message.

You haven't shown the message your code is building.

You haven't shown your code.

So you need to troubleshoot your code until it produces the correct message. It helps to know before hand what the correct message is supposed to look like.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Jul 10, 2013 9:23 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

mahesh2069 wrote:
Yah.. your are correct ESQL is correct way to do, but my client said that "use JCN to do "
Help me to solve..that issue.


Oh, I get it now. Your manager with no message flows in production is telling that you are not allowed to use <xyz> node.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Wed Jul 10, 2013 11:28 am    Post subject: Reply with quote

Jedi Council

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

lancelotlinc wrote:
]
]Your manager with no message flows in production is telling that you are not allowed to use <xyz> node.[/url]


But the Customer is always right (sic)


_________________
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
fjb_saper
PostPosted: Wed Jul 10, 2013 6:39 pm    Post subject: Reply with quote

Grand High Poobah

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

And there are probably more Java resources in the company than ESQL resources. The question is have these Java resources been trained on WMB. If not there is a huge risk exposure...(its like putting a tractor driver behind the wheel of a Ferrari)
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
lancelotlinc
PostPosted: Thu Jul 11, 2013 3:37 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

smdavies99 wrote:
lancelotlinc wrote:

Your manager with no message flows in production is telling that you are not allowed to use <xyz> node.


But the Customer is always right (sic)



Sic is right. Psych is more like it.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
lancelotlinc
PostPosted: Thu Jul 11, 2013 3:40 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

fjb_saper wrote:
And there are probably more Java resources in the company than ESQL resources. The question is have these Java resources been trained on WMB. If not there is a huge risk exposure...(its like putting a tractor driver behind the wheel of a Ferrari)


Someone who has Java experience that cannot write ESQL code ought to have their head examined. ESQL is a fine language and far less difficult than Java. ESQL is very well documented. The language is not the problem.

A poorly written WMB message flow would be poorly written in either Java or ESQL. Thats because the poorness (is that even a word?) comes from lack of understanding about how Broker works rather than the language the code is implemented in.

In other words, the risk is from a lack of understanding how to manipulate the Logical Message Tree rather than if the code is written in Java or ESQL. The risk is huge, but not because of the language.

Even if there are more Java people in the company, not one of them would be any good at WMB without understanding CreateNextSibling which is implemented in ESQL and Java the same way.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Problem in build SOAP Response in JCN with name space
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.