Announcement Announcement Module
Collapse
No announcement yet.
Mapping namespace to prefix in SOAP? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mapping namespace to prefix in SOAP?

    Hello,

    when I point soapUI at my web service project I get the following request:

    Code:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://company.com/app/schemas">
       <soapenv:Header/>
       <soapenv:Body>
          <sch:MyRequest>
    ...
    Is it possible to instruct spring-ws to generate a Envelope node with xmlsns="http://company.com/app/schemas" instead of xmlns:sch="http://company.com/app/schemas"?

    What's a common practise? To map application schema's namespace to prefix or not?

    Thanks!

    Kind regards,
    Fritz

  • #2
    I suppose correct way would be something like this?

    Code:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Header/>
       <soapenv:Body>
          <MyRequest xmlns="http://company.com/app/schemas">
    ...

    Comment

    Working...
    X