none
Trouble with weird Unhandled Communication Fault: Sequence contains no elements RRS feed

  • Question

  • Hail,

    I'm working on an integration between an AMS (PHP) and MS Project 2010, using nuSOAP, once the native SOAP did not connect successfully to EPM server using NTLM Auth. I also did have some issues with complexTypes which were using the XML Envelopes tag "element: any", when passing .Net TimesheetDataSet instances through XML. I've worked that around, implementing a correction on nuSOAP implementation.

    After all that hell in the past days, I got all methods working, till the CreateTimesheet, and now I'm stuck with the PrepareTimesheetLine and QueueUpdateTimesheet, where I can't figure out what could be wrong.

    I have the C# examples running with the same setup as the PHP system, from where I've copied the envelope formats, once the nuSOAP doesn't generates these XML Envelopes like they should be.

    I'm getting the following return:

        [faultcode] => a:ProjectServerFaultCode
        [faultstring] => Unhandled Communication Fault occurred
        [detail] => (
                [string] => Sequence contains no elements
            )

    The SOAP Envelope:

    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <SOAP-ENV:Body>
        <PrepareTimesheetLine xmlns="http://schemas.microsoft.com/office/project/server/webservices/TimeSheet/">
          <tsUID>bdbf7591-1f40-4266-8de2-12467e56cc55</tsUID>
          <dsDelta>
            <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mstns="http://schemas.microsoft.com/office/project/server/webservices/TimesheetDataSet/" xmlns="http://schemas.microsoft.com/office/project/server/webservices/TimesheetDataSet/" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="TimesheetDataSet" targetNamespace="http://schemas.microsoft.com/office/project/server/webservices/TimesheetDataSet/" attributeFormDefault="qualified" elementFormDefault="qualified">
              <xs:element name="TimesheetDataSet" msdata:IsDataSet="true" msdata:Locale="pt-BR">
                <xs:complexType>
                  <xs:choice minOccurs="0" maxOccurs="unbounded">
                    <xs:element name="Headers">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="TS_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="TS_NAME" type="xs:string" minOccurs="0" />
                          <xs:element name="WPRD_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="TS_COMMENTS" type="xs:string" default="" minOccurs="0" />
                          <xs:element name="TS_CREATOR_RES_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                          <xs:element name="TS_ENTRY_MODE_ENUM" type="xs:unsignedByte" />
                          <xs:element name="TS_STATUS_ENUM" msdata:ReadOnly="true" type="xs:unsignedByte" minOccurs="0" />
                          <xs:element name="TS_WEEK_STARTS_ON" type="xs:unsignedByte" minOccurs="0" />
                          <xs:element name="RES_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="RES_TIMESHEET_MGR_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msdata:ReadOnly="true" type="xs:string" minOccurs="0" />
                          <xs:element name="TS_CACHED_RES_NAME" msdata:ReadOnly="true" type="xs:string" minOccurs="0" />
                          <xs:element name="TS_CACHED_CREATOR_RES_NAME" msdata:ReadOnly="true" type="xs:string" minOccurs="0" />
                          <xs:element name="TS_IS_PROCESSED" type="xs:boolean" minOccurs="0" />
                          <xs:element name="TS_IS_CONTROLLED_BY_OWNER" type="xs:boolean" minOccurs="0" />
                          <xs:element name="TS_TOTAL_ACT_VALUE" msdata:ReadOnly="true" type="xs:decimal" minOccurs="0" />
                          <xs:element name="TS_TOTAL_ACT_OVT_VALUE" msdata:ReadOnly="true" type="xs:decimal" minOccurs="0" />
                          <xs:element name="TS_TOTAL_ACT_NON_BILLABLE_VALUE" msdata:ReadOnly="true" type="xs:decimal" minOccurs="0" />
                          <xs:element name="TS_TOTAL_ACT_NON_BILLABLE_OVT_VALUE" msdata:ReadOnly="true" type="xs:decimal" minOccurs="0" />
                          <xs:element name="TS_GRAND_TOTAL_ACT_VALUE" msdata:ReadOnly="true" type="xs:decimal" minOccurs="0" />
                          <xs:element name="TS_PRELOAD_TYPE" msdata:ReadOnly="true" type="xs:unsignedByte" minOccurs="0" />
                          <xs:element name="TimesheetManagerName" type="xs:string" minOccurs="0" />
                          <xs:element name="YTD_SICK_VALUE" type="xs:decimal" minOccurs="0" />
                          <xs:element name="YTD_VACATION_VALUE" type="xs:decimal" minOccurs="0" />
                          <xs:element name="TS_NEED_EXCEPTIONS" type="xs:boolean" minOccurs="0" />
                          <xs:element name="TSUBMIT_TO_RES_NAME" type="xs:string" minOccurs="0" />
                          <xs:element name="TPREVIOUS_APPROVER_RES_NAME" type="xs:string" minOccurs="0" />
                          <xs:element name="TS_QUEUE_JOB_STATUS" type="xs:int" minOccurs="0" />
                          <xs:element name="TS_FAILED_JOB_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                          <xs:element name="TS_FAILED_RES_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="Lines">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="TS_LINE_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="TS_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="ASSN_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                          <xs:element name="TASK_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                          <xs:element name="PROJ_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                          <xs:element name="TS_LINE_CLASS_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="TS_LINE_COMMENT" type="xs:string" default="" minOccurs="0" />
                          <xs:element name="TS_LINE_VALIDATION_TYPE" type="xs:unsignedByte" />
                          <xs:element name="TS_LINE_CACHED_ASSIGN_NAME" type="xs:string" default="" />
                          <xs:element name="TS_LINE_CACHED_PROJ_NAME" type="xs:string" default="" />
                          <xs:element name="TS_LINE_CACHED_PROJ_REVISION_COUNTER" type="xs:string" minOccurs="0" />
                          <xs:element name="TS_LINE_CACHED_PROJ_REVISION_RANK" type="xs:string" minOccurs="0" />
                          <xs:element name="TS_LINE_IS_CACHED" type="xs:string" minOccurs="0" />
                          <xs:element name="TS_LINE_ACT_SUM_VALUE" msdata:ReadOnly="true" type="xs:decimal" minOccurs="0" />
                          <xs:element name="TS_LINE_STATUS" type="xs:unsignedByte" minOccurs="0" />
                          <xs:element name="TS_LINE_TASK_HIERARCHY" msdata:ReadOnly="true" type="xs:string" minOccurs="0" />
                          <xs:element name="TS_LINE_CLASS_NAME" type="xs:string" minOccurs="0" />
                          <xs:element name="TS_LINE_CLASS_NEED_APPROVAL" type="xs:boolean" minOccurs="0" />
                          <xs:element name="TS_LINE_CLASS_TYPE" type="xs:unsignedByte" minOccurs="0" />
                          <xs:element name="MGR_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                          <xs:element name="TS_LINE_STATUSMANAGER" type="xs:string" minOccurs="0" />
                          <xs:element name="SUMMARY_TASK_START_DATE" type="xs:dateTime" minOccurs="0" />
                          <xs:element name="SUMMARY_TASK_FINISH_DATE" type="xs:dateTime" minOccurs="0" />
                          <xs:element name="PIN_TASK_START_DATE" type="xs:dateTime" minOccurs="0" />
                          <xs:element name="PIN_TASK_FINISH_DATE" type="xs:dateTime" minOccurs="0" />
                          <xs:element name="TASK_IS_MANUAL" type="xs:boolean" minOccurs="0" />
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="Actuals">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="TS_LINE_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="TS_ACT_START_DATE" type="xs:dateTime" />
                          <xs:element name="TS_ACT_FINISH_DATE" type="xs:dateTime" />
                          <xs:element name="TS_ACT_COMMENT" type="xs:string" minOccurs="0" />
                          <xs:element name="TS_ACT_PLAN_VALUE" type="xs:decimal" default="0" minOccurs="0" />
                          <xs:element name="TS_ACT_VALUE" type="xs:decimal" default="0" minOccurs="0" />
                          <xs:element name="TS_ACT_OVT_VALUE" type="xs:decimal" default="0" minOccurs="0" />
                          <xs:element name="TS_ACT_NON_BILLABLE_VALUE" type="xs:decimal" default="0" minOccurs="0" />
                          <xs:element name="TS_ACT_NON_BILLABLE_OVT_VALUE" type="xs:decimal" default="0" minOccurs="0" />
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="CustomFields">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="CUSTOM_FIELD_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="TS_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="TS_LINE_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="MD_PROP_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                          <xs:element name="MD_PROP_ID" type="xs:int" minOccurs="0" />
                          <xs:element name="FIELD_TYPE_ENUM" type="xs:unsignedByte" minOccurs="0" />
                          <xs:element name="FLAG_VALUE" type="xs:boolean" minOccurs="0" />
                          <xs:element name="TEXT_VALUE" minOccurs="0">
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="255" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="DATE_VALUE" type="xs:dateTime" minOccurs="0" />
                          <xs:element name="CODE_VALUE" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                          <xs:element name="DUR_VALUE" type="xs:int" minOccurs="0" />
                          <xs:element name="NUM_VALUE" type="xs:decimal" minOccurs="0" />
                          <xs:element name="DUR_FMT" type="xs:unsignedByte" minOccurs="0" />
                          <xs:element name="INDICATOR_VALUE" msdata:ReadOnly="true" type="xs:int" minOccurs="0" />
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="Actions">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="TS_ACTION_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="TS_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="RES_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="TS_ACTION_ENUM" type="xs:unsignedByte" />
                          <xs:element name="TS_ACTION_DATE" type="xs:dateTime" />
                          <xs:element name="TS_ACTION_COMMENT" type="xs:string" minOccurs="0" />
                          <xs:element name="TS_ACTION_CACHED_RES_NAME" msdata:ReadOnly="true" type="xs:string" minOccurs="0" />
                          <xs:element name="TS_ACTION_IS_HISTORY" type="xs:boolean" />
                          <xs:element name="TS_ACTION_LEVEL" type="xs:int" />
                          <xs:element name="TS_LINE_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="Audits">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="TS_ACT_AUD_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="TS_ACT_AUD_OPERATION_ENUM" type="xs:unsignedByte" />
                          <xs:element name="TS_LINE_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="TS_ACT_START_DATE" type="xs:dateTime" />
                          <xs:element name="TS_ACT_FINISH_DATE" type="xs:dateTime" />
                          <xs:element name="TS_ACT_AUD_SEQUENCE" type="xs:long" minOccurs="0" />
                          <xs:element name="RES_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="TS_ACT_AUD_DELTA_VALUE" type="xs:decimal" minOccurs="0" />
                          <xs:element name="TS_ACT_AUD_OVT_DELTA_VALUE" type="xs:decimal" minOccurs="0" />
                          <xs:element name="TS_ACT_AUD_NONBILL_DELTA_VALUE" type="xs:decimal" minOccurs="0" />
                          <xs:element name="TS_ACT_AUD_NONBILL_OVT_DELTA_VALUE" type="xs:decimal" minOccurs="0" />
                          <xs:element name="TS_ACT_AUD_CACHED_RES_NAME" msdata:ReadOnly="true" type="xs:string" minOccurs="0" />
                          <xs:element name="TS_ACT_AUD_IS_PROCESSED" type="xs:boolean" minOccurs="0" />
                          <xs:element name="TS_ACT_AUD_RES_ROLE" type="xs:unsignedByte" />
                          <xs:element name="TS_ACT_AUD_PLAN_DELTA_VALUE" type="xs:decimal" minOccurs="0" />
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="StatusingChangeLog">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="PROJ_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="ENTITY_TYPE" type="xs:int" minOccurs="0" />
                          <xs:element name="ENTITY_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                          <xs:element name="PID" type="xs:int" minOccurs="0" />
                          <xs:element name="VALUE" type="xs:string" minOccurs="0" />
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="Periods">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="WPRD_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                          <xs:element name="WPRD_START_DATE" type="xs:dateTime" minOccurs="0" />
                          <xs:element name="WPRD_FINISH_DATE" type="xs:dateTime" minOccurs="0" />
                          <xs:element name="WPRD_NAME" type="xs:string" minOccurs="0" />
                          <xs:element name="WPRD_STATE_ENUM" type="xs:unsignedByte" minOccurs="0" />
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="CFDefinition">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="TS_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                          <xs:element name="MD_PROP_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                          <xs:element name="MD_PROP_ID" type="xs:int" minOccurs="0" />
                          <xs:element name="MD_PROP_UID_SECONDARY" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                          <xs:element name="MD_PROP_ID_SECONDARY" type="xs:int" minOccurs="0" />
                          <xs:element name="MD_ENT_TYPE_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                          <xs:element name="MD_PROP_NAME" type="xs:string" minOccurs="0" />
                          <xs:element name="MD_PROP_IS_CALC" type="xs:boolean" minOccurs="0" />
                          <xs:element name="MD_LOOKUP_TABLE_UID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                          <xs:element name="MD_LOOKUP_DIMENSION_MASK" type="xs:int" minOccurs="0" />
                          <xs:element name="MD_LOOKUP_IS_MEASURE_SECONDARY" type="xs:boolean" minOccurs="0" />
                          <xs:element name="MD_LOOKUP_IS_MEASURE" type="xs:boolean" minOccurs="0" />
                          <xs:element name="MD_FREEFORM_ROLE" type="xs:unsignedByte" minOccurs="0" />
                          <xs:element name="MD_PROP_IS_REQUIRED" type="xs:boolean" minOccurs="0" />
                          <xs:element name="MD_AGGREGATION_TYPE_ENUM" type="xs:unsignedByte" minOccurs="0" />
                          <xs:element name="MD_PROP_TYPE_ENUM" type="xs:unsignedByte" minOccurs="0" />
                          <xs:element name="MD_PROP_DEFAULT_VALUE" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                          <xs:element name="MD_PROP_IS_LEAF_NODE_ONLY" type="xs:boolean" minOccurs="0" />
                          <xs:element name="MD_PROP_MAX_VALUES" type="xs:int" minOccurs="0" />
                          <xs:element name="MD_PROP_USE_FOR_MATCHING" type="xs:boolean" minOccurs="0" />
                          <xs:element name="MD_PROP_FORMULA" type="xs:string" minOccurs="0" />
                          <xs:element name="MD_PROP_GRAPHICAL_INDICATOR" type="xs:string" minOccurs="0" />
                          <xs:element name="MD_PROP_SUMM_GRAPHICAL_INDICATOR" type="xs:string" minOccurs="0" />
                          <xs:element name="MD_PROP_PROJ_SUMM_GRAPHICAL_INDICATOR" type="xs:string" minOccurs="0" />
                          <xs:element name="MD_PROP_GRAPHICAL_INDICATOR_TOOLTIP" type="xs:boolean" minOccurs="0" />
                          <xs:element name="MD_PROP_ROLLDOWN_TO_ASSN" type="xs:boolean" minOccurs="0" />
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:choice>
                </xs:complexType>
                <xs:unique name="Constraint1" msdata:PrimaryKey="true">
                  <xs:selector xpath=".//mstns:Headers" />
                  <xs:field xpath="mstns:TS_UID" />
                </xs:unique>
                <xs:unique name="Lines_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
                  <xs:selector xpath=".//mstns:Lines" />
                  <xs:field xpath="mstns:TS_LINE_UID" />
                </xs:unique>
                <xs:unique name="Actuals_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
                  <xs:selector xpath=".//mstns:Actuals" />
                  <xs:field xpath="mstns:TS_LINE_UID" />
                  <xs:field xpath="mstns:TS_ACT_START_DATE" />
                </xs:unique>
                <xs:unique name="Actions_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
                  <xs:selector xpath=".//mstns:Actions" />
                  <xs:field xpath="mstns:TS_ACTION_UID" />
                </xs:unique>
                <xs:unique name="Audits_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
                  <xs:selector xpath=".//mstns:Audits" />
                  <xs:field xpath="mstns:TS_ACT_AUD_UID" />
                  <xs:field xpath="mstns:TS_ACT_AUD_OPERATION_ENUM" />
                  <xs:field xpath="mstns:TS_LINE_UID" />
                  <xs:field xpath="mstns:TS_ACT_START_DATE" />
                </xs:unique>
                <xs:keyref name="Lines_Actuals" refer="Lines_Constraint1">
                  <xs:selector xpath=".//mstns:Actuals" />
                  <xs:field xpath="mstns:TS_LINE_UID" />
                </xs:keyref>
              </xs:element>
              <xs:annotation>
                <xs:appinfo>
                  <msdata:Relationship name="Headers_Lines" msdata:parent="Headers" msdata:child="Lines" msdata:parentkey="TS_UID" msdata:childkey="TS_UID" />
                  <msdata:Relationship name="Headers_Actions" msdata:parent="Headers" msdata:child="Actions" msdata:parentkey="TS_UID" msdata:childkey="TS_UID" />
                  <msdata:Relationship name="Lines_Audits" msdata:parent="Lines" msdata:child="Audits" msdata:parentkey="TS_LINE_UID" msdata:childkey="TS_LINE_UID" />
                </xs:appinfo>
              </xs:annotation>
            </xs:schema>
            <diffgr:diffgram xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
              <TimesheetDataSet xmlns="http://schemas.microsoft.com/office/project/server/webservices/TimesheetDataSet/">
                <Headers diffgr:id="Headers1" msdata:rowOrder="0">
                  <TS_UID>bdbf7591-1f40-4266-8de2-12467e56cc55</TS_UID>
                  <TS_NAME>Meu Quadro de Horários</TS_NAME>
                  <WPRD_UID>f7d54555-8e71-4910-99c9-d3047209c667</WPRD_UID>
                  <TS_CREATOR_RES_UID>61c38b55-9582-4167-a8bd-2fb93e29bf33</TS_CREATOR_RES_UID>
                  <TS_ENTRY_MODE_ENUM>0</TS_ENTRY_MODE_ENUM>
                  <TS_STATUS_ENUM>3</TS_STATUS_ENUM>
                  <TS_WEEK_STARTS_ON>1</TS_WEEK_STARTS_ON>
                  <RES_UID>61c38b55-9582-4167-a8bd-2fb93e29bf33</RES_UID>
                  <RES_TIMESHEET_MGR_UID>61c38b55-9582-4167-a8bd-2fb93e29bf33</RES_TIMESHEET_MGR_UID>
                  <TS_CACHED_RES_NAME>MyResourceName</TS_CACHED_RES_NAME>
                  <TS_CACHED_CREATOR_RES_NAME>MyResourceName</TS_CACHED_CREATOR_RES_NAME>
                  <TS_IS_PROCESSED>false</TS_IS_PROCESSED>
                  <TS_IS_CONTROLLED_BY_OWNER>true</TS_IS_CONTROLLED_BY_OWNER>
                  <TS_TOTAL_ACT_VALUE>0.000000</TS_TOTAL_ACT_VALUE>
                  <TS_TOTAL_ACT_OVT_VALUE>0.000000</TS_TOTAL_ACT_OVT_VALUE>
                  <TS_TOTAL_ACT_NON_BILLABLE_VALUE>0.000000</TS_TOTAL_ACT_NON_BILLABLE_VALUE>
                  <TS_TOTAL_ACT_NON_BILLABLE_OVT_VALUE>0.000000</TS_TOTAL_ACT_NON_BILLABLE_OVT_VALUE>
                  <TS_GRAND_TOTAL_ACT_VALUE>0.000000</TS_GRAND_TOTAL_ACT_VALUE>
                  <TS_PRELOAD_TYPE>1</TS_PRELOAD_TYPE>
                  <TimesheetManagerName>MyResourceName</TimesheetManagerName>
                  <YTD_SICK_VALUE>0.000000</YTD_SICK_VALUE>
                  <YTD_VACATION_VALUE>0.000000</YTD_VACATION_VALUE>
                  <TS_NEED_EXCEPTIONS>false</TS_NEED_EXCEPTIONS>
                  <TSUBMIT_TO_RES_NAME>MyResourceName</TSUBMIT_TO_RES_NAME>
                  <TPREVIOUS_APPROVER_RES_NAME>MyResourceName</TPREVIOUS_APPROVER_RES_NAME>
                  <TS_QUEUE_JOB_STATUS>0</TS_QUEUE_JOB_STATUS>
                </Headers>
                <Lines diffgr:id="Lines1" msdata:rowOrder="0">
                  <TS_LINE_UID>786a550d-d0e5-414b-8ccb-e6751134c60f</TS_LINE_UID>
                  <TS_UID>bdbf7591-1f40-4266-8de2-12467e56cc55</TS_UID>
                  <ASSN_UID>60e3adc6-6d30-4034-82da-899231460bec</ASSN_UID>
                  <TASK_UID>60e3adc6-6d30-4034-82da-899231460bec</TASK_UID>
                  <PROJ_UID>e38038fa-f8ca-47d1-bfd4-6b45b8462972</PROJ_UID>
                  <TS_LINE_CLASS_UID>60e3adc6-6d30-4034-82da-899231460bec</TS_LINE_CLASS_UID>
                  <TS_LINE_VALIDATION_TYPE>0</TS_LINE_VALIDATION_TYPE>
                  <TS_LINE_CACHED_ASSIGN_NAME>Férias</TS_LINE_CACHED_ASSIGN_NAME>
                  <TS_LINE_CACHED_PROJ_NAME>Administrativo</TS_LINE_CACHED_PROJ_NAME>
                  <TS_LINE_CACHED_PROJ_REVISION_COUNTER>1</TS_LINE_CACHED_PROJ_REVISION_COUNTER>
                  <TS_LINE_CACHED_PROJ_REVISION_RANK>0</TS_LINE_CACHED_PROJ_REVISION_RANK>
                  <TS_LINE_IS_CACHED>True</TS_LINE_IS_CACHED>
                  <TS_LINE_ACT_SUM_VALUE>0.000000</TS_LINE_ACT_SUM_VALUE>
                  <TS_LINE_STATUS>1</TS_LINE_STATUS>
                  <TS_LINE_CLASS_NAME>Férias</TS_LINE_CLASS_NAME>
                  <TS_LINE_CLASS_NEED_APPROVAL>true</TS_LINE_CLASS_NEED_APPROVAL>
                  <TS_LINE_CLASS_TYPE>1</TS_LINE_CLASS_TYPE>
                </Lines>
                <Lines diffgr:id="Lines2" msdata:rowOrder="1" diffgr:hasChanges="inserted">
                  <TS_UID>bdbf7591-1f40-4266-8de2-12467e56cc55</TS_UID>
                  <TS_LINE_UID>a184ec4f-9030-4f1c-8605-d6fac097b287</TS_LINE_UID>
                  <TS_LINE_CLASS_UID>fcdb0e4e-b9c7-4a39-804f-fa44796f71a0</TS_LINE_CLASS_UID>
                  <TS_LINE_COMMENT>Added by test script</TS_LINE_COMMENT>
                  <TS_LINE_STATUS>3</TS_LINE_STATUS>
                  <TS_LINE_VALIDATION_TYPE>0</TS_LINE_VALIDATION_TYPE>
                  <TS_LINE_CACHED_ASSIGN_NAME>Classificação de linha padrão</TS_LINE_CACHED_ASSIGN_NAME>
                </Lines>
                <Periods diffgr:id="Periods1" msdata:rowOrder="0">
                  <WPRD_UID>f7d54555-8e71-4910-99c9-d3047209c667</WPRD_UID>
                  <WPRD_START_DATE>2013-07-07T00:00:00-03:00</WPRD_START_DATE>
                  <WPRD_FINISH_DATE>2013-07-13T23:59:59-03:00</WPRD_FINISH_DATE>
                  <WPRD_NAME>2013.28</WPRD_NAME>
                  <WPRD_STATE_ENUM>0</WPRD_STATE_ENUM>
                </Periods>
                <Periods diffgr:id="Periods2" msdata:rowOrder="1">
                  <WPRD_UID>b6197e4f-a2be-4bb7-ba1b-4ce38408c085</WPRD_UID>
                  <WPRD_START_DATE>2013-07-14T00:00:00-03:00</WPRD_START_DATE>
                  <WPRD_FINISH_DATE>2013-07-20T23:59:59-03:00</WPRD_FINISH_DATE>
                  <WPRD_NAME>2013.29</WPRD_NAME>
                  <WPRD_STATE_ENUM>0</WPRD_STATE_ENUM>
                </Periods>
                <Periods diffgr:id="Periods3" msdata:rowOrder="2">
                  <WPRD_UID>1e30467a-bb7b-4d2f-8f2f-a96d538bbd1f</WPRD_UID>
                  <WPRD_START_DATE>2013-07-21T00:00:00-03:00</WPRD_START_DATE>
                  <WPRD_FINISH_DATE>2013-07-27T23:59:59-03:00</WPRD_FINISH_DATE>
                  <WPRD_NAME>2013.30</WPRD_NAME>
                  <WPRD_STATE_ENUM>0</WPRD_STATE_ENUM>
                </Periods>
              </TimesheetDataSet>
            </diffgr:diffgram>
          </dsDelta>
          <tlsNeedFill>
            <guid>a184ec4f-9030-4f1c-8605-d6fac097b287</guid>
          </tlsNeedFill>
        </PrepareTimesheetLine>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    I also did what another user found as solution for his problem, removed the <blabla /> empty elements from the XML. After this the fault kept being shown with me.

    Any insight of what could it be?



    Tuesday, July 2, 2013 9:33 PM

All replies

  • The interesting is that there are no empty sequences at all.

    Wednesday, July 3, 2013 2:11 PM
  • REQUEST:

    POST /_vti_bin/psi/TimeSheet.asmx HTTP/1.0 Host: epm User-Agent: NuSOAP/0.9.6dev (1.137) Content-Type: text/xml; charset=UTF-8 SOAPAction: "http://schemas.microsoft.com/office/project/server/webservices/TimeSheet/PrepareTimesheetLine" Content-Length: 21966 Cookie: WSS_KeepSessionAuthenticated={cf70bf0e-5b5a-4ddd-b977-519872a28a13}; WSS_KeepSessionAuthenticated={cf70bf0e-5b5a-4ddd-b977-519872a28a13}; ASP.NET_SessionId=dmwi0r454h1ux3fe5tx1eumg;

    RESPONSE:

    HTTP/1.1 401 Unauthorized
    Server: Microsoft-IIS/7.5
    SPRequestGuid: dc4860d3-15c2-412c-8c88-01ad8eede327
    WWW-Authenticate: NTLM
    X-Powered-By: ASP.NET
    MicrosoftSharePointTeamServices: 14.0.0.6029
    Date: Wed, 03 Jul 2013 19:24:13 GMT
    Content-Length: 0
    
    HTTP/1.1 401 Unauthorized
    Server: Microsoft-IIS/7.5
    SPRequestGuid: b7ed3964-e21a-4f92-940a-76f6d3a7cbc3
    WWW-Authenticate: NTLM TlRMTVNTUAACAAAABAAEADgAAAAGgokC1m19lS4kVAAAAAAAAAAAAKAAoAA8AAAABgGxHQAAAA9TUFJPAgAIAFMAUABSAE8AAQAGAEUAUABNAAQAIgBpAG4AdAByAGEALgBzAHAAcgBvAC4AYwBvAG0ALgBiAHIAAwAqAEUAUABNAC4AaQBuAHQAcgBhAC4AcwBwAHIAbwAuAGMAbwBtAC4AYgByAAUAIgBpAG4AdAByAGEALgBzAHAAcgBvAC4AYwBvAG0ALgBiAHIABwAIALnzCucieM4BAAAAAA==
    X-Powered-By: ASP.NET
    MicrosoftSharePointTeamServices: 14.0.0.6029
    Date: Wed, 03 Jul 2013 19:24:13 GMT
    Content-Length: 0
    
    HTTP/1.1 100 Continue
    
    HTTP/1.1 500 Internal Server Error
    Cache-Control: private
    Transfer-Encoding: chunked
    Content-Type: text/xml; charset=utf-8
    Server: Microsoft-IIS/7.5
    SPRequestGuid: 2aa20196-638b-42ac-923c-6017e7590e6f
    Set-Cookie: WSS_KeepSessionAuthenticated={cf70bf0e-5b5a-4ddd-b977-519872a28a13}; path=/
    X-SharePointHealthScore: 1
    Set-Cookie: WSS_KeepSessionAuthenticated={cf70bf0e-5b5a-4ddd-b977-519872a28a13}; path=/
    X-AspNet-Version: 2.0.50727
    Persistent-Auth: true
    X-Powered-By: ASP.NET
    MicrosoftSharePointTeamServices: 14.0.0.6029
    Date: Wed, 03 Jul 2013 19:24:13 GMT
    
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://Microsoft.Office.Project.Server">a:ProjectServerFaultCode</faultcode><faultstring>Unhandled Communication Fault occurred</faultstring><detail><string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">Sequence contains no elements</string></detail></s:Fault></s:Body></s:Envelope>

    When I call CreateTimesheet for example, the 3rd HTTP block comes with a HTTP 200 and an empty envelope, meaning success.

    Wednesday, July 3, 2013 7:39 PM
  • Hmm, I've take the <xs:schema > part from the envelope, and also the <diffgram> part, leaving just the <TimesheetDataSet> part.

    Firstly, it returned an error, saying the diffgram was needed. Then I added back the <diffgram> part, around the TimesheetDataSet, and the answer was a real PrepareTimesheetLineResponsee, finally. :) But with an empty dsDelta:

    HTTP/1.1 401 Unauthorized Server: Microsoft-IIS/7.5 SPRequestGuid: 46fdbed5-319e-4414-b321-5f3f450542d4 WWW-Authenticate: NTLM X-Powered-By: ASP.NET MicrosoftSharePointTeamServices: 14.0.0.6029 Date: Thu, 04 Jul 2013 16:53:17 GMT Content-Length: 0 HTTP/1.1 401 Unauthorized Server: Microsoft-IIS/7.5 SPRequestGuid: 2599d5c0-5cfb-45fa-9896-e6dfe3bed02b WWW-Authenticate: NTLM TlRMTVNTUAACAAAABAAEADgAAAAGgokCQBb4dk/PPzEAAAAAAAAAAKAAoAA8AAAABgGxHQAAAA9TUFJPAgAIAFMAUABSAE8AAQAGAEUAUABNAAQAIgBpAG4AdAByAGEALgBzAHAAcgBvAC4AYwBvAG0ALgBiAHIAAwAqAEUAUABNAC4AaQBuAHQAcgBhAC4AcwBwAHIAbwAuAGMAbwBtAC4AYgByAAUAIgBpAG4AdAByAGEALgBzAHAAcgBvAC4AYwBvAG0ALgBiAHIABwAIAHowp/vWeM4BAAAAAA== X-Powered-By: ASP.NET MicrosoftSharePointTeamServices: 14.0.0.6029 Date: Thu, 04 Jul 2013 16:53:17 GMT Content-Length: 0 HTTP/1.1 100 Continue HTTP/1.1 200 OK Cache-Control: private Transfer-Encoding: chunked Content-Type: text/xml; charset=utf-8 Server: Microsoft-IIS/7.5 SPRequestGuid: ea85fe59-7443-4e79-9be5-3017008389a7 Set-Cookie: WSS_KeepSessionAuthenticated={cf70bf0e-5b5a-4ddd-b977-519872a28a13}; path=/ X-SharePointHealthScore: 1 Set-Cookie: WSS_KeepSessionAuthenticated={cf70bf0e-5b5a-4ddd-b977-519872a28a13}; path=/ X-AspNet-Version: 2.0.50727 Persistent-Auth: true X-Powered-By: ASP.NET MicrosoftSharePointTeamServices: 14.0.0.6029 Date: Thu, 04 Jul 2013 16:53:17 GMT

    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
      <s:Body>
        <PrepareTimesheetLineResponse xmlns="http://schemas.microsoft.com/office/project/server/webservices/TimeSheet/">
          <dsDelta>
            <xs:schema id="dsDelta" targetNamespace="http://schemas.microsoft.com/office/project/server/webservices/TimeSheet/" attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mstns="http://schemas.microsoft.com/office/project/server/webservices/TimeSheet/" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
              <xs:element name="dsDelta" msdata:IsDataSet="true" msdata:Locale="pt-BR">
                <xs:complexType>
                  <xs:choice minOccurs="0" maxOccurs="unbounded"/>
                </xs:complexType>
              </xs:element>
            </xs:schema>
            <diffgr:diffgram xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"/>
          </dsDelta>
        </PrepareTimesheetLineResponse>
      </s:Body>
    </s:Envelope>

    Any ideas of what could be happening now? Why the empty dsDelta?

    I'll try to find a XML/Diffgram validator or implement one, maybe there's something wrong with it.


    Thursday, July 4, 2013 5:10 PM