Forum Discussion

JimL's avatar
JimL
Contributor
16 years ago

Any way to automatically set namespace on envelope, etc.?

Hi,

When we import WSDLs into SOAPUI, the namespace prefix on the Envelope, Header, and Body are appearing as "soapenv:", whereas we need it to be "env:" on the requests.

For now, we are having to edit the requests by hand.

Is there a way to configure SOAPUI so that it'd use "env:" automatically?

Thanks,
Jim
  • JimL's avatar
    JimL
    Contributor
    Hi,

    Does anyone have any idea about how to do this?

    Thanks,
    Jim
  • Hi Jim,


    Currently there's no way to change namespace prefixes. As long as namespace prefix is declared properly and your server is SOAP compliant you shouldn't have any problems. I assume, your server is hardcoded so that it expects env prefix and nothing else. Is that the case?

    I suggest that you post a feature request and we'll look into implement it in foreseeable future.


    Cheers!
    /Nenad Nikolic a.k.a. Shonzilla
  • JimL's avatar
    JimL
    Contributor
    Hi,

    Thanks for the info.  Mainly I was just checking because I thought that I might have missed this capability somewhere.

    I was actually kind of surprised myself that the server hosting the webservice (WebLogic) cared that the namespace was not "env:", since the URL was the same for both "env:" and "soapenv:"

    I am curious though, WHAT (and why) is deciding that the namespace on the request envelopes should be "soapenv:"?

    Is it SOAPUI itself?

    The reason for my question is that I don't see "soapenv" anywhere in the WSDL that I imported into SOAPUI, so is "soapenv" just some kind of default decision that SOAPUI makes?

    Thanks again,
    Jim
  • Hi Jim,


    The namespace prefix you're seeing is generated from the namespace URI by the underlying library used by soapUI, XMLBeans.


    Cheers!
    /Nenad Nikolic a.k.a. Shonzilla
  • JimL's avatar
    JimL
    Contributor
    Hi,

    Ok, thanks.  As you suggested, I've posted a feature request.

    Jim