×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

请VB和SOAP高手分析错误原因

本文发表在 rolia.net 枫下论坛Establish programmatic log-on to Project Server using guidelines
from Microsoft in url below :

Dim sURL As String
sURL = "http://myserver/projectserver/LgnIntAu.asp"
Dim oXMLDocument As DOMDocument30
Set oXMLDocument = New DOMDocument30
oXMLDocument.Load sURL

Cookie Successfully returned!

PDS call to SOAP with generic PDSINFO XML message :

Dim sURL As String, sCookie As String, sXML As String,
sRetVal As String
Dim Client As SoapClient
sXML = "<Request><PDSInfo/></Request>"
sURL = "http://servername/projectserver/PDS.wsdl"
Set Client = New SoapClient
Client.MSSoapInit sURL
sRetVal = Client.SoapXMLRequest(sCookie, sXML)
MsgBox prompt:= sRetVal

REGARDLESS of the XML string used, we get the following error
message :
Invalid at the top level of the document.
Attachment:Maximum retry on the connection exceeded. HRESULT=0x80004005:
Unspecified error
Attachment:Maximum retry on the connection exceeded. HRESULT=0x80004005:
Unspecified error
- Client:An unanticipated error occurred during the processing of this request.
HRESULT=0x80004005: Unspecified error
- Client:Sending the Soap message failed or no recognizable response was received
HRESULT=0x80004005: Unspecified error
- Client:Unspecified client error. HRESULT=0x80004005: Unspecified error

It seems like PDS cannot get connected to the database更多精彩文章及讨论,请光临枫下论坛 rolia.net
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / 请VB和SOAP高手分析错误原因
    本文发表在 rolia.net 枫下论坛Establish programmatic log-on to Project Server using guidelines
    from Microsoft in url below :

    Dim sURL As String
    sURL = "http://myserver/projectserver/LgnIntAu.asp"
    Dim oXMLDocument As DOMDocument30
    Set oXMLDocument = New DOMDocument30
    oXMLDocument.Load sURL

    Cookie Successfully returned!

    PDS call to SOAP with generic PDSINFO XML message :

    Dim sURL As String, sCookie As String, sXML As String,
    sRetVal As String
    Dim Client As SoapClient
    sXML = "<Request><PDSInfo/></Request>"
    sURL = "http://servername/projectserver/PDS.wsdl"
    Set Client = New SoapClient
    Client.MSSoapInit sURL
    sRetVal = Client.SoapXMLRequest(sCookie, sXML)
    MsgBox prompt:= sRetVal

    REGARDLESS of the XML string used, we get the following error
    message :
    Invalid at the top level of the document.
    Attachment:Maximum retry on the connection exceeded. HRESULT=0x80004005:
    Unspecified error
    Attachment:Maximum retry on the connection exceeded. HRESULT=0x80004005:
    Unspecified error
    - Client:An unanticipated error occurred during the processing of this request.
    HRESULT=0x80004005: Unspecified error
    - Client:Sending the Soap message failed or no recognizable response was received
    HRESULT=0x80004005: Unspecified error
    - Client:Unspecified client error. HRESULT=0x80004005: Unspecified error

    It seems like PDS cannot get connected to the database更多精彩文章及讨论,请光临枫下论坛 rolia.net
    • Have you tried this? ->
      • Yes, these code are copied from Microsoft