Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOAP API Request: Filter with [ ] does not work #36

Open
w3ich3rt opened this issue Oct 14, 2022 · 0 comments
Open

SOAP API Request: Filter with [ ] does not work #36

w3ich3rt opened this issue Oct 14, 2022 · 0 comments

Comments

@w3ich3rt
Copy link

Hey guys,

we are using the WebService (1.8.0) and I have a problem when requesting the GetCMDeviceCollection endpoint.
I'll use the python requests library and the payload looks like this:

<!--  Secret is removed. -->

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
      <soap12:Body>
           <GetCMDeviceCollections xmlns="http://www.scconfigmgr.com">
           <secret>XXXXXXX-XXXXXXX-XXXXXXX-XXXXXX-XXXXXX</secret>
           <filter>[OSD]></filter>
           </GetCMDeviceCollections>
      </soap12:Body>  
</soap12:Envelope>

I try to filter something with square brackets and it is showing me everything... the request is not filtered... i also tried to use a CDATA element or some XML encoding... but this does not work either.

What is wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant