aspose file tools*
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "complexType  name attribute" Watch "complexType  name attribute" New topic
Author

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"
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: complexType name attribute