« Return to Thread: Non unique body parts! ??

Non unique body parts! ??

by Felipe Gaucho :: Rate this Message:

Reply to Author | View in Thread

I am defining a WSDL that import messages of another WSDL (reuse of
messages).., but the wsimport throws an warning: Non unique body
parts!

is there a way to reuse messages without this warning ? can I ignore
the warning ?

It seems the ID of the message is its contents and not it name.. is it correct ?

* the wsdl compiles fine but some operations are failing.. I didn't
have time to check if the reason i my messages reuse....

For example:

        <wsdl:portType name="CejugClassifiedsAdmin">
                <wsdl:operation name="CreateCategoryOperation">
                        <wsdl:input name="NewCategory" message="common-wsdl:Category" />
                        <wsdl:output ... />
                </wsdl:operation>

                <wsdl:operation name="UpdateCategoryOperation">
                        <wsdl:input name="CategoryToMerge" message="common-wsdl:Category" />
                        <wsdl:output ... />
                </wsdl:operation>
          ........


[WARNING] Non unique body parts! In a port, as per BP 1.1 R2710
operations must have unique operation signaure on the wire for
successful dispatch. In port CejugClassifiedsAdmin, Operations
"UpdateAdvertisementTypeOperation" and
"CreateAdvertisementTypeOperation" have the same request body block
{http://cejug-classifieds.dev.java.net/metadata/common}AdvertisementType.
Method dispatching may fail, runtime will try to dispatch using
SOAPAction

my ANT task:

                <wsimport debug="true" verbose="${verbose}" keep="true"
extension="true" destdir="${generated.dir}"
package="${service.wsdl.generated.package}"
wsdl="${service.admin.wsdl}"
wsdllocation="${service.admin.wsdllocation}">
                        <produces dir="${generated.dir}"
includes="${service.wsdl.generated.package}/**/*.java" />
                </wsimport>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: Non unique body parts! ??