문제

i have this xml / soap project.

there is everywhere something called ns-uri / namespace uri.

for example here:

<class name="org.webmedia.test.pojo.City">
       <map-to xml="addCityRequest" ns-uri="http://krams915.blogspot.com/ws/schema/oss"/>

       <field name="id" type="integer">
          <bind-xml name="id" node="element"/>
       </field>

       <field name="name" type="string">
          <bind-xml name="name" node="element"/>
       </field>
</class>

what is it for? can i change it? can i remove it? it leads to dead website

도움이 되었습니까?

해결책

The ns-uri refers to a XML namespace URI. Without it, Castor's binding won't work properly.

Yes, you can change it (but it has to match the namespace URI of the target XML), and yes you can remove it (but it will likely generate/parse the wrong XML). The fact that it's a dead URL doesn't matter - namespace URIs are just string identifiers that often look like URLs, but they don't have to go anywhere.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top