Skip to main content

"has multiple binding" error

2 replies [Last post]
marlor
Offline
Joined: 2006-02-15

I was working with the JAXWS (& MIME) example located in
...\jwsdp-2.0\jaxws\samples\mime
which I copied also to the following URL for your ease. http://pub.cryptosense.com/hello.wsdl

I can generate the code using wsimport.
The problem is when I remove all the "claimForm.." related parts (element, msg, port, binding), it gives an error:

//"abstract operation "echoData" binding, part "data" has multiple binding."//

what does "claimForm" to do with "echoData"s MIME? I had the same error with a WSDL which worked fine with previous code generation tools but I get the same error with wsimport.

The following is a WSDL I created just recently and it also gives me the same error with "multiple binding".
http://pub.cryptosense.com/XmlTransaction.wsdl

Any suggestions would be appriciated.

Thanks in advance :)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vivekp
Offline
Joined: 2003-06-10

I tried your wsdl at http://pub.cryptosense.com/XmlTransaction.wsdl. This wsdl is not quite right, in the binding section it tries to bind a wsdl:part to different set of binding. wsimport doesnt allow you to bind a wsdl:part to different binding. See WS- I AP 1.0 profile on this specific issue[1].

To correct it you should bindingyou r soapbind:body to specific part or to none using parts attribute. Here is the modified wsdl:binding section from your wsdl:












































See the "parts" attribute on soap:body to indicate its not bound to any part.

thnaks,

-vivek.

[1]http://www.ws-i.org/Profiles/AttachmentsProfile-1.0-2004-08-24.html#Unbound_portType_Element_Contents

marlor
Offline
Joined: 2006-02-15

thanks that worked great :)