|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Converting Soap reply to XML |
« View previous topic :: View next topic » |
Author |
Message
|
grasher134 |
Posted: Fri Oct 24, 2014 2:42 am Post subject: Converting Soap reply to XML |
|
|
Acolyte
Joined: 22 Oct 2014 Posts: 62
|
Sorry for my English. Didn't find anything like spoiler so sorry for long listings.
I have SOAP web service that returns me the folowing result. I'm interested in red part. Trying to convert this thing to XML using Compute node. And getting the exception. Used the same code several times and everything went ok. Maybe it's because I tried to create a new messageset\service myself from scratch..
Code: |
Message
Properties
MessageSet:CHARACTER:CreateRTTransactionSOAP
MessageType:CHARACTER:
MessageFormat:CHARACTER:
Encoding:INTEGER:546
CodedCharSetId:INTEGER:1208
Transactional:BOOLEAN:false
Persistence:BOOLEAN:false
CreationTime:TIMESTAMP:java.util.GregorianCalendar[time=1414128263266,areFieldsSet=true,areAllFieldsSet=false,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Asia/Baku",
offset=14400000,dstSavings=3600000,useDaylight=true,transitions=111,lastRule=java.util.SimpleTimeZone[id=Asia/Baku,offset=14400000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=2,startDay=-1,
startDayOfWeek=1,startTime=14400000,startTimeMode=0,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=18000000,endTimeMode=0]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=?,YEAR=2014,MONTH=9,WEEK_OF_YEAR=?,
WEEK_OF_MONTH=?,DAY_OF_MONTH=24,DAY_OF_YEAR=?,DAY_OF_WEEK=?,DAY_OF_WEEK_IN_MONTH=?,AM_PM=0,HOUR=10,HOUR_OF_DAY=10,MINUTE=24,SECOND=23,MILLISECOND=266,ZONE_OFFSET=?,DST_OFFSET=?]
ExpirationTime:INTEGER:-1
Priority:INTEGER:0
ReplyIdentifier:BLOB:[B@234f7b4d
ReplyProtocol:CHARACTER:SOAP-AXIS2
Topic:UNKNOWN:null
ContentType:CHARACTER:text/xml; charset=utf-8
IdentitySourceType:CHARACTER:
IdentitySourceToken:CHARACTER:
IdentitySourcePassword:CHARACTER:
IdentitySourceIssuedBy:CHARACTER:
IdentityMappedType:CHARACTER:
IdentityMappedToken:CHARACTER:
IdentityMappedPassword:CHARACTER:
IdentityMappedIssuedBy:CHARACTER:
HTTPInputHeader
X-Original-HTTP-Command:CHARACTER:POST http://localhost:7801/CreateRTTransaction HTTP/1.1
SOAPAction:CHARACTER:
Content-Type:CHARACTER:text/xml; charset=utf-8
User-Agent:CHARACTER:Java/1.7.0
Host:CHARACTER:localhost:7801
Accept:CHARACTER:text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection:CHARACTER:keep-alive
Content-Length:CHARACTER:701
X-Remote-Addr:CHARACTER:127.0.0.1
X-Remote-Host:CHARACTER:127.0.0.1
X-Server-Name:CHARACTER:localhost
X-Server-Port:CHARACTER:7801
[color=red]XMLNSC
CreateRTTransaction:CHARACTER:<XREF>123456789</XREF><BRN>000</BRN><TXNBRN>038</TXNBRN><TXNACC>123456789/</TXNACC>
<TXNCCY>USD</TXNCCY><TXNAMT>228.14</TXNAMT><OFFSETBRN>000</OFFSETBRN><OFFSETACC>564897231</OFFSETACC><OFFSETCCY>AZN</OFFSETCCY>
<OFFSETAMT>180</OFFSETAMT><XRATE>0.7890</XRATE><NARRATIVE>MilliOn 564789123 22/10/2014</NARRATIVE>[/color] |
Code: |
DECLARE creationPtr REFERENCE TO OutputRoot.XMLNSC;
CREATE LASTCHILD OF creationPtr DOMAIN('XMLNSC') PARSE(InputRoot.XMLNSC.(XMLNSC.CDataField)CreateRTTransaction,
InputProperties.Encoding,
InputProperties.CodedCharSetId); |
Code: |
ExceptionList
RecoverableException
File:CHARACTER:F:\build\slot2\S000_P\src\DataFlowEngine\MessageServices\ImbDataFlowNode.cpp
Line:INTEGER:1153
Function:CHARACTER:ImbDataFlowNode::createExceptionList
Type:CHARACTER:ComIbmSOAPInputNode
Name:CHARACTER:CreateRTTransaction_flow#FCMComposite_1_1
Label:CHARACTER:CreateRTTransaction_flow.SOAP Input
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Node throwing exception
RecoverableException
File:CHARACTER:F:\build\slot2\S000_P\src\DataFlowEngine\SQLNodeLibrary\ImbComputeNode.cpp
Line:INTEGER:497
Function:CHARACTER:ImbComputeNode::evaluate
Type:CHARACTER:ComIbmComputeNode
Name:CHARACTER:CreateRTTransaction_flow#FCMComposite_1_4
Label:CHARACTER:CreateRTTransaction_flow.PARSEXML
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Caught exception and rethrowing
RecoverableException
File:CHARACTER:F:\build\slot2\S000_P\src\DataFlowEngine\ImbRdl\ImbRdlStatementGroup.cpp
Line:INTEGER:666
Function:CHARACTER:SqlStatementGroup::execute
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2488
Text:CHARACTER:Error detected, rethrowing
Insert
Type:INTEGER:5
Text:CHARACTER:.CreateRTTransaction_flow_PARSEXML.Main
Insert
Type:INTEGER:5
Text:CHARACTER:9.3
Insert
Type:INTEGER:5
Text:CHARACTER:CREATE LASTCHILD OF creationPtr DOMAIN 'XMLNSC' PARSE(InputRoot.XMLNSC.(XMLNSC.CDataField)CreateRTTransaction, InputProperties.Encoding, InputProperties.CodedCharSetId);
RecoverableException
File:CHARACTER:F:\build\slot2\S000_P\src\DataFlowEngine\ImbRdl\ImbRdlTreeStatements.cpp
Line:INTEGER:191
Function:CHARACTER:SqlCreateFieldStatement::execute
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2906
Text:CHARACTER:
Insert
Type:INTEGER:5
Text:CHARACTER:.CreateRTTransaction_flow_PARSEXML.Main
Insert
Type:INTEGER:5
Text:CHARACTER:9.3
Insert
Type:INTEGER:5
Text:CHARACTER:NULL
Insert
Type:INTEGER:5
Text:CHARACTER:BITSTREAM
Insert
Type:INTEGER:5
Text:CHARACTER:CREATE
Insert
Type:INTEGER:5
Text:CHARACTER:CHARACTER, BIT, BLOB
Insert
Type:INTEGER:5
Text:CHARACTER:NULL |
|
|
Back to top |
|
 |
Vitor |
Posted: Fri Oct 24, 2014 5:03 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
A few points occur:
what version of WMB are you using?
why are you talking about a message set in connection with XML data?
what does the WSDL look like for this web service?
Also if that's an exerpt from the user trace, that's a very odd result message. Not least because the XML is not well formed. Also the "CData" isn't enclosed in anything that looks like a containing document, nor it it identified by the trace as CData. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Oct 24, 2014 5:09 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
An xsd is more or less a message set - assuming mediocre English skills.
Version of Broker is important - although discussion of "service" suggests it's v8 or v9.
It would be helpful to see the actual input message that is being processed into InputRoot.
As Vitor says, the field in the trace that contains the XML is not marked as being a CDataSection. |
|
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
|
|
|
|