Nov 27 2009 at 4:26 PM
Edited Nov 28 2009 at 6:54 PM
|
We have a problem when importing a java web services, the error say:
Undefined complexType 'http://schemas.xmlsoap.org/soap/encoding/:Array' is used as a base for complex type restriction,
but we check the SOAP standard and this setence is valid, we attach the error and WSDL.
ERROR:
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[Undefined complexType 'http://schemas.xmlsoap.org/soap/encoding/:Array' is used as a base for complex type restriction.] 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.Compiler.CompileComplexContentRestriction(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaComplexContentRestriction complexRestriction)
at System.Xml.Schema.Compiler.CompileComplexType(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)]]
WSDL:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://salesforceteste.ws.jpublifinanceiro.publicar.com.br" xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://salesforceteste.ws.jpublifinanceiro.publicar.com.br" xmlns:intf="http://salesforceteste.ws.jpublifinanceiro.publicar.com.br"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="client.ws.jpublifinanceiro.publicar.com.br" xmlns:tns2="exception.ws.jpublifinanceiro.publicar.com.br" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.3
Built on Oct 05, 2005 (05:23:37 EDT)-->
<wsdl:types>
<schema targetNamespace="client.ws.jpublifinanceiro.publicar.com.br" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="exception.ws.jpublifinanceiro.publicar.com.br"/>
<import namespace="http://salesforceteste.ws.jpublifinanceiro.publicar.com.br"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="SalesForceDTOWS">
<sequence>
<element name="agCobrador" nillable="true" type="xsd:string"/>
<element name="datVenc" nillable="true" type="xsd:dateTime"/>
<element name="numContr" nillable="true" type="xsd:long"/>
<element name="numParc" nillable="true" type="xsd:int"/>
<element name="seqSacado" nillable="true" type="xsd:int"/>
<element name="sitParc" nillable="true" type="xsd:string"/>
<element name="valor" nillable="true" type="xsd:double"/>
</sequence>
</complexType>
</schema>
<schema targetNamespace="http://salesforceteste.ws.jpublifinanceiro.publicar.com.br" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="client.ws.jpublifinanceiro.publicar.com.br"/>
<import namespace="exception.ws.jpublifinanceiro.publicar.com.br"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ArrayOf_tns1_SalesForceDTOWS">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:SalesForceDTOWS[]"/>
</restriction>
</complexContent>
</complexType>
</schema>
<schema targetNamespace="exception.ws.jpublifinanceiro.publicar.com.br" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="client.ws.jpublifinanceiro.publicar.com.br"/>
<import namespace="http://salesforceteste.ws.jpublifinanceiro.publicar.com.br"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="SalesForceException">
<sequence/>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="SalesForceException">
<wsdl:part name="fault" type="tns2:SalesForceException"/>
</wsdl:message>
<wsdl:message name="buscaParcelasRequest">
<wsdl:part name="numContr" type="xsd:long"/>
</wsdl:message>
<wsdl:message name="buscaParcelasResponse">
<wsdl:part name="buscaParcelasReturn" type="impl:ArrayOf_tns1_SalesForceDTOWS"/>
</wsdl:message>
<wsdl:portType name="SalesForceTesteWS">
<wsdl:operation name="buscaParcelas" parameterOrder="numContr">
<wsdl:input message="impl:buscaParcelasRequest" name="buscaParcelasRequest"/>
<wsdl:output message="impl:buscaParcelasResponse" name="buscaParcelasResponse"/>
<wsdl:fault message="impl:SalesForceException" name="SalesForceException"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SalesForceTesteServiceSoapBinding" type="impl:SalesForceTesteWS">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="buscaParcelas">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="buscaParcelasRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://salesforceteste.ws.jpublifinanceiro.publicar.com.br"
use="encoded"/>
</wsdl:input>
<wsdl:output name="buscaParcelasResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://salesforceteste.ws.jpublifinanceiro.publicar.com.br"
use="encoded"/>
</wsdl:output>
<wsdl:fault name="SalesForceException">
<wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="SalesForceException" namespace="http://salesforceteste.ws.jpublifinanceiro.publicar.com.br"
use="encoded"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SalesForceTesteWSService">
<wsdl:port binding="impl:SalesForceTesteServiceSoapBinding" name="SalesForceTesteService">
<wsdlsoap:address location="http://172.24.24.27:8180/interfacews/services/SalesForceTesteService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
|