Hi all, I'm analizing the WebServices of an application with the Mindreef SOAPscope tool. I'm trying to make those WebServices be compatible
with "WS-I Basic Profile 1.0" and "WS-I Basic Profile 1.1 + SOAP Binding Profile 1.0" but I'm finding several flaws I would like to correct. I have
solved the ones I knew but there are some I dont know how to fix. For example:
And the xml of the wsdl file generated for the server is:
I should edit the wsdd file I suppose but I'm not sure how to fix the namespace trouble from there. All the help will be appreciated, thanks ;).
with "WS-I Basic Profile 1.0" and "WS-I Basic Profile 1.1 + SOAP Binding Profile 1.0" but I'm finding several flaws I would like to correct. I have
solved the ones I knew but there are some I dont know how to fix. For example:
Code:
XSD Schema Validation XSD Validation Category: Basic Quality Check Schema validation error on node xsd:element Error resolving component 'ns2:CH3UnknownCodeSystem'. It was detected that 'ns2:CH3UnknownCodeSystem' is in namespace 'http://exception.vapi.cts.ch3.maiden.com', but components from this namespace are not referenceable from schema document 'http://server:8080/cts/services/VocabularyBrowserService?WSDL&mindreefFragmentId=622604'. If this is the incorrect namespace, perhaps the prefix of 'ns2:CH3UnknownCodeSystem' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'http://server:8080/cts/services/VocabularyBrowserService?WSDL&mindreefFragmentId=622604'.
Code:
<xsd:schema targetNamespace="http://vapi.cts.ch3.maiden.com" elementFormDefault="qualified" attributeFormDefault="qualified"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ns1="http://CTSVAPI.hl7.org"
xmlns:ns2="http://exception.vapi.cts.ch3.maiden.com"
xmlns:ns3="http://exception.cts.ch3.maiden.com"
xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"
xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding"
xmlns:tns="http://vapi.cts.ch3.maiden.com"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/">
<xsd:element name="in0" type="ns1:ConceptId" />
<xsd:element name="in1" type="xsd:string" />
<xsd:element name="in2" type="xsd:boolean" />
<xsd:element name="in3" type="xsd:boolean" />
<xsd:element name="in4" type="xsd:string" />
<xsd:element name="in5" type="xsd:int" />
<xsd:element name="in6" type="xsd:int" />
<xsd:complexType name="ArrayOfString">
<xsd:sequence>
<xsd:element name="string" type="xsd:string" nillable="true" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="lookupCodeExpansionout" type="ns1:ArrayOfRelatedCode" />
<xsd:element name="CH3UnknownCodeSystem" type="ns2:CH3UnknownCodeSystem" />
<xsd:element name="CH3UnknownRelationshipCode" type="ns2:CH3UnknownRelationshipCode" />
<xsd:element name="CH3UnknownLanguageCode" type="ns2:CH3UnknownLanguageCode" />
<xsd:element name="CH3UnexpectedError" type="ns2:CH3UnexpectedError" />
<xsd:element name="CH3TimeoutError" type="ns2:CH3TimeoutError" />
<xsd:element name="CH3UnknownConceptCode" type="ns2:CH3UnknownConceptCode" />
<xsd:element name="lookupCompleteCodedConceptout" type="ns1:CompleteCodedConceptDescription" />
<xsd:element name="CH3AxisFault" type="ns3:CH3AxisFault" />
</xsd:schema>
...
<wsdl:message name="lookupCodeExpansionRequest">
<wsdl:part element="tns:in0" name="in0" />
<wsdl:part element="tns:in1" name="in1" />
<wsdl:part element="tns:in2" name="in2" />
<wsdl:part element="tns:in3" name="in3" />
<wsdl:part element="tns:in4" name="in4" />
<wsdl:part element="tns:in5" name="in5" />
<wsdl:part element="tns:in6" name="in6" />
</wsdl:message>
...