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 » Fault over MQ

Post new topic  Reply to topic
 Fault over MQ « View previous topic :: View next topic » 
Author Message
taufik
PostPosted: Wed Apr 23, 2008 9:24 pm    Post subject: Fault over MQ Reply with quote

Newbie

Joined: 23 Apr 2008
Posts: 1

I have a mediation service (implemented with WESB) that put request message to queue (MQ) with XML format (not SOAP request). and then my backend process (implemented with WMB) will pick up this request message, if there are any fault in my backend process, fault message will be generate from backend process, and then put fault message to queue (MQ) with XML format too (not SOAP fault response). but my mediation service pick up that message as response message, not as fault message.

this mediation service flow:

WebServiceExportBinding <---> MediationModule <---> MQImportBinding

and request message from mediation service looks like this:

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:p408="http://testing/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<p408:getBalance>
<systemID>TEST</systemID>
<accountNum>123456</accountNum>
</p408:getBalance>
</soapenv:Body>
</soapenv:Envelope>

why my fault message in mediation log looks like this???

<?xml version="1.0" encoding="UTF-8"?>
<body xsi:type="reference:getBalanceResponseMsg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:common="http://testing/common" xmlns:reference="http://testing/core/reference">
<getBalanceResponse>
<balanceResultBO xsi:type="common:SystemFault">
<errorDescription>Nothing response from Core!!!</errorDescription>
<errorCode>9000</errorCode>
</balanceResultBO>
</getBalanceResponse>
</body>

i want my fault message in mediation log like this:
<?xml version="1.0" encoding="UTF-8"?>
<body xsi:type="reference:getBalance_systemFaultBOMsg"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:reference="http://testing/core/reference">
<getBalance_systemFaultBO>
<errorDescription>Nothing response from Core!!!</errorDescription>
<errorCode>9000</errorCode>
</getBalance_systemFaultBO>
</body>

in WMB, my MXSD looks like this:

<xsd:element name="getBalance_coreFaultBO" type="Q1:CoreFault">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<MRMessage messageDefinition="/0/getBalance_coreFaultBO;XSDElementDeclaration=5$MRObject"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>

and CoreFault:

<xsd:complexType name="CoreFault">
<xsd:sequence>
<xsd:element name="errorCode" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<cwfInclRep messageSetDefaultRep="CWF1">
<cwfSimpleRep encodingNull="NullLogicalValue" mrLengthEncoding="fixedLength" paddingCharacter="SPACE" typeName="MRCWFStringRep" width="7"/>
</cwfInclRep>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="legacyId" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="WMQI_APPINFO">
<cwfInclRep messageSetDefaultRep="CWF1">
<cwfSimpleRep encodingNull="NullLogicalValue" mrLengthEncoding="fixedLength" paddingCharacter="SPACE" typeName="MRCWFStringRep" width="4"/>
</cwfInclRep>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>

any solution for my problem??? i want pass my fault message from backend process (implemented with WMB) with XML format (not SOAP) to queue, and pick up that fault message as SOAP fault in mediation service.


regards,
taufik
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 » Fault over MQ
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.