Skip to main content
Support

KB Article #174887

Invalid content runtime error when WSDL in gateway uses namespaces containing a space.

Problem

A WSDL contract has space present in a namespace. e.g.
<schema elementFormDefault="unqualified" targetNamespace="http://support.axway.com/AB TEST/PTR_NOTIFY_REGISTER_RECLAIM_MLS" xmlns="http://www.w3.org/2001/XMLSchema">

 

Resolution

Whitespace is allowed in the targetNamespace anyURL but should be discouraged whenever possible.

The workaround for this would often be to use URL encoding for special characters which will normally require replacing spaces with %20. 

<schema elementFormDefault="unqualified" targetNamespace="http://support.axway.com/AB%20TEST/PTR_NOTIFY_REGISTER_RECLAIM_MLS" xmlns="http://www.w3.org/2001/XMLSchema">