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 XML and Related Technologies and the fly likes complexType  name attribute 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 » Engineering » XML and Related Technologies
Bookmark "complexType  name attribute" Watch "complexType  name attribute" New topic

complexType name attribute

ved gunjan
Ranch Hand

Joined: May 17, 2003
Posts: 86
Hi! All
I'm trying to make a schema of a WSDL file.Given below are the port types(interfaces exposed by a web service)definition of the services and the parterner link type definition.

This is the port type definitions

<!-- port type definitions -->
<portType name="loanServicePT">
<operation name="request">
<input message="lns:creditInformationMessage"/>
<output message="lns:approvalMessage"/>
<fault name="unableToHandleRequest"

<portType name="riskAssessmentPT">
<operation name="check">
<input message="lns:creditInformationMessage"/>
<output message="lns:riskAssessmentMessage"/>
<fault name="loanProcessFault"

<portType name="loanApprovalPT">
<operation name="approve">
<input message="lns:creditInformationMessage"/>
<output message="lns:approvalMessage"/>
<fault name="loanProcessFault"

This is the partner link definitions
<!--partner link type definitions -->

<plnk artnerLinkType name="loanPartnerLinkType">
<plnk:role name="loanService">
<plnk ortType name="lns:loanServicePT"/>
</plnk artnerLinkType>

<plnk artnerLinkType name="loanApprovalLinkType">
<plnk:role name="approver">
<plnk ortType name="lns:loanApprovalPT"/>
</plnk artnerLinkType>

<plnk artnerLinkType name="riskAssessmentLinkType">
<plnk:role name="assessor">
<plnk ortType name="lns:riskAssessmentPT"/>
</plnk artnerLinkType>

when a schema is generated the partner link type definitions is changed into a complexType
<xs:cmplexType name="plnk artnerLinkType">
Now the error is that the name attribute takes in "NCName" type value and the value which is given to it while generating a schema is of "Qname" type.

can any one please tell me how to change/what modifications are needed in the schema to correct it.
(Or in other words how do we change a "QName" value to a "NCName")

Please help is needed urgently.Any input will be highly appreciated.
Many Regards
It is sorta covered in the JavaRanch Style Guide.
subject: complexType name attribute
Similar Threads
schema generation
schema error
Oracle BPEL result SOAP message
Input as text and output as xml
http post with bpel