This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Valid identifiers in WSDL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Valid identifiers in WSDL " Watch "Valid identifiers in WSDL " New topic

Valid identifiers in WSDL

Sathees Tharmarajah

Joined: Aug 09, 2009
Posts: 20

Can anyone help on this ?

question is what are the valid identifiers in WSDL or in SOAP specification ?

I had problem in Developing services from WSDL file in METRO WS. it says the could not file the Porttype when deploying. the PortType was TEST_ServerPortType. when I removed "_" its working.

thanks in advance

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
First of all, WSDL is defined using XML, so there is a XML schema that defines the format of a valid WSDL document, including PortType names.
The XML schema defining WSDL 1.2 can be found at:
If we look at the schema, we can see that the name attribute in a PortType element is of the type xs:NCName.
The NCName type is defined as a name that is not specified with a namespace prefix.
The definition of NCName looks like this:
Etc etc.
Using the above reasoning, you can examine what the allowed values are in the different parts of a WSDL.

I strongly suspect that this is not a problem with the WSDL, but rather a problem with the web service stack you are using not being able to support a name that may be allowed by the WSDL definition.
Best wishes!

My free books and tutorials:
Sathees Tharmarajah

Joined: Aug 09, 2009
Posts: 20
thank you Ivan for your valuable reply. It conformed my doubt that "_" in identifier would be problem with METRO WS framework.
I agree. Here's the link:
subject: Valid identifiers in WSDL
Similar Threads
please help to explain this sentence in the book of MH
element of WSDL file
Problem when create client for web services because of XSD import url
Question on WSDL portType
How to specify multiple portTypes in wsdl