[AXIS2] client side : Unsupported Media Type
Bonjour
j'essaye d'interroger un service ... à partir du wsdl et d'axis2, j'ai généré la classe cliente (Stub). En utilisant soapUI pour interroger le service, pas de souci mais via java et l'instantiation du Stub, je me retrouve avec :
Code:
1 2 3 4 5 6 7 8 9 10 11
|
org.apache.axis2.AxisFault: Transport error: 415 Error: Unsupported Media Type
at org.apache.axis2.transport.http.HTTPSender.handleResponse(Lorg.apache.axis2.context.MessageContext;Lorg.apache.commons.httpclient.HttpMethodBase;)V(HTTPSender.java:298)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(Lorg.apache.axis2.context.MessageContext;Ljava.net.URL;Ljava.lang.String;)V(HTTPSender.java:192)
at org.apache.axis2.transport.http.HTTPSender.send(Lorg.apache.axis2.context.MessageContext;Ljava.net.URL;Ljava.lang.String;)V(HTTPSender.java:77)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(Lorg.apache.axis2.context.MessageContext;Lorg.apache.axis2.addressing.EndpointReference;Lorg.apache.axiom.om.OMOutputFormat;)V(CommonsHTTPTransportSender.java:327)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Lorg.apache.axis2.context.MessageContext;)Lorg.apache.axis2.engine.Handler$InvocationResponse;(CommonsHTTPTransportSender.java:206)
at org.apache.axis2.engine.AxisEngine.send(Lorg.apache.axis2.context.MessageContext;)V(AxisEngine.java:396)
at org.apache.axis2.description.OutInAxisOperationClient.send(Lorg.apache.axis2.context.MessageContext;)Lorg.apache.axis2.context.MessageContext;(OutInAxisOperation.java:374)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(Z)V(OutInAxisOperation.java:211)
at org.apache.axis2.client.OperationClient.execute(Z)V(OperationClient.java:163) |
pour infos, le proxy est ok ... quelqu'un aurait une suggestion ?
merci d'avance,
Sébastien