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 » Trying to set SOAP Reply

Post new topic  Reply to topic
 Trying to set SOAP Reply « View previous topic :: View next topic » 
Author Message
lamtbs
PostPosted: Fri Jun 20, 2008 8:18 am    Post subject: Trying to set SOAP Reply Reply with quote

Acolyte

Joined: 07 Nov 2005
Posts: 57
Location: Hong Kong

Hi,

I'm trying to set a SOAPReply message, but got error BIP5016E saying that ... pls refer to the trace below.

In the trace XMLNSC.Request.MemberNum, XMLNSC.Request.Points are copied automatically from input.
Then I tried to add the tag by set XMLNSC.Response.Result = 'Y'. This is the one that cause the error, saying that "Response" is not a valid top level "folder"

I've checked the schema that there is no typo. Why did the SOAPReply node reject this? The ${Root} in the follow trace is right before I enter the SOAPReply node.

Any idea? Thanks!


2008-06-20 10:34:55.195850 2796 UserTrace BIP4007I: Message propagated to 'out' terminal of node 'SJM_MsgFlowProjFlow.SGM'.
2008-06-20 10:34:55.195957 2796 UserTrace BIP2539I: Node 'SJM_MsgFlowProjFlow.Trace': Evaluating expression ''Root'' at ('', '1.3'). This resolved to ''Root''. The result was ''ROW... Root Element Type=16777216 NameSpace='' Name='Root' Value=NULL''.
2008-06-20 10:34:55.197372 2796 UserTrace BIP4060I: Data ''(
(0x01000000):Properties = (
(0x03000000):MessageSet = 'SJM_MsgFlowProjMessageSet'
(0x03000000):MessageType = ''
(0x03000000):MessageFormat = ''
(0x03000000):Encoding = 546
(0x03000000):CodedCharSetId = 1208
(0x03000000):Transactional = FALSE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2008-06-20 15:34:35.176'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'SOAP-AXIS2'
(0x03000000):Topic = NULL
(0x03000000):ContentType = 'text/xml;charset=UTF-8'
(0x03000000):IdentitySourceType = ''
(0x03000000):IdentitySourceToken = ''
(0x03000000):IdentitySourcePassword = ''
(0x03000000):IdentitySourceIssuedBy = ''
(0x03000000):IdentityMappedType = ''
(0x03000000):IdentityMappedToken = ''
(0x03000000):IdentityMappedPassword = ''
(0x03000000):IdentityMappedIssuedBy = ''
)
(0x01000000):HTTPInputHeader = (
(0x03000000):X-Original-HTTP-Command = 'POST http://localhost:7800/Services/AddMembershipPointService HTTP/1.1'
(0x03000000):Content-Type = 'text/xml;charset=UTF-8'
(0x03000000):SOAPAction = '"/Services/AddMembershipPointService"'
(0x03000000):User-Agent = 'Jakarta Commons-HttpClient/3.0.1'
(0x03000000):Host = 'localhost:7800'
(0x03000000):Content-Length = '366'
(0x03000000):X-Server-Name = 'localhost'
(0x03000000):X-Server-Port = '7800'
(0x03000000):X-Query-String = ''
(0x03000000):X-Scheme = 'http'
)
(0x01000000):XMLNSC = (
(0x01000000)http://www.SJM.com/schemas/SJM/SharedResources/Schema/XML/MemberPoint.xsd:Request = (
(0x03000000)http://www.SJM.com/schemas/SJM/SharedResources/Schema/XML/MemberPoint.xsd:MemberNum = '123459'
(0x03000000)http://www.SJM.com/schemas/SJM/SharedResources/Schema/XML/MemberPoint.xsd:Points = 100
)
(0x01000000)http://www.SJM.com/schemas/SJM/SharedResources/Schema/XML/MemberPoint.xsd:Response = (
(0x03000000)http://www.SJM.com/schemas/SJM/SharedResources/Schema/XML/MemberPoint.xsd:Result = 'Y'
)
)
)
'' from trace node 'SJM_MsgFlowProjFlow.Trace'.
The trace node 'SJM_MsgFlowProjFlow.Trace' has output the specified trace data.
This is an information message provided by the message flow designer. The user response will be determined by the local environment.
2008-06-20 10:34:55.197456 2796 UserTrace BIP4067I: Message propagated to output terminal for trace node 'SJM_MsgFlowProjFlow.Trace'.
The trace node 'SJM_MsgFlowProjFlow.Trace' has received a message and is propagating it to any nodes connected to its output terminal.
No user action required.
2008-06-20 10:34:55.199600 2796 Error BIP2628E: Exception condition detected on input node 'SJM_MsgFlowProjFlow.Input'.
The input node 'SJM_MsgFlowProjFlow.Input' detected an error whilst processing a message. The message flow has been rolled-back and, if the message was being processed in a unit of work, it will remain on the input queue to be processed again. Following messages will indicate the cause of this exception.
Check the error messages which follow to determine why the exception was generated, and take action as described by those messages.
2008-06-20 10:34:55.199638 2796 RecoverableException BIP2230E: Error detected whilst processing a message in node 'SJM_MsgFlowProjFlow.Route'.
The message broker detected an error whilst processing a message in node 'SJM_MsgFlowProjFlow.Route'. An exception has been thrown to cut short the processing of the message.
See the following messages for details of the error.
2008-06-20 10:34:55.199653 2796 RecoverableException BIP2488E: ('.SJM_MsgFlowProjFlow_Route.Main', '13.5') Error detected whilst executing the SQL statement ''PROPAGATE TO TERMINAL 'out2' FINALIZE DEFAULT DELETE DEFAULT;''.
The message broker detected an error whilst executing the given statement. An exception has been thrown to cut short the SQL program.
See the following messages for details of the error.
2008-06-20 10:34:55.199672 2796 RecoverableException BIP2230E: Error detected whilst processing a message in node 'SJM_MsgFlowProjFlow.Reply'.
The message broker detected an error whilst processing a message in node 'SJM_MsgFlowProjFlow.Reply'. An exception has been thrown to cut short the processing of the message.
See the following messages for details of the error.
2008-06-20 10:34:55.199684 2796 ParserException BIP5010E: XML Writing Errors have occurred.
Errors have occurred during writing of XML.
Review further error messages for an indication to the cause of the errors.
2008-06-20 10:34:55.199756 2796 ParserException BIP5016E: The item ''Response'' of type ''folderType'' is not one of the expected types for a top level element at this point in the XML document.
A top level element was found which did not have type xmlComment or xmlProcessingInstruction.
Check that the message is well formed and adheres to the XML specification, and that the modifications made to the message in the message flow are also consistent with the XML specification.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
vsr
PostPosted: Fri Jun 20, 2008 10:37 am    Post subject: Re: Trying to set SOAP Reply Reply with quote

Centurion

Joined: 04 Apr 2006
Posts: 104

lamtbs wrote:
ParserException BIP5016E: The item ''Response'' of type ''folderType'' is not one of the expected types for a top level element at this point in the XML document.
A top level element was found which did not have type xmlComment or xmlProcessingInstruction.
Check that the message is well formed and adheres to the XML specification, and that the modifications made to the message in the message flow are also consistent with the XML specification.


lamtbs wrote:
(0x01000000):XMLNSC = (
(0x01000000)http://www.SJM.com/schemas/SJM/SharedResources/Schema/XML/MemberPoint.xsd:Request = (
(0x03000000)http://www.SJM.com/schemas/SJM/SharedResources/Schema/XML/MemberPoint.xsd:MemberNum = '123459'
(0x03000000)http://www.SJM.com/schemas/SJM/SharedResources/Schema/XML/MemberPoint.xsd:Points = 100
)
(0x01000000)http://www.SJM.com/schemas/SJM/SharedResources/Schema/XML/MemberPoint.xsd:Response = (
(0x03000000)http://www.SJM.com/schemas/SJM/SharedResources/Schema/XML/MemberPoint.xsd:Result = 'Y'
)
)


It looks that you are creating a soap response like this :
Code:
<Request>
    <MemberNumber>12359</MemberNumber>
    <Points>100</Points>
</Request>
<Response>
     <Result>Y</Result>
</Response>


I see that there is no top root element. I may be wrong but did you try passing only the <Response> element before SOAPReply node?
Back to top
View user's profile Send private message
lamtbs
PostPosted: Fri Jun 20, 2008 5:02 pm    Post subject: Reply with quote

Acolyte

Joined: 07 Nov 2005
Posts: 57
Location: Hong Kong

Thank you, you're right

I should set the XMLNSC.Request to NULL to clear it and make XMLNSC.Response the top level.

Thanks!!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Trying to set SOAP Reply
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.