Webservice and boolean

Hi,

In first i’m sorry for my english.

I explain

I have 2 IS, with the same document publishableDoc
In this you have other document and attribute boolean. Like this :
PublishableDoc
–>doc
----->booleanValue (objec boolean not a string)

this document is use in return of webservice

I generate the WSDL and i use it in the second IS for generate Webservice consummer.
But the generating doc publishableDoc is like this :
PublishableDoc
–>doc
----->booleanValue (string with content type boolean)

But when i call Webservice with my first doc i have this error :
Type mismatch, String expected

What is the problem? how can i resolved it?

Set the Java Wrapper type on the Object "booleanValue"to java.lang.Boolean and then regenerate the WSDL.

Cheers,
Akshith

This doc is doc generate by the wsdl in webmethods.

Can you post a sample code?

I m sorry but i can’t.

I explain

first IS
Doc is :
PublishableDoc
–>doc
----->booleanValue (objec boolean not a string) wrapper boolean

And flow service use in a webservice provider return this doc.
With this Webservices i generate WSDL.

Second IS
I use WSLD of my first is for generate Webservice consummer
And he generate this doc (DOC A)
PublishableDoc
–>doc
----->booleanValue (string with content type boolean)

And in this IS i have also :
the document of first IS (DOC B)
PublishableDoc
–>doc
----->booleanValue (objec boolean not a string) wrapper boolean

On the second IS when i map DOC A in DOC B and i call webservice i have this error : Type mismatch, String expected

In the web service provider you’ll need/want to convert the Boolean object to a string (with content type boolean) before returning it to the caller. Passing objects around via web services is not a good practice. In other words, don’t use the publishable doc type as the message format of the web service. Define a message that uses strings (with type contraints as desired) instead.

Thanks for this reply.

I change the document used in my WS