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 » MB Toolkit Test - Invalid XML character 0xffffffff

Post new topic  Reply to topic
 MB Toolkit Test - Invalid XML character 0xffffffff « View previous topic :: View next topic » 
Author Message
Sovesky
PostPosted: Wed Sep 18, 2013 3:16 am    Post subject: MB Toolkit Test - Invalid XML character 0xffffffff Reply with quote

Novice

Joined: 30 Aug 2013
Posts: 17

I want to test a web service I'm developing, using the "Test..." feature of WMB Toolkit 8.0.0.2.

The input to my web service:

Code:

<?xml version="1.0" encoding="UTF-8"?>
<tns0:Envelope
xmlns:int0="IntervenienteTypeBPM" xmlns:tns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns1="Entities"
xmlns:tns2="TipologiaTypeBPM"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <tns0:Header/>
  <tns0:Body>
    <tns1:NewEntidade>
            <int0:type>
              <tns2:id>1</tns2:id>
              <tns2:code>0000</tns2:code>
              <tns2:description>Não especificada</tns2:description>
            </int0:type>
    </tns1:NewEntidade>
  </tns0:Body>
</tns0:Envelope>


Since I'm sending a non-ASCII character, MB is throwing an exception at the beginning of the flow (in SOAP Input) saying:

Code:
An invalid XML character (Unicode: 0xffffffff) was found in the element content of the document.


This error is referring my description element. Since I'm sending in the Envelope encoding="UTF-8" should there be a problem?

I also confirmed that my workspace and project are using UTF-8.

Am I missing something?


Last edited by Sovesky on Wed Sep 18, 2013 3:26 am; edited 2 times in total
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Sep 18, 2013 3:24 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Your XML does not pass validation : </int0:tipo> vs </int0:type>
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Sovesky
PostPosted: Wed Sep 18, 2013 3:27 am    Post subject: Reply with quote

Novice

Joined: 30 Aug 2013
Posts: 17

lancelotlinc wrote:
Your XML does not pass validation : </int0:tipo> vs </int0:type>


It was a typo. My message is bigger than that, and in this post I decided to translate it from portuguese to english. Anyway, it is edited
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 18, 2013 3:46 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Are you sure it's complaining about the description element?

Are you sure the XML document is actually in UTF-8?
Back to top
View user's profile Send private message
Sovesky
PostPosted: Wed Sep 18, 2013 3:56 am    Post subject: Reply with quote

Novice

Joined: 30 Aug 2013
Posts: 17

mqjeff wrote:
Are you sure it's complaining about the description element?


100% sure. If I replace "Não" with "Nao" I can easily run my flow without a problem.

mqjeff wrote:
Are you sure the XML document is actually in UTF-8?


Actually I don't know. I made an invocation via SOAPUI, using UTF-8 and the verified that the flow is working!

I thought this could be a problem with the Toolkit, therefore I checked Eclipse's encoding, my workspace's encoding and my project's encoding and it is using UTF-8. Am I missing anything else?

I basically created my input on notepad++, pasted it on the Test... window, and it is giving me the error.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Sep 18, 2013 3:58 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

SOAPUI is a much better tool than Test. I would stick with that.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Sep 18, 2013 4:29 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I don't think there's anything wrong with the test tool being used.

I don't know Notepad++ well enough to know if it's created the text you're copying/pasting as UTF-8 or not.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Sep 18, 2013 4:38 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

mqjeff wrote:
I don't think there's anything wrong with the test tool being used.

I don't know Notepad++ well enough to know if it's created the text you're copying/pasting as UTF-8 or not.


I've never had any issues with Notepad++ or ultraEdit saving files in UTF-8

make sure you have told it to default to utf
http://superuser.com/questions/292086/how-can-i-enforce-so-notepad-uses-utf-8-every-time-i-create-a-new-file
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Sovesky
PostPosted: Wed Sep 18, 2013 5:32 am    Post subject: Reply with quote

Novice

Joined: 30 Aug 2013
Posts: 17

I was copy-pasting my input XML on the the Text Editor, and getting that error.

I tried saving an .xml file encoded with UTF-8 and sending it to the Message Broker Test Client instead of just copying the text xml itself, and now it works.

Conclusion: The Message Broker Test Client uses a text window that is using some non UTF-8 encoding.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Sep 18, 2013 5:36 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

A good number of us around here use Rfhutil for this sort of work.
It is part of the IH03 support pack. Handles UTF-8 files very well.

_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Sep 18, 2013 5:37 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

smdavies99 wrote:
A good number of us around here use Rfhutil for this sort of work.
It is part of the IH03 support pack. Handles UTF-8 files very well.


I was not aware that RfhUtil supports Web Services ? Is this a new feature ?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
JosephGramig
PostPosted: Wed Sep 18, 2013 7:33 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

If you really want to get funky, you can switch the perspective to "Web".

Then right click your WSDL file and then "Web Services->Test with Web Services Explorer".

Have Fun!

I wonder what the RAD folks do...
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MB Toolkit Test - Invalid XML character 0xffffffff
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.