Jump to content

Recommended Posts

Posted (edited)

Hi, I am running script to get value from webservice that was written in Java.

The script is failed although that i am sure that i am sending the write number of parameters to the webservice method.

Can you please help?

the error is:

Client: Incorrect number of parameters supplied for SOAP request
Client:Incorrect number of parameters supplied for SOAP request HRESULT=0x80070057+>14:22:04 AutoIT3.exe ended.rc:0

The script is

Dim $oMyError, $xmlFile, $oNode, $strReturn, $objReq

$oMyError = ObjEvent("AutoIt.Error", "MyErrFunc")
$xmlDoc = ObjCreate("Msxml2.DOMdocument.4.0")
$SOAPClient = ObjCreate("MSSOAP.SOAPClient")
If @error Then
    ConsoleWrite($SOAPClient.faultString)
    ConsoleWrite($SOAPClient.detail)
EndIf

$SOAPClient.mssoapinit("http://xxx.global:2696/jsp/agent/api/Api.wsdl")
If @error Then
    ConsoleWrite($SOAPClient.faultString)
    ConsoleWrite($SOAPClient.detail)
EndIf

$strReturn = $SOAPClient.updateQueueCount("lab", "lab", "http://ildtrd291.xxx.global/topaz")
If @error Then
    ConsoleWrite($SOAPClient.faultString & @CRLF)
    ConsoleWrite($SOAPClient.detail)
EndIf

Func SOAPErrors()
    If @error Then
        ConsoleWrite($SOAPClient.faultString)
        ConsoleWrite($SOAPClient.detail)
    EndIf
EndFunc;==>SOAPErrors
Func MyErrFunc()
    $HexNumber = Hex($oMyError.number, 8)
    MsgBox(0, "COM Error Test", "We intercepted a COM Error !" & @CRLF & @CRLF & _
            "err.description is: " & @TAB & $oMyError.description & @CRLF & _
            "err.windescription:" & @TAB & $oMyError.windescription & @CRLF & _
            "err.number is: " & @TAB & $HexNumber & @CRLF & _
            "err.lastdllerror is: " & @TAB & $oMyError.lastdllerror & @CRLF & _
            "err.scriptline is: " & @TAB & $oMyError.scriptline & @CRLF & _
            "err.source is: " & @TAB & $oMyError.source & @CRLF & _
            "err.helpfile is: " & @TAB & $oMyError.helpfile & @CRLF & _
            "err.helpcontext is: " & @TAB & $oMyError.helpcontext _
            )
    SetError(1); to check for after this function returns
EndFunc;==>MyErrFunc
Edited by lsakizada

Be Green Now or Never (BGNN)!

Posted (edited)

Use this instead and it will at least give you an error you can use to figure out where the problem lies:

Dim $oMyError, $xmlFile, $oNode, $strReturn, $objReq

$oMyError = ObjEvent("AutoIt.Error", "MyErrFunc")
$xmlDoc = ObjCreate("Msxml2.DOMdocument.4.0")
$SOAPClient = ObjCreate("MSSOAP.SOAPClient")
$SOAPClient.mssoapinit("http://xxx.global:2696/jsp/agent/api/Api.wsdl")
$strReturn = $SOAPClient.updateQueueCount("lab", "lab", "http://ildtrd291.xxx.global/topaz")

Func MyErrFunc()
    $HexNumber = Hex($oMyError.number, 8)
    MsgBox(0, "COM Error Test", "We intercepted a COM Error !" & @CRLF & @CRLF & _
            "err.description is: " & @TAB & $oMyError.description & @CRLF & _
            "err.windescription:" & @TAB & $oMyError.windescription & @CRLF & _
            "err.number is: " & @TAB & $HexNumber & @CRLF & _
            "err.lastdllerror is: " & @TAB & $oMyError.lastdllerror & @CRLF & _
            "err.scriptline is: " & @TAB & $oMyError.scriptline & @CRLF & _
            "err.source is: " & @TAB & $oMyError.source & @CRLF & _
            "err.helpfile is: " & @TAB & $oMyError.helpfile & @CRLF & _
            "err.helpcontext is: " & @TAB & $oMyError.helpcontext _
            )
    SetError(1); to check for after this function returns
EndFunc;==>MyErrFuncoÝ÷ Ù.®Ç+pjËhÛh
ì¢W®+^§zºè®jö¥¹æî´#iËb¢{­é÷öØ(x-¡ÈZ­ç«®ïj[:yrÊ«9¸Â­æ­{¥¬×¬jYB8Ç«®ìÂ)emè§µêÜz^u¼ÈJëéÜj|°k"0¢é]f w­êk¡¹^+-ã*Þj×z¸Z¦Ì¨ºÈhºWm¯#g­{-y§@ØhºHßÙ§¢×Ú)bj¼"¶ð%²aÈZ²z-)à¶hÂ+aÊ«¦ºéºÜ!jج¶8Ä®º+±û§rبú+"Ýý²w¯z¶ÞxjY^t@ÈM*+¯"Ù÷öÙè¶'Ê«IëD®º+Ö)ì×­ã2ºÅºw¶Ëb[zkn+kyÛ§u©í¶nµ©e¡ûa¢Ç~ËZµéÛ"ú+zºè­È^rH§;¬¶­¶´ß¤ð¥éí}«¥µ+kxÝ7é#
Edited by Airwolf
Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt
Posted (edited)

Does someone has an idea about the error I am getting?

I still need to resolve this issue. Thanks.

Edited by lsakizada

Be Green Now or Never (BGNN)!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...