Bonjour,
j'ai une methode accesible via mon webservice (deployer grace à axis2) dont le prototype est :
public int soumettre(org.w3c.dom.Document inDoc);
J'utilise soapUI pour tester.
or je ne parviens pas à mettre un document xml en parametre (inDoc)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
| <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices" xmlns:xsd="http://dom.w3c.org/xsd">
<soapenv:Header/>
<soapenv:Body>
<web:soumettre>
<!--Optional:-->
<web:inDoc>
<po xmlns="http://www.skatestown.com/ns/po" id="50383" submitted="2001-12-06">
<billTo>
<company>The Skateboard Warehouse</company>
<street>One Warehouse Park</street>
<street>Building 17</street>
<city>Boston</city>
<state>MA</state>
<postalCode>01775</postalCode>
</billTo>
<shipTo>
<company>The Skateboard Warehouse</company>
<street>One Warehouse Park</street>
<street>Building 17</street>
<city>Boston</city>
<state>MA</state>
<postalCode>01775</postalCode>
</shipTo>
<order>
<item sku="318-BP" quantity="5">
<description>Skateboard backpack; five pockets</description>
</item>
<item sku="947-TI" quantity="12">
<description>Street-style titanium skateboard.</description>
</item>
<item sku="008-PR" quantity="1000"/>
</order>
</po>
</web:inDoc>
</web:soumettre>
</soapenv:Body>
</soapenv:Envelope> |
Avec n'importe quel fragment de XML que je met j'obtient ce retour.
1 2 3 4 5 6 7 8 9
| <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>org.w3c.dom.Document</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope> |
Que dois-je faire ?
Partager