Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

complexType name attribute

 
ved gunjan
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
message="lns:errorMessage"/>
</operation>
</portType>

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

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


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

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

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

<plnk artnerLinkType name="riskAssessmentLinkType">
<plnk:role name="assessor">
<plnk ortType name="lns:riskAssessmentPT"/>
</plnk:role>
</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
Ved
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic