A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
Web Services Certification (SCDJWS/OCEJWSD)
Valid identifiers in WSDL
Joined: Aug 09, 2009
Sep 23, 2011 04:24:38
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
Joined: Oct 04, 2006
Sep 23, 2011 13:29:15
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:
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.
My free books and tutorials:
Joined: Aug 09, 2009
Oct 01, 2011 06:16:40
thank you Ivan for your valuable reply. It conformed my doubt that "_" in identifier would be problem with METRO WS framework.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Valid identifiers in WSDL
How to specify multiple portTypes in wsdl
Question on WSDL portType
Problem when create client for web services because of XSD import url
please help to explain this sentence in the book of MH
element of WSDL file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015