|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Parsing Unprefixed SOAP Body in Soap Domain |
« View previous topic :: View next topic » |
Author |
Message
|
LazyBoy |
Posted: Mon Aug 10, 2009 7:38 am Post subject: Parsing Unprefixed SOAP Body in Soap Domain |
|
|
Voyager
Joined: 04 May 2006 Posts: 78
|
Hi,
I am using WMB 6.1.0.4.
I need to parse a soap body message without namespace prefix in SOAP Domain:
For ex:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" >
<soapenv:Header/>
<soapenv:Body>
<MYMESSAGE xmlns="MYURI">
<str1>STR</str1>
<str2>STR</str2>
</MYMESSAGE>
</soapenv:Body>
</soapenv:Envelope>
Though I have created the message definition from type wsdl specifies to use unprefixed namespace I am getting error parsing the above message.
Here is my wsdl subscript:
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns="MYURI" targetNamespace="MYURI">
<wsdl:types>
<s:schema elementFormDefault="unqualified" xmlns="MYURI" targetNamespace="MYURI" attributeFormDefault="unqualified">
I am getting following error:
XML schema validation error: 'cvc-complex-type.2.4.g: The content of element "SOAP_Domain_Msg" is not complete. Empty tag is not expected since the content type is not 'empty'.'
Element: '/XMLNSC'
Internal error codes: 5010, 2.
Line: 1, Column: 19
This error was reported by the XMLNSC parser. The message tree is not valid according to the message definitions in the message set.
The message tree is not valid according to the message definition files in the message set.
- Check that the elements and attributes in the message tree are declared in the message set.
- Check that all attributes in the message tree have been cast as (XMLNSC.Attribute) in the message tree.
- Check that any values of types gDate, gYear, gMonth, gDay, gYearMonth, gMonthDay have been cast as (XMLNSC.gDate), (XMLNSC.gYear) and so on, in the message tree.
- Check that any values of type base64Binary have been cast as (XMLNSC.base64Binary) in the message tree.
The message tree is converted to an XML bitstream before being validated. The line and column number are the coordinates of the error
Any Inputs on how to parse unprefixed SOAP Message would be grateful?
Thanks. |
|
Back to top |
|
 |
kimbert |
Posted: Mon Aug 10, 2009 1:20 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Please use [code] tags when posting XML. It makes it easier for those who have to read your posts.
There is an empty element where there should be a non-empty element. Without seeing the input XML and the message definition, I can't say any more than that.
I don't see 'SOAP_Domain_Msg' anywhere in your XML. Are you sure that you posted the correct snippet? |
|
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
|
|
|
|