Powershell and WSDL Question
i've read many posting using powershell wsdl , call method. in fact can using 1 of many weather examples out there. problem comes in when wsdl gets little more complicated.
i have internal wsdl use inside company pull trouble tickets. using storm able pass required data , response. generated raw data sent.
<?xml version="1.0" encoding="utf-8"?> <soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema"> <soap:header> <authenticationinfo xmlns="urn:hpdgetticketdetails"> <username>username</username> <password>password</password> <authentication /> <locale /> <timezone /> </authenticationinfo> </soap:header> <soap:body> <opget xmlns="urn:hpdgetticketdetails"> <viewohdticketrequest xmlns="http://www.mycompany.com/xmlschema"> <webservicedataset> <requestid xmlns="http://www.mycompany.com/xmlschema/bim" /> <webservicename xmlns="http://www.mycompany.com/xmlschema/bim" /> <authenticationid xmlns="http://www.mycompany.com/xmlschema/bim" /> <authenticationpassword xmlns="http://www.mycompany.com/xmlschema/bim" /> </webservicedataset> <inputdataset> <troubleticketid xmlns="http://www.mycompany.com/xmlschema/bim">hd00004798638</troubleticketid> </inputdataset> </viewohdticketrequest> </opget> </soap:body> </soap:envelope>
$uri = <my wsdl uri> $mywsdl = new-webserviceproxy -uri $uri # add authentication bit # add inputdataset stuff $response = $mywsdl.opget
the values need pass troubleticketid, username, password
any appreciated, thanks
josh
so i'm missing pretty everything. figure should $data.inputdataset.trouble.ticket.id = "hd12345678901" or that.
Windows Server > Windows PowerShell
Comments
Post a Comment