×

Loading...
Ad by
  • 予人玫瑰,手有余香:加拿大新天地工作移民诚聘求职顾问&行业导师!
Ad by
  • 予人玫瑰,手有余香:加拿大新天地工作移民诚聘求职顾问&行业导师!

请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