Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
Simplify SOAP XML namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
maufl committed Jan 12, 2020
1 parent 4a51dc9 commit 9b2f5d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ pub const DELETE_PORT_MAPPING_HEADER: &'static str =

pub fn format_get_external_ip_message() -> String {
format!(r#"<?xml version="1.0"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<m:GetExternalIPAddress xmlns:m="urn:schemas-upnp-org:service:WANIPConnection:1">
</m:GetExternalIPAddress>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>"#)
</s:Body>
</s:Envelope>"#)
}

pub fn format_add_any_port_mapping_message(
Expand Down

0 comments on commit 9b2f5d5

Please sign in to comment.