This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes WSDL file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL file" Watch "WSDL file" New topic
Author

WSDL file

Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
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
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8903

Attribute Part is required. Can toy add that attribute and let us know.


Groovy
Higgledy Smith
Ranch Hand

Joined: Mar 07, 2006
Posts: 192
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


Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: WSDL file
 
Similar Threads
Web service proxy client
Installing Apache Axis on Tomcat 4.0
deploying a Java1.4 app in Tomcat 5.5.25
problem in generating client stub
reading soap-envelop messages