Another Import Service problem

Apr 2, 2009 at 3:19 PM

The MSEimport services wizard is a very interesting tool but we are having someproblems importing a wsdl file using it. <o:p></o:p>

UsingSvcUtil we get no problems but if we try to import it in MSE we get thefollowing error in the logs:<o:p></o:p>

mseTraceSrcError: 0 : An application error occurred in Catalog Service Operation[ImportSchemas]. Error Detail [Exception Information Type[ApplicationException]Source[Microsoft.MSE.Catalog.Module] Message[An error occurred while savingSchema and Objects for Import [Exception Information Type[XmlSchemaException]Source[System.Xml] Message[The 'http://www.w3.org/2001/XMLSchema:schema'element is not declared.] StackTrace[  at System.Xml.Schema.XmlSchemaSet.InternalValidationCallback(Objectsender, ValidationEventArgs e)<o:p></o:p>

   atSystem.Xml.Schema.BaseProcessor.SendValidationEvent(XmlSchemaException e,XmlSeverityType severity)<o:p></o:p>

   atSystem.Xml.Schema.BaseProcessor.SendValidationEvent(XmlSchemaException e)<o:p></o:p>

   atSystem.Xml.Schema.Compiler.CompileElement(XmlSchemaElement xe)<o:p></o:p>

   atSystem.Xml.Schema.Compiler.CompileParticleElements(XmlSchemaComplexTypecomplexType, XmlSchemaParticle particle)<o:p></o:p>

   atSystem.Xml.Schema.Compiler.CompileParticleElements(XmlSchemaComplexTypecomplexType, XmlSchemaParticle particle)<o:p></o:p>

   atSystem.Xml.Schema.Compiler.CompileComplexTypeElements(XmlSchemaComplexTypecomplexType)<o:p></o:p>

   at System.Xml.Schema.Compiler.Compile()<o:p></o:p>

   atSystem.Xml.Schema.Compiler.Execute(XmlSchemaSet schemaSet, SchemaInfoschemaCompiledInfo)<o:p></o:p>

   at System.Xml.Schema.XmlSchemaSet.Compile()<o:p></o:p>

   atMicrosoft.MSE.Catalog.Module.Business.SchemaManager.ImportSchemas(List`1importedSchemas)]]] StackTrace[   atMicrosoft.MSE.Catalog.Module.Business.SchemaManager.ImportSchemas(List`1importedSchemas)<o:p></o:p>

   atMicrosoft.MSE.Catalog.Module.Services.ServiceModel.ImportSchemas(List`1importedSchemas)]]<o:p></o:p>

    DateTime=2009-04-02T13:26:42.6757809Z<o:p></o:p>

<o:p> </o:p>

<o:p> </o:p>

We aretalking a rather big wsdl to transcribe here. If there is any way to send it toyou guys it would be great.<o:p></o:p>

Anyway, hereis a small transcript:<o:p></o:p>

<o:p> </o:p>

<?xmlversion="1.0" encoding="utf-8"?><o:p></o:p>

<wsdl:definitionsxmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"xmlns:tns="Sofinloc.Biz.DocumentArchive.IDocumentArchiveSvc"xmlns:s="http://www.w3.org/2001/XMLSchema"xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"targetNamespace="Sofinloc.Biz.DocumentArchive.IDocumentArchiveSvc"xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"><o:p></o:p>

  <wsdl:documentationxmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Exposes operationsrelated to the contract documents images archive.</wsdl:documentation><o:p></o:p>

  <wsdl:types><o:p></o:p>

    <s:schemaelementFormDefault="qualified"targetNamespace="Sofinloc.Biz.DocumentArchive.IDocumentArchiveSvc"><o:p></o:p>

      <s:importnamespace="http://www.w3.org/2001/XMLSchema" /><o:p></o:p>

      <s:elementname="ListDocuments"><o:p></o:p>

        <s:ccomplexType<o:p></o:p>

          <s:sequence><o:p></o:p>

            <s:elementminOccurs="0" maxOccurs="1" name="requestInfo"type="tns:ListDocumentsRequest" /><o:p></o:p>

          </s:sequence><o:p></o:p>

        </s:ccomplexType<o:p></o:p>

      </s:element><o:p></o:p>

      <s:complexTypename="ListDocumentsRequest"><o:p></o:p>

        <s:sequence><o:p></o:p>

          <s:element minOccurs="1"maxOccurs="1" name="IndexType"type="tns:IndexType" /><o:p></o:p>

          <s:element minOccurs="0"maxOccurs="1" name="IndexValue" /><o:p></o:p>

        </s:sequence><o:p></o:p>

      </s:ccomplexType<o:p></o:p>

      <s:simpleTypename="IndexType"><o:p></o:p>

        <s:restrictionbase="s:string"><o:p></o:p>

          <s:enumerationvalue="Contract" /><o:p></o:p>

          <s:enumerationvalue="Proposal" /><o:p></o:p>

        </s:restriction><o:p></o:p>

      </s:ssimpleType<o:p></o:p>

      <s:complexTypename="ListDocumentsResponse"><o:p></o:p>

        <s:sequence><o:p></o:p>

          <s:element minOccurs="0"maxOccurs="1" name="ResultInfo"type="tns:ResultInfo" /><o:p></o:p>

          <s:element minOccurs="0"maxOccurs="1" name="DocumentsInfo"type="tns:ArrayOfDocumentInfo" /><o:p></o:p>

        </s:sequence><o:p></o:p>

      </s:ccomplexType

<o:p> </o:p>

<o:p> .</o:p>

.<o:p></o:p>

(Removed content because of size)

.<o:p></o:p>

.

    <wsdl:operationname="GetIndexTypes"><o:p></o:p>

      <soap12:operationsoapAction="Sofinloc.Biz.DocumentArchive.IDocumentArchiveSvc/GetIndexTypes"style="document" /><o:p></o:p>

      <wsdl:input><o:p></o:p>

        <soap12:body use="literal"/><o:p></o:p>

      </wsdl:input><o:p></o:p>

      <wsdl:output><o:p></o:p>

        <soap12:body use="literal"/><o:p></o:p>

      </wsdl:output><o:p></o:p>

    </wsdl:operation><o:p></o:p>

  </wsdl:binding><o:p></o:p>

  <wsdl:service name="DocumentArchiveSvc"><o:p></o:p>

    <wsdl:documentationxmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Exposes operationsrelated to the contract documents images archive.</wsdl:documentation><o:p></o:p>

    <wsdl:portname="DocumentArchiveSvcSoap" binding="tns:DocumentArchiveSvcSoap"><o:p></o:p>

      <soap:addresslocation="http://localhost/Sofinloc.ServiceBroker/Biz/DocumentArchive/DocumentArchiveSvc.ashx"/><o:p></o:p>

    </wsdl:port><o:p></o:p>

    <wsdl:portname="DocumentArchiveSvcSoap12"binding="tns:DocumentArchiveSvcSoap12"><o:p></o:p>

      <soap12:addresslocation="http://localhost/Sofinloc.ServiceBroker/Biz/DocumentArchive/DocumentArchiveSvc.ashx"/><o:p></o:p>

    </wsdl:port><o:p></o:p>

  </wsdl:service><o:p></o:p>

</wsdl:definitions><o:p></o:p>

Any help would be important.

Thanks in advanced,

JCR

Apr 2, 2009 at 3:24 PM
(I hope the text formatting gets better this time... Sorry)


The MSE import services wizard is a very interesting tool but we are having some problems importing a wsdl file using it. 
Using SvcUtil we get no problems but if we try to import it in MSE we get the following error in the logs:


mseTraceSrc Error: 0 : An application error occurred in Catalog Service Operation [ImportSchemas]. Error Detail [Exception Information Type[ApplicationException] Source[Microsoft.MSE.Catalog.Module] Message[An error occurred while saving Schema and Objects for Import [Exception Information Type[XmlSchemaException] Source[System.Xml] Message[The 'http://www.w3.org/2001/XMLSchema:schema' element is not declared.] StackTrace[   at System.Xml.Schema.XmlSchemaSet.InternalValidationCallback(Object sender, ValidationEventArgs e)
   at System.Xml.Schema.BaseProcessor.SendValidationEvent(XmlSchemaException e, XmlSeverityType severity)
   at System.Xml.Schema.BaseProcessor.SendValidationEvent(XmlSchemaException e)
   at System.Xml.Schema.Compiler.CompileElement(XmlSchemaElement xe)
   at System.Xml.Schema.Compiler.CompileParticleElements(XmlSchemaComplexType complexType, XmlSchemaParticle particle)
   at System.Xml.Schema.Compiler.CompileParticleElements(XmlSchemaComplexType complexType, XmlSchemaParticle particle)
   at System.Xml.Schema.Compiler.CompileComplexTypeElements(XmlSchemaComplexType complexType)
   at System.Xml.Schema.Compiler.Compile()
   at System.Xml.Schema.Compiler.Execute(XmlSchemaSet schemaSet, SchemaInfo schemaCompiledInfo)
   at System.Xml.Schema.XmlSchemaSet.Compile()
   at Microsoft.MSE.Catalog.Module.Business.SchemaManager.ImportSchemas(List`1 importedSchemas)]]] StackTrace[   at Microsoft.MSE.Catalog.Module.Business.SchemaManager.ImportSchemas(List`1 importedSchemas)
   at Microsoft.MSE.Catalog.Module.Services.ServiceModel.ImportSchemas(List`1 importedSchemas)]]
    DateTime=2009-04-02T13:26:42.6757809Z




We are talking a rather big wsdl to transcribe here. If there is any way to send it to you guys it would be great.
Anyway, here is a small transcript:



<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="Sofinloc.Biz.DocumentArchive.IDocumentArchiveSvc" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="Sofinloc.Biz.DocumentArchive.IDocumentArchiveSvc" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Exposes operations related to the contract documents images archive.</wsdl:documentation>
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="Sofinloc.Biz.DocumentArchive.IDocumentArchiveSvc">
      <s:import namespace="http://www.w3.org/2001/XMLSchema" />
      <s:element name="ListDocuments">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="requestInfo" type="tns:ListDocumentsRequest" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ListDocumentsRequest">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="IndexType" type="tns:IndexType" />
          <s:element minOccurs="0" maxOccurs="1" name="IndexValue" />
        </s:sequence>
      </s:complexType>
      <s:simpleType name="IndexType">
        <s:restriction base="s:string">
          <s:enumeration value="Contract" />
          <s:enumeration value="Proposal" />
        </s:restriction>
      </s:simpleType>
      <s:complexType name="ListDocumentsResponse">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="ResultInfo" type="tns:ResultInfo" />
          <s:element minOccurs="0" maxOccurs="1" name="DocumentsInfo" type="tns:ArrayOfDocumentInfo" />
        </s:sequence>
      </s:complexType>

.
.
.
.
.
.


    <wsdl:operation name="GetIndexTypes">
      <soap12:operation soapAction="Sofinloc.Biz.DocumentArchive.IDocumentArchiveSvc/GetIndexTypes" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="DocumentArchiveSvc">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Exposes operations related to the contract documents images archive.</wsdl:documentation>
    <wsdl:port name="DocumentArchiveSvcSoap" binding="tns:DocumentArchiveSvcSoap">
      <soap:address location="http://localhost/Sofinloc.ServiceBroker/Biz/DocumentArchive/DocumentArchiveSvc.ashx" />
    </wsdl:port>
    <wsdl:port name="DocumentArchiveSvcSoap12" binding="tns:DocumentArchiveSvcSoap12">
      <soap12:address location="http://localhost/Sofinloc.ServiceBroker/Biz/DocumentArchive/DocumentArchiveSvc.ashx" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

Thanks
Developer
Apr 2, 2009 at 3:57 PM
Taking it offline. I have one otehr question. why are you importing the schema http://www.w3.org/2001/XMLSchema. It should be there by default and you do not have to have an import statement for that. Try removing that import statement and then re-import the WSDL.
Apr 2, 2009 at 4:28 PM

Hi there!

Thank you for the quick reply.

We are going to try what you said. The problem is that the WSDL is generated by a custom, somewhat legacy, application. We do not want to mess around with it very much. Anyway, as I said in the post, the Svcutil.exe does not have any problems with it.

Furthermore, and this is very important! We tried to import another service (using the WSDL created by the same custom application) and it was WELL imported… I attached both WSDL´s to the mail.

Once again, thank you very much.

From: naveedzaheer [mailto:notifications@codeplex.com]
Sent: quinta-feira, 2 de Abril de 2009 16:58
To: João Rebelo
Subject: Re: Another Import Service problem [servicesengine:52091]

From: naveedzaheer

Taking it offline. I have one otehr question. why are you importing the schema http://www.w3.org/2001/XMLSchema. It should be there by default and you do not have to have an import statement for that. Try removing that import statement and then re-import the WSDL.

Read the full discussion online.

To add a post to this discussion, reply to this email (servicesengine@discussions.codeplex.com)

To start a new discussion for this project, email servicesengine@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


----------------------------------------------------------------------------

Esta mensagem e quaisquer ficheiros anexos, podem conter informação confidencial ou de uso restrito. Se não for destinatário desta mensagem, por favor notifique imediatamente o remetente da mesma e proceda à sua destruição. Não poderá revelar, copiar, distribuir ou de alguma forma usar o seu conteúdo. O Banco Finantia, S.A. utiliza software anti vírus. No entanto, não obstante terem sido tomadas todas as precauções, não é garantido que a mensagem e seus anexos não contenham vírus.

This message, including any attachments, may contain confidential information or privileged material. If you are not the intended recipient please notify the sender immediately by e-mail and delete it from your system. You should not disseminate, distribute or copy this e-mail or disclose its content to anyone. We believe, but do not warrant, that this e-mail, including any attachments, is virus free.


Apr 9, 2009 at 2:37 PM

Hello again,

We did what you advise us (removing the schema http://www.w3.org/2001/XMLSchema).
But, unfortunately, the import operation still fails as before, with exactly the same problem…
Any other advice that you can give us will be great. 

Thank you.

JCR