MQSeries.net
Search
Tech Exchange
Education
Certifications
Library
Info Center
SupportPacs
LinkedIn
Search
FAQ
 Â
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
»
Namespaces error using junit to test a flow
Namespaces error using junit to test a flow
«
View previous topic
::
View next topic
»
Author
Message
kappc
Posted: Wed Jun 04, 2008 9:53 pm
Post subject: Namespaces error using junit to test a flow
Newbie
Joined: 04 Jun 2008
Posts: 1
Hi All,
I’m trying to test a flow using Junit testing. Putting a message on a queue and doing a partial file compare when i recieve the responce.
The problem im having is that the namespaces I set up is not being recognized in the XML.
The error i get is : Prefix must resolve to a name.
Please help.
Thanks
Charles
XML :
<?xml version ="1.0" encoding = "UTF-8"?>
<tests xmlns:NS1="http://schemas.xmlsoap.org/soap/envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd='"http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://absa.co.za/CASA/screenprimaryClient" ../../../../../WBIMB_RegulatoryComMsgSet/screenPrimaryClient.xsd'
xmlns:tns="http://absa.co.za/CASA/screenprimaryClient">
<class name="CASAIntegrationTest">
<params> <param name="hashInit" type="java.util.Hashtable" key-type="java.lang.String" value-type="java.lang.String"> <param name="k1">value1</param>
<param name="k2">value2</param>
<param name="k3">value3</param>
<param name="k4">value4</param>
<param name="k5">value5</param>
</param>
</params>
<method name="partialFileCompare" test-case="ScreenPrimaryClientReq_Normal">
<params>
<param name="requestQueue" type="java.lang.String">XXXPRISE.CDM.RCV</param>
<param name="replyQueue" type="java.lang.String">XXXXPRISE.AUTOMATED.TESTING.RCV</param>
<param name="requestFile" type="java.lang.String">ScreenPrimaryClientRequest.xml</param>
<param name="imsEncoding" type="java.lang.Boolean">false</param>
<param name="trancode" type="java.lang.String"></param>
<param name="persistence" type="java.lang.String">1</param>
</params>
<asserts >
<assert name="Envelope/NS1:Body/tns:screenPrimaryClientReply/tns:statusCode" type="java.lang.String" action="EQUALS">I</assert>
[/color] </asserts>
</method>
</class>
</tests>
Back to top
kimbert
Posted: Thu Jun 05, 2008 3:15 am
Post subject:
Jedi Council
Joined: 29 Jul 2003
Posts: 5542
Location: Southampton
You need an xmlns attribute. If you don't understand what that is, you need to find out quickly:
http://www.w3schools.com/XML/xml_namespaces.asp
Back to top
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
Page
1
of
1
MQSeries.net Forum Index
»
WebSphere Message Broker (ACE) Support
»
Namespaces error using junit to test a flow
Jump to:
Select a forum
General Discussion
----------------
Read First for All New to IBM MQ, Integration, Messaging, WebSphere - Only Moderators Post Here
General Discussion
Messaging and Integration Technologies FAQ
News/Updates
Links
Job Seekers
Job Postings
General Forums Information
Requirements, Wishlists & Enhancement Requests
----------------
RFEs - Requirements, Wishlists & Enhancement Requests - Open Forum
IBM MQ Support
----------------
General IBM MQ Support
IBM MQ Cloud and SaaS, Cloud Hybrid and Containers
IBM MQ Installation/Configuration Support
Clustering
IBM MQ Telemetry / Low Latency Messaging / Everyplace
Mainframe, CICS, TXSeries
iSeries, OpenVMS, HP-NSS
IBM MQ Performance Monitoring
IBM MQ Security
IBM MQ Development
----------------
IBM MQ Java / JMS
IBM MQ API Support
Multiphase Commit
User Exits
WebSphere Message Broker
----------------
WebSphere Message Broker (ACE) Support
WMB Patterns Repository - Available for Download
WebSphere Application Server
----------------
WebSphere Application Server
Web Services
----------------
WebSphere DataPower
Products that use IBM MQ
----------------
Workflow Engines - IBM MQ Workflow & Business Process Choreographer
WebSphere Process Server (WID/WPS/WAS+)
WebSphere Interchange Server + Adapters
IBM MQ File Transfer Edition
Resources, Files, Samples, Archives, Misc
----------------
Files and Code Samples
Archives - All
Challenge Forum
Sponsored Forums
----------------
Cressida Technology
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.