interoperability issue Java Axis client -- .NET reporting web

interoperability issue Java Axis client -- .NET reporting web

Post by SmF2YSBjbG » Thu, 17 Mar 2005 02:31:01


or the Render message that I was sending, I didn't pass any parameters. I
have just created a very simple report that I was trying to render from a
Java client via the .NET reporting web service.

However, after spending a lot of time reading about this, a managed to solve
this problem by hacking the WSDL and in particular, getting rid of the
historyID parameter of the Render message so the Serializer would not create
<HistoryID xsi:nil="true"/> part in the SOAP message.

I had TCP Trace tool running and I could see that the .NET web service is
returning the PDF stream I was trying to get. At this point I got another
interoperability problem:

org.xml.sax.SAXException: Found character data inside an array element while
deserializing
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Found character data inside an array
element while deserializing
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Found
character data inside an array element while deserializing
at
org.apache.axis.encoding.ser.ArrayDeserializer.characters(ArrayDeserializer.java:483)
at
org.apache.axis.encoding.DeserializationContext.characters(DeserializationContext.java:966)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:177)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1140)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:238)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:386)
at org.apache.axis.client.Call.invoke(Call.java:2437)
at org.apache.axis.client.Call.invoke(Call.java:2336)
at org.apache.axis.client.Call.invoke(Call.java:1793)
at
org.wei.common.report.microsoft.clientstubs.ReportingServiceSoapStub.render(ReportingServiceSoapStub.java:2396)
at
org.wei.common.report.microsoft.clientstubs.ReportingServiceTestCase.test26ReportingServiceSoapRender(ReportingServiceTestCase.java:569)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
com.intellij.rt.execution.junit2.IdeaJUnitAgent.doRun(IdeaJUnitAgent.java:57)
at
com.intellij.rt.execution.junit.TextTestRunner2.startRunnerWithArgs(TextTestRunner2.java:23)
at
com.intellij.rt.execution.junit2.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:97)
at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)

I was sending this message this time:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<Render
xmlns="http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices">
<Report>/Oracle/Job_request</Report>