EcoStruxure IT forum
Schneider Electric support forum about installation and configuration for DCIM including EcoStruxure IT Expert, IT Advisor, Data Center Expert, and NetBotz
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 04:40 AM . Last Modified: 2024-04-08 11:35 PM
Asking on behalf of Nicholas:
I am trying to get all asset tags from all servers in all rooms and their corresponding IP and/or name. I first want to get all server rooms and I am having no luck. I have followed the Youtube video posted here: with the URL: http://[IPAddress]:80/isxo/webservices/equipment/InventoryWebService-v2?wsdl I have also tried using Invoke-WebRequest and New-WebServiceProxy via powershell and I keep getting different behavior, none of which give me all server rooms!
(CID:106891427)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 04:41 AM . Last Modified: 2024-04-08 11:35 PM
I finally got it to work with PowerShell. I will post my solution for anyone who may need it in the future! $URI = 'http://[IP Address]:80/isxo/webservices/equipment/InventoryWebService-v2' $cred = Get-Credential $proxy = iwr -Uri $URI -Credential $cred -Method POST -infile request.xml -ContentType "text/xml" [xml]$result = $PROXY.Content The request.xml will just contain the XML content of what you would like to do, copy and paste from here: Inventory web service calls
(CID:106892073)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 04:40 AM . Last Modified: 2024-04-08 11:35 PM
Hi Nicholas, Stein
I assume DCO 7.5 - not v8. When I have issues with SoapUI it's usually
I see you're using v2. Any reason why such an old version? Can you try v8?
Cheers
Ed
(CID:106891518)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 04:40 AM . Last Modified: 2024-04-08 11:35 PM
The http://[IPAddress]:80/isxo/webservices/equipment/InventoryWebService-v2?wsdl url returns the wsdl for the SOAP API.
When calling the API you want to use the url http://[IPAddress]:80/isxo/webservices/equipment/InventoryWebService-v2.
What are the different behavior you are getting when using PowerShell?
Btw. there actually is a v9 of that API
(CID:106891543)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 04:41 AM . Last Modified: 2024-04-08 11:35 PM
I am now getting it to work on SOAP API, but I would much rather use powershell. When I create a proxy with the wsdl and try to call $proxy.getAllServerRooms() i get an error about 0 arguments. This method does not need arguments?? [xml]$response = $proxy.getAllServerRooms() Exception calling "getAllServerRooms" with "0" argument(s): "Unable to connect to the remote server" $proxy = New-WebServiceProxy -Uri $URI -Credential $cred At line:1 char:1 + [xml]$response = $proxy.getAllServerRooms() + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException When I try to Invoke-WebRequest I get either a InvalidOperation error or a "cannot send a content-body with this verb type, if I use a get request. iwr -Uri $URI -Credential $cred -Body .\request.xml -Method POST iwr :
(CID:106891630)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 04:41 AM . Last Modified: 2024-04-08 11:35 PM
I have no experience with PowerShell. It looks like the error you are getting in your first example is "Unable to connect to the remote server". It looks like the information about 0 arguments is not the error. If the proxy is generated based on the wsdl be aware that the port is hardcoded to 8080 in the WSDL. The SOAP services only works with POST requests to my knowledge.
(CID:106891634)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 04:41 AM . Last Modified: 2024-04-08 11:35 PM
I finally got it to work with PowerShell. I will post my solution for anyone who may need it in the future! $URI = 'http://[IP Address]:80/isxo/webservices/equipment/InventoryWebService-v2' $cred = Get-Credential $proxy = iwr -Uri $URI -Credential $cred -Method POST -infile request.xml -ContentType "text/xml" [xml]$result = $PROXY.Content The request.xml will just contain the XML content of what you would like to do, copy and paste from here: Inventory web service calls
(CID:106892073)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 04:41 AM . Last Modified: 2023-10-31 11:35 PM
This question is closed for comments. You're welcome to start a new topic if you have further comments on this issue.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.