My Oracle Support Banner

Inbound Webservice throws error : The prefix "xmlns" cannot be bound to any namespace explicitly; neither can the namespace for "xmlns" be bound to any prefix explicitly (Doc ID 2779580.1)

Last updated on JUNE 01, 2021

Applies to:

Siebel CRM - Version 21.4 and later
Information in this document applies to any platform.

Symptoms

While invoking an inbound webservice throws the below error.

EAI - com.siebel.swsm.context.SWSMRequestStreamer:getHttpRequestSoapHeaders Inbound SOAP Message - XML parsing failed at line number : 1 and column number : 244. : The prefix "xmlns" cannot be bound to any namespace explicitly; neither can the namespace for "xmlns" be bound to any prefix explicitly.

Steps to reproduce
---------------------
1. Launch the Siebel application --> Go to the Administration - Webservice --> Click on Inbound Webservice.

2. Query for any vanilla webservice for example 'Siebel Account' and click on Generate WSDL.

3. Save it.

4. Launch the SOAP UI tool and import the generated 'Siebel Account' WSDL file.

5. Update the required field values in the request payload. The request payload looks as below:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:asi="http://siebel.com/asi/">
   <soapenv:Header>
    <UsernameToken xmlns="http://siebel.com/webservices">xxxxx</UsernameToken>
    <PasswordText xmlns="http://siebel.com/webservices">yyyy</PasswordText>
    <SessionType xmlns="http://siebel.com/webservices">None</SessionType>
  </soapenv:Header>
  <soapenv:Body>
    <--- data goes here--- >
 </soapenv:Body>
</soapenv:Envelope>

 6. Now, add the custom namespace xmlns:ns17="http://www.w3.org/2000/xmlns/" in the request payload. The request payload looks as below:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:asi="http://siebel.com/asi/" xmlns:ns17="http://www.w3.org/2000/xmlns/">
  <soapenv:Header>
    <UsernameToken xmlns="http://siebel.com/webservices">xxxx</UsernameToken>
    <PasswordText xmlns="http://siebel.com/webservices">yyyy</PasswordText>
    <SessionType xmlns="http://siebel.com/webservices">None</SessionType>
  </soapenv:Header>
  <soapenv:Body>
   <--- data goes here--- >
 </soapenv:Body>
</soapenv:Envelope>

 7. Click on run button to send the request to Siebel.

 8. Siebel sends the response with the error.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.