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

Support of Content Type: application/soap+xml #759

Closed
mrutid opened this issue Oct 3, 2023 · 4 comments
Closed

Support of Content Type: application/soap+xml #759

mrutid opened this issue Oct 3, 2023 · 4 comments

Comments

@mrutid
Copy link
Member

mrutid commented Oct 3, 2023

Component

No response

Is your feature request related to a problem? Please describe

We are going to receive SOAP-XML messages/measures, as far it is not a JSON it will be provided as the value of a given measure /attrs/measure.

Describe the solution you'd like

there are several approaches we can follow:

  1. Provide the XML string as the value of the measure (then rely un JEXL for further parsing)
  2. Parse the XML into a JSON as the value of the measure (then rely un JEXL for further parsing)

Describe alternatives you've considered

No response

The systemd version you checked that didn't have the feature you are asking for

No response

@AlvaroVega
Copy link
Member

We will need some examples of soap/xml messages

@fgalan
Copy link
Member

fgalan commented Oct 6, 2023

We will need some examples of soap/xml messages

Please obfuscate sensible info if that soap/xml comes from a internal/private API.

@mapedraza
Copy link
Collaborator

Take this XML as example:

<soap:Envelope
	xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\">
	<soapenv:Header
		xmlns:soapenv=\"http://www.w3.org/2003/05/soap-envelope\"/>
		<soapenv:Body
			xmlns:soapenv=\"http://www.w3.org/2003/05/soap-envelope\">
			<ns21:notificationEventRequest
				xmlns:ns21=\"http://myurl.com\">
				<ns21:Param1>ABC12345</ns21:Param1>
				<ns21:Param2/>
				<ns21:Date>28/09/2023 11:48:15 +0000</ns21:Date>
				<ns21:NestedAttr>
					<ns21:SubAttr>This is a description</ns21:SubAttr>
				</ns21:NestedAttr>
				<ns21:Status>Assigned</ns21:Status>
				<ns21:OriginSystem/>
			</ns21:notificationEventRequest>
		</soapenv:Body>
	</soap:Envelope>

@fgalan
Copy link
Member

fgalan commented Nov 17, 2023

PR #771

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

4 participants