|
From: <jue...@we...> - 2004-05-16 19:16:53
|
Thanks for spotting this - indeed, should be "urn:JPetStore" - to be =
fixed promptly.
=20
I think this comes straight from the original iBATIS JPetStore, so might =
still be in there too.
=20
Juergen
=20
________________________________
Von: spr...@li... im Auftrag =
von Hunter Kelly
Gesendet: Mi 05.05.2004 12:39
An: spr...@li...
Betreff: [Springframework-developer] confusion in jpetstore sample
Hi there, I'm plowing through the wonderful world of SOAP, Jax-RPC, =
Axis, etc.
I was looking at the sample server-deploy.wsdd in
samples/jpetstore/war/WEB-INF/server-config.wsdd, and come across the
following:
<service name=3D"OrderService" provider=3D"java:RPC">
<parameter name=3D"allowedMethods" value=3D"*"/>
<parameter name=3D"className"
value=3D"org.springframework.samples.jpetstore.service.server.JaxRpcOrde
rService"/>
<beanMapping qname=3D"jpetstore:Order" =
xmlns:jpetstore=3D"urn:BeanService"
languageSpecificType=3D
"java:org.springframework.samples.jpetstore.domain.Order"/>
<beanMapping qname=3D"jpetstore:LineItem"
xmlns:jpetstore=3D"urn:BeanService" languageSpecificTy
pe=3D"java:org.springframework.samples.jpetstore.domain.LineItem"/>
<beanMapping qname=3D"jpetstore:Item" =
xmlns:jpetstore=3D"urn:BeanService"
languageSpecificType=3D"
java:org.springframework.samples.jpetstore.domain.Item"/>
<beanMapping qname=3D"jpetstore:Product"
xmlns:jpetstore=3D"urn:BeanService" languageSpecificTyp
e=3D"java:org.springframework.samples.jpetstore.domain.Product"/>
</service>
Now the problem I have is with the beanMappings. My problem is the =
attribute
xmlns:jpetstore=3D"urn:BeanService" and I kept wondering what the
"urn:BeanService" was referring to, until I realized that is from one of =
the
examples in the Axis distribution.
I think it would be much clearer if the beanMappings looked like:
<beanMapping qname=3D"jpetstore:LineItem" =
xmlns:jpetstore=3D"urn:JPetStore" .../>
I think that would make it easier for people coming into it (like me) to
realize that the "urn:JPetStore" was just a local constant, instead of =
some
kind of deep magic - "urn:BeanService" is needlessly confusing.
I can make the changes myself and send in a patch if people are =
interested,
but I figured that it's such a small change a comitter might find it =
easier
to do themselves...
H
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|