PDA

View Full Version : xsi:nil="true" vs type="xs:string" nillable="true" minOccurs="0" in WSDL


dominique c
05-02-2007, 08:32
Hello,

I have an error with the service 'xmlNodeToDocument' after processing a soap message :

This message contains :
<fixdate xsi:nil="true"/>

wsdl of the input document:
<xsd:element name="fixdate" nillable="true" type="xsd:string" minOccurs="0"/>

The document generated after invoking the service 'xmlNodeToDocument':
<record name="fixdate" javaclass="com.wm.app.b2b.services.CValues">
<value name="@xsi:nil">true</value>
</record>

the error is :
<label>Incorrect flow Error : java.lang.Exception: INVALID List of errors: [0] pathName=/dx:troubleticket/ticket/fixdate errorCode=VV-004 errorMessage=[ISC.0082.9030] Type mismatch, String expected</label>

Is there anybody have an explanation ?

rmg
05-02-2007, 08:54
What are the input params you have set in the xmlNodeToDocument??Did you declared namespace in nsDecl param?? Also what is the value coming in fixdate?? your schema is expecting String type not numeric or objects..

HTH,
RMG

dominique c
05-02-2007, 09:17
thanks for your post

no value for fixdate : <fixdate xsi:nil="true"/> (normally considering as null value.)
nsDecl param:
dx:http://eai/Sav/Genergy/Types

we made a test with xsi:
http://www.w3.org/2001/XMLSchema-instance
as new ns in nsDecl param

with no success.

mcarlson
05-02-2007, 09:19
What version of IS are you using? Have you applied the latest WebSvcsXML fixes?

See this read (http://www.wmusers.com/forum/showthread.php?p=43814&highlight=nillable#post43814) on a related xsi:nil issue.

Mark

dominique c
05-02-2007, 09:29
Thanks a lot

we are using webmethods 6.1.

I'll see the fix that you speek about.

Dominique.