You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Gnanasekaran Vinayakamurthy <Gn...@phoenix.edu> on 2006/10/06 19:01:09 UTC

Axis throws error:SimpleDeserializer

Hi Group,

 

I have proper functioning Microsoft Sql Server Reporting Services and
trying to make web service calls to .Net Reporting Services from
generated stub -java client classes using Axis2 -WSDL2Java, but found
that generated classes used method(convertTOOM), which are not available
in any of the jar files provided by axis. And due to this I just used
Call interface directly and tried to call a method, but it is giving a
strange error : - "faultString: org.xml.sax.SAXException:
SimpleDeserializer encountered a child element, which is NOT expected,
in something it was trying to deserialize."

 

If I use SoapUI tool to make web service calls, then it is working well,
but when I tried the same using Axis, then facing errors...... I
searched in web to find solution for this error, but found none. 

 

 

This is my code.............

 

        public static void main(String [] args) throws Exception {

    

            Service  service = new Service();
           Call call = (Call) service.createCall();
           call.setTargetEndpointAddress(new URL(serviceURL));
           call.setOperationName(new QName("nameSpace
<http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingse
rvices> ", "ListEvents"));
           call.setSOAPActionURI("URI
<http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingse
rvices/ListEvents> ");
 
           String retVal = (String) call.invoke(new Object[] {} );
        }

 

I have also attached WSDL file with this, please check this.


I would really appreciate your help on this.

 

 

Thanks,

Vinay

 


RE: Axis throws error:SimpleDeserializer

Posted by Gnanasekaran Vinayakamurthy <Gn...@phoenix.edu>.
Thanks Thilina..... 


-----Original Message-----
From: Thilina Gunarathne [mailto:csethil@gmail.com] 
Sent: Friday, October 06, 2006 11:50 AM
To: axis-user@ws.apache.org
Subject: Re: Axis throws error:SimpleDeserializer

Are you using the nightly builds... If not please try with Axis2
nightlies available at http://people.apache.org/dist/axis2/nightly/

~Thilina

On 10/6/06, Gnanasekaran Vinayakamurthy
<Gn...@phoenix.edu> wrote:
>
>
>
>
> Hi Group,
>
>
>
> I have proper functioning Microsoft Sql Server Reporting Services and
trying
> to make web service calls to .Net Reporting Services from generated
stub
> -java client classes using Axis2 -WSDL2Java, but found that generated
> classes used method(convertTOOM), which are not available in any of
the jar
> files provided by axis. And due to this I just used Call interface
directly
> and tried to call a method, but it is giving a strange error : -
> "faultString: org.xml.sax.SAXException: SimpleDeserializer encountered
a
> child element, which is NOT expected, in something it was trying to
> deserialize."
>
>
>
> If I use SoapUI tool to make web service calls, then it is working
well, but
> when I tried the same using Axis, then facing errors...... I searched
in web
> to find solution for this error, but found none.
>
>
>
>
>
> This is my code.............
>
>
>
>         public static void main(String [] args) throws Exception {
>
>
>
>             Service  service = new Service();
>            Call call = (Call) service.createCall();
>            call.setTargetEndpointAddress(new URL(serviceURL));
>            call.setOperationName(new QName("nameSpace",
"ListEvents"));
>            call.setSOAPActionURI("URI");
>
>            String retVal = (String) call.invoke(new Object[] {} );
>         }
>
>
>
> I have also attached WSDL file with this, please check this.
>
>
> I would really appreciate your help on this.
>
>
>
>
>
> Thanks,
>
> Vinay
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>


-- 
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis throws error:SimpleDeserializer

Posted by Thilina Gunarathne <cs...@gmail.com>.
Are you using the nightly builds... If not please try with Axis2
nightlies available at http://people.apache.org/dist/axis2/nightly/

~Thilina

On 10/6/06, Gnanasekaran Vinayakamurthy
<Gn...@phoenix.edu> wrote:
>
>
>
>
> Hi Group,
>
>
>
> I have proper functioning Microsoft Sql Server Reporting Services and trying
> to make web service calls to .Net Reporting Services from generated stub
> -java client classes using Axis2 -WSDL2Java, but found that generated
> classes used method(convertTOOM), which are not available in any of the jar
> files provided by axis. And due to this I just used Call interface directly
> and tried to call a method, but it is giving a strange error : -
> "faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a
> child element, which is NOT expected, in something it was trying to
> deserialize."
>
>
>
> If I use SoapUI tool to make web service calls, then it is working well, but
> when I tried the same using Axis, then facing errors...... I searched in web
> to find solution for this error, but found none.
>
>
>
>
>
> This is my code.............
>
>
>
>         public static void main(String [] args) throws Exception {
>
>
>
>             Service  service = new Service();
>            Call call = (Call) service.createCall();
>            call.setTargetEndpointAddress(new URL(serviceURL));
>            call.setOperationName(new QName("nameSpace", "ListEvents"));
>            call.setSOAPActionURI("URI");
>
>            String retVal = (String) call.invoke(new Object[] {} );
>         }
>
>
>
> I have also attached WSDL file with this, please check this.
>
>
> I would really appreciate your help on this.
>
>
>
>
>
> Thanks,
>
> Vinay
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>


-- 
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org