• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

WSDL file

 
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello guys,

I am extracting wsdl file in eclipse but it gives me the folloeing validation error:

cvc-complex- type 4 : Attribute 'Part' must appear on element 'mime:content'

can you please explain this error. It gives me the error even i fix it,

thanks and regards

gurpreet
 
Ranch Hand
Posts: 8946
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Attribute Part is required. Can toy add that attribute and let us know.
 
Ranch Hand
Posts: 193
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having a problem that relates to this thread. I am new to WSDLs and need a little more hand holding (if no one minds) Anyway, here is the code whish causes me an errors:



These are the errors which Eclipse reports:
Description Resource Path Location Type
cvc-attribute.3: The value '' of attribute 'part' on element 'mime:content' is not valid with respect to its type, 'NMTOKEN'. Axis.wsdl new_MyProject/WebContent/wsdl line 87 WSDL Problem
cvc-attribute.3: The value '' of attribute 'part' on element 'mime:content' is not valid with respect to its type, 'NMTOKEN'. Axis.wsdl new_MyProject/WebContent/wsdl line 90 WSDL Problem
cvc-complex-type.3.2.2: Attribute 'required' is not allowed to appear in element 'mime:content'. Axis.wsdl new_MyProject/WebContent/wsdl line 87 WSDL Problem
cvc-complex-type.3.2.2: Attribute 'required' is not allowed to appear in element 'mime:content'. Axis.wsdl new_MyProject/WebContent/wsdl line 90 WSDL Problem
cvc-datatype-valid.1.2.1: '' is not a valid value for 'NMTOKEN'. Axis.wsdl new_MyProject/WebContent/wsdl line 87 WSDL Problem
cvc-datatype-valid.1.2.1: '' is not a valid value for 'NMTOKEN'. Axis.wsdl new_MyProject/WebContent/wsdl line 90 WSDL Problem


Any help would be very much appreciated. Thank you.

Higgledy


 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
@Higgledy:
If the InfoSent and ReturnedInfo messages only contains one single message part, then the part attribute in the <mime:content> element is optional. If the part attribute is present, it must contain the name of the message part that the <mime:content> element is declared for.

@Saini:
As before, the part attribute must be present if a message contains more than a single message part. You have to add the part attribute to the <mime:content> element that gives you the error.

Check this link for more details: http://www.w3.org/TR/wsdl#_Toc492291084
Best wishes!
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic