|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
WBIMB V6, HTTPRequest, and MRM |
« View previous topic :: View next topic » |
Author |
Message
|
marcin.kasinski |
Posted: Fri Sep 22, 2006 10:01 am Post subject: WBIMB V6, HTTPRequest, and MRM |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
Hi,
I have a small problem with requesting WebService from Message flow with MRM.
Ewerything works fine butt.... when I trace SOAP message I see than broker sends message like this bellow
<XML>
<MRM>....here soap..</MRM>
</XML>
For me its nor a valid SOAP.
What I should do to erase MRM tag from this XML ?
or did I miss something... ?
Thanks |
|
Back to top |
|
 |
vennela |
Posted: Fri Sep 22, 2006 10:03 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Post the code where you build your SOAP OutputRoot
You should be doing OutputRoot.MRM rather than OutputRoot.XML |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Fri Sep 22, 2006 10:08 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
vennela wrote: |
Post the code where you build your SOAP OutputRoot
You should be doing OutputRoot.MRM rather than OutputRoot.XML |
I tought that this is some very simple and well know problem.
Code in Compute is very simple.
CALL CopyMessageHeaders();
SET OutputRoot.Properties.MessageSet = 'N0LGFF8002001';
SET OutputRoot.Properties.MessageType = 'Envelope';
SET OutputRoot.Properties.MessageFormat = 'XML1';
SET OutputRoot.HTTPRequestHeader.SOAPAction = 'http://www.blabla.com.pl/WSPilot/SimpleTypes/concatString';
SET OutputRoot.MRM.soapenv:Body.concatString.tns:string256Pair.v1 = 'A';
SET OutputRoot.MRM.soapenv:Body.concatString.tns:string256Pair.v2 = 'B';
Of course domain type of HTTPRequest is set to MRM and XML1
MRM and flow project you can find here
http://itzone.com.pl/tmp1cx/
Can you look at this ?
I dont know where I make mistake. |
|
Back to top |
|
 |
kimbert |
Posted: Fri Sep 22, 2006 1:55 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
What I should do to erase MRM tag from this XML ? |
I don't really understand what your message flow is doing, and you have not said which version you are using.
However, the usual reason for unwanted 'MRM' tags around an XML message is the 'Root Tag Name' property in the XML Message Set properties. It defaults to 'MRM' on v5, and catches out a lot of users. |
|
Back to top |
|
 |
asalema |
Posted: Fri Sep 22, 2006 1:55 pm Post subject: Why does MessageSet transform datetime format?! |
|
|
Apprentice
Joined: 05 May 2003 Posts: 35
|
Hi All,
I have a flow as follows
HTTPInputNode ->XMLtransformation->HTTPReply
I use a messageset on the HTTP input node in which I set the Validation to "content" and parsing timing to "Immidiate"
In the message definition file I have a BirthDateTime field of time xsi:datetime
When I send a valid request through the HTTPInput like this
Code: |
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="wsReqToHL7_GetPersonDemographics.xsl"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q0="http://ephsprj.org/GetPersonDemographicsBO" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<bo:GetPersonDemographicsReqWS
xmlns:bo="http://ephsprj.org/GetPersonDemographicsBO"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ephsprj.org/GetPersonDemographicsBO EPHS_GetPersonDemographics_WSBO.xsd">
<QueryParameter>
<ClientID>
<root>1234</root>
<extension>ABC</extension>
</ClientID>
<ClientID>
<root>2234</root>
</ClientID>
<ClientID>
<root>3234</root>
<extension></extension>
</ClientID>
<ClientID>
<root>45</root>
<extension>CDE</extension>
</ClientID>
<PersonName>
<given>Bruce</given>
<given>J</given>
<family>Jackson</family>
<prefix>Dr.</prefix>
</PersonName>
<Address>
<unitType>unit type</unitType>
<!-- <delimiter>del</delimiter> -->
<country>Canada</country>
<state>BC</state>
<!-- <county>orange</county> -->
<city>Vancouver</city>
<postalCode>V1V 1V1</postalCode>
<streetAddressLine>street address line 1</streetAddressLine>
<streetAddressLine>street address line 2</streetAddressLine>
<direction>N</direction>
<streetName>street name</streetName>
<streetNameBase>street name base</streetNameBase>
<streetNameType>street name type</streetNameType>
<additionalLocator>add.locator</additionalLocator>
<unitID>unit id</unitID>
<carrier>car</carrier>
<censusTract>ct</censusTract>
</Address>
<Address>
<city>Burnaby</city>
<streetName>Canada Way</streetName>
</Address>
<!-- <BirthDate>1999-12-31</BirthDate> -->
<BirthDateTime>2013-05-26T23:10:35Z</BirthDateTime>
</QueryParameter>
</bo:GetPersonDemographicsReqWS>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
|
it passes validation and I get an MRM message at the HTTPInput node's out terminal. However, the BirthDateTime format get transformed to
Code: |
2013-05-26 23:10:35.000 |
which is different from the input format. My question is why does MRM MessageSet transforms the datetime format? This is causing problems during message transformation.
I appreciate any help with this.
Regards,
|
|
Back to top |
|
 |
kimbert |
Posted: Fri Sep 22, 2006 1:59 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
asalema : Please re-post in a new thread. Your question is competely different from marcin.kasinski's. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|