• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Please Help: Namespaces

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I`m trying to setup a JUNIT test in eclips and i have some problems with the namespaces. In the asserts section i cant use the namespace. I get the following error : Prefix must resolve to a namespace: NS1

Can someone please help ??

Thanks
Charles


<?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="k3">value3</param>
<param name="k4">value3</param>
<param name="k5">value5</param>
<param name="k2">value2</param>
</param>
</params>

<method name="partialFileCompare" test-case="ScreenPrimaryClientReq_Normal">
<params>
<param name="requestQueue" type="java.lang.String">ENTERPRISE.CDM.RCV</param>
<param name="replyQueue" type="java.lang.String">ENTERPRISE.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>
</asserts>
</method>
</class>
</tests>
 
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This seems to be a question about JUnit. Let's try moving it to that forum and see if it gets any answers.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This doesn't look like an ordinary JUnit test to me. Are you using some third party extension?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic