Skip to Content
avatar image
Former Member

SOAP request configuration (namespaces)

Hi there,

I am trying to consume a web service via CAF/Netweaver which requests a certain name space. here an extract of the wsdl.

- <wsdl:types>


- <s:element name="GetAddressPlus">

- <s:complexType>

- <s:sequence>

<s:element minOccurs="0" maxOccurs="1" name="Address" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="Address2" type="s:string" />


Unfortunately, the SOAP request which gets created by the Netweaver SOAP adapter (which is correct) can't be understood by the service provider (see pns:GetAddressPlus)

<?xml version="1.0" encoding="utf-8"?>" xmlns:xs="" xmlns:xsi="">


<pns:Address>1016 Poplar Drive</pns:Address>




For the service to work properly, the namespace shall not be attached to the parameters, but just added to the parent element of the message, see below (only GetAddressPlus, no leading namespace)

<?xml version="1.0" encoding="utf-8"?>" xmlns:xs="" xmlns:xsi="">


<Address>1016 Poplar Drive</Address>




Is there a workaround to configure the SOAP generation in such a way, that no namespaces are used within the SOAP message ?

Thx, Nick

Edited by: Nick Laqua on Aug 10, 2009 9:00 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 11, 2009 at 09:03 AM


    Technically NW SOAP request is valid one and service provider should understand it.

    Can you do following:

    - Try to call this service from SOAP UI or WSNavigator and post error message if you receive any.

    - Try it with namespace prefix and without namespace prefix.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      Using SOAP UI you can type whatever you want to type in request page (SOAP Message), Do not type in form but in xml.

      So in first attempt type SOAP Message with prefix,

      in Second attempt modify SOAP request without prefix manually.

      Please post error message (as you said "that the request can't have zero length") this means Service is not receiving request at all, else message should be about "Not well formed" message.

      I believe that this error is not really related to formatting of request and namespace

      Please try it with SOAP UI.