• Assafm
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

Hi,

 

Is the portType is msnadatory? 

 

we i get this error or can overcome it?

 

thanks

  • April 09, 2013
  • Like
  • 0

Hi,

 

im trying to parse the XSD file and getting Error: Failed to parse wsdl: targetNamespace not specified in wsdl:definitions 

 

<?xml version="1.0" encoding="utf-8"?>
<xs:schema elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Conduit.CPServices.Common.Model.FileManager" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.datacontract.org/2004/07/Conduit.CPServices.Common.Model.FileManager" xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/">
<xs:import schemaLocation="http://qa-srv07:83/FileManager.svc?xsd=xsd2" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
<xs:import schemaLocation="http://qa-srv07:83/FileManager.svc?xsd=xsd3" namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
<xs:complexType name="FileUploadedResult">
<xs:sequence>
<xs:element minOccurs="0" name="FileManagerItem" nillable="true" type="tns:FileManagerItem"/>
<xs:element minOccurs="0" name="FileStatus" type="tns:FileUploadStatus"/>
<xs:element minOccurs="0" name="FileUrl" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="IsFileUploaded" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
<xs:element name="FileUploadedResult" nillable="true" type="tns:FileUploadedResult"/>
<xs:complexType name="FileManagerItem">
<xs:sequence>
<xs:element minOccurs="0" name="DateCreated" type="xs:dateTime"/>
<xs:element minOccurs="0" name="DateLastScaned" nillable="true" type="xs:dateTime"/>
<xs:element minOccurs="0" name="FileExtension" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FullFileName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FullPath" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="Id" type="ser:guid"/>
<xs:element minOccurs="0" name="OriginalFileName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="RawLog" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="RemoteFileUrl" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="ScanResource" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="ScheduleType" nillable="true" type="xs:int"/>
<xs:element minOccurs="0" name="SendingId" nillable="true" type="xs:long"/>
<xs:element minOccurs="0" name="Status" type="xs:int"/>
</xs:sequence>
</xs:complexType>
<xs:element name="FileManagerItem" nillable="true" type="tns:FileManagerItem"/>
<xs:simpleType name="FileUploadStatus">
<xs:restriction base="xs:string">
<xs:enumeration value="SUCCESS"/>
<xs:enumeration value="MAX_LENGTH"/>
<xs:enumeration value="UNHANDLED_EXCEPTION"/>
<xs:enumeration value="UNAUTHORIZED_EXTENSION"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="FileUploadStatus" nillable="true" type="tns:FileUploadStatus"/>
<xs:complexType name="FileInformationResult">
<xs:sequence>
<xs:element minOccurs="0" name="FileManagerItem" nillable="true" type="tns:FileManagerItem"/>
<xs:element minOccurs="0" name="IsFileFound" type="xs:boolean"/>
<xs:element minOccurs="0" name="IsFinishedScanning" type="xs:boolean"/>
<xs:element minOccurs="0" name="ScanReport" nillable="true" type="tns:VirusTotalReport"/>
</xs:sequence>
</xs:complexType>
<xs:element name="FileInformationResult" nillable="true" type="tns:FileInformationResult"/>
<xs:complexType name="VirusTotalReport">
<xs:sequence>
<xs:element minOccurs="0" name="RawLog" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="permalink" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="positives" type="xs:int"/>
<xs:element minOccurs="0" name="scan_date" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="scans" nillable="true" type="q1:ArrayOfKeyValueOfstringanyType" xmlns:q1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
<xs:element minOccurs="0" name="total" type="xs:int"/>
<xs:element minOccurs="0" name="verbose_msg" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="VirusTotalReport" nillable="true" type="tns:VirusTotalReport"/>
<xs:complexType name="QueueManagerInsertResult">
<xs:sequence>
<xs:element minOccurs="0" name="InvalidUrls" nillable="true" type="q2:ArrayOfstring" xmlns:q2="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
<xs:element minOccurs="0" name="IsSuccess" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
<xs:element name="QueueManagerInsertResult" nillable="true" type="tns:QueueManagerInsertResult"/>
<xs:complexType name="ArrayOfQueueItemResult">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="QueueItemResult" nillable="true" type="tns:QueueItemResult"/>
</xs:sequence>
</xs:complexType>
<xs:element name="ArrayOfQueueItemResult" nillable="true" type="tns:ArrayOfQueueItemResult"/>
<xs:complexType name="QueueItemResult">
<xs:sequence>
<xs:element minOccurs="0" name="DateLastScanned" nillable="true" type="xs:dateTime"/>
<xs:element minOccurs="0" name="Id" type="ser:guid"/>
<xs:element minOccurs="0" name="IsVirusFound" type="xs:boolean"/>
<xs:element minOccurs="0" name="ScanResource" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="SendingId" type="xs:long"/>
<xs:element minOccurs="0" name="Source" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="Status" type="xs:int"/>
<xs:element minOccurs="0" name="Url" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="QueueItemResult" nillable="true" type="tns:QueueItemResult"/>
</xs:schema>

 

 

 

How should i parse the XSD file

 

Thanks

  • April 09, 2013
  • Like
  • 0

Hi,

 

im trying to parse the XSD file and getting Error: Failed to parse wsdl: targetNamespace not specified in wsdl:definitions 

 

<?xml version="1.0" encoding="utf-8"?>
<xs:schema elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Conduit.CPServices.Common.Model.FileManager" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.datacontract.org/2004/07/Conduit.CPServices.Common.Model.FileManager" xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/">
<xs:import schemaLocation="http://qa-srv07:83/FileManager.svc?xsd=xsd2" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
<xs:import schemaLocation="http://qa-srv07:83/FileManager.svc?xsd=xsd3" namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
<xs:complexType name="FileUploadedResult">
<xs:sequence>
<xs:element minOccurs="0" name="FileManagerItem" nillable="true" type="tns:FileManagerItem"/>
<xs:element minOccurs="0" name="FileStatus" type="tns:FileUploadStatus"/>
<xs:element minOccurs="0" name="FileUrl" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="IsFileUploaded" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
<xs:element name="FileUploadedResult" nillable="true" type="tns:FileUploadedResult"/>
<xs:complexType name="FileManagerItem">
<xs:sequence>
<xs:element minOccurs="0" name="DateCreated" type="xs:dateTime"/>
<xs:element minOccurs="0" name="DateLastScaned" nillable="true" type="xs:dateTime"/>
<xs:element minOccurs="0" name="FileExtension" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FullFileName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="FullPath" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="Id" type="ser:guid"/>
<xs:element minOccurs="0" name="OriginalFileName" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="RawLog" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="RemoteFileUrl" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="ScanResource" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="ScheduleType" nillable="true" type="xs:int"/>
<xs:element minOccurs="0" name="SendingId" nillable="true" type="xs:long"/>
<xs:element minOccurs="0" name="Status" type="xs:int"/>
</xs:sequence>
</xs:complexType>
<xs:element name="FileManagerItem" nillable="true" type="tns:FileManagerItem"/>
<xs:simpleType name="FileUploadStatus">
<xs:restriction base="xs:string">
<xs:enumeration value="SUCCESS"/>
<xs:enumeration value="MAX_LENGTH"/>
<xs:enumeration value="UNHANDLED_EXCEPTION"/>
<xs:enumeration value="UNAUTHORIZED_EXTENSION"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="FileUploadStatus" nillable="true" type="tns:FileUploadStatus"/>
<xs:complexType name="FileInformationResult">
<xs:sequence>
<xs:element minOccurs="0" name="FileManagerItem" nillable="true" type="tns:FileManagerItem"/>
<xs:element minOccurs="0" name="IsFileFound" type="xs:boolean"/>
<xs:element minOccurs="0" name="IsFinishedScanning" type="xs:boolean"/>
<xs:element minOccurs="0" name="ScanReport" nillable="true" type="tns:VirusTotalReport"/>
</xs:sequence>
</xs:complexType>
<xs:element name="FileInformationResult" nillable="true" type="tns:FileInformationResult"/>
<xs:complexType name="VirusTotalReport">
<xs:sequence>
<xs:element minOccurs="0" name="RawLog" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="permalink" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="positives" type="xs:int"/>
<xs:element minOccurs="0" name="scan_date" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="scans" nillable="true" type="q1:ArrayOfKeyValueOfstringanyType" xmlns:q1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
<xs:element minOccurs="0" name="total" type="xs:int"/>
<xs:element minOccurs="0" name="verbose_msg" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="VirusTotalReport" nillable="true" type="tns:VirusTotalReport"/>
<xs:complexType name="QueueManagerInsertResult">
<xs:sequence>
<xs:element minOccurs="0" name="InvalidUrls" nillable="true" type="q2:ArrayOfstring" xmlns:q2="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
<xs:element minOccurs="0" name="IsSuccess" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
<xs:element name="QueueManagerInsertResult" nillable="true" type="tns:QueueManagerInsertResult"/>
<xs:complexType name="ArrayOfQueueItemResult">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="QueueItemResult" nillable="true" type="tns:QueueItemResult"/>
</xs:sequence>
</xs:complexType>
<xs:element name="ArrayOfQueueItemResult" nillable="true" type="tns:ArrayOfQueueItemResult"/>
<xs:complexType name="QueueItemResult">
<xs:sequence>
<xs:element minOccurs="0" name="DateLastScanned" nillable="true" type="xs:dateTime"/>
<xs:element minOccurs="0" name="Id" type="ser:guid"/>
<xs:element minOccurs="0" name="IsVirusFound" type="xs:boolean"/>
<xs:element minOccurs="0" name="ScanResource" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="SendingId" type="xs:long"/>
<xs:element minOccurs="0" name="Source" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="Status" type="xs:int"/>
<xs:element minOccurs="0" name="Url" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="QueueItemResult" nillable="true" type="tns:QueueItemResult"/>
</xs:schema>

 

 

 

How should i parse the XSD file

 

Thanks

  • April 09, 2013
  • Like
  • 0