Error with webservices: javax.xml.stream.XMLStreamException

0

I created a webservice on java client from wsdl , on

tomcat7 and axis2

When creating the class to invoke the operations (methods) of the webservice it gives me the Error:

  

javax.xml.stream.XMLStreamException: Message: Encoding Name   invalid "".

Someone who can guide me? Thanks.

org.apache.axis2.AxisFault: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[-1,-1]
Message: Nombre de codificación no válido "".
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
    at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:122)
    at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:66)
    at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:347)
    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:414)
    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:150)
    
asked by merry 21.10.2016 в 20:53
source

1 answer

0

Check the xml request that you are sending, that error is because the service is not understanding something about the structure of what you are sending.

For example

If the request is

<startDate>""</startDate>

But the service expects a Date () type, there will be problems because there is no data compatility.

If the request is

<tag_1>"10:00"</tag_1>

But the service expects a 'Tag_1' tag

If the request is

<tag_1>"10:00"</tag_1>

But the service expects Tag_1 and startDate.

    
answered by 22.10.2016 / 00:29
source