You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Amit Panwar (JIRA)" <ji...@apache.org> on 2007/07/24 16:13:31 UTC

[jira] Created: (AXIS2-3009) Problem in returning comples type by WebService

Problem in returning comples type by WebService
-----------------------------------------------

                 Key: AXIS2-3009
                 URL: https://issues.apache.org/jira/browse/AXIS2-3009
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: client-api
    Affects Versions: 1.2
         Environment: Axis2 -1.2
            Reporter: Amit Panwar


Hi 
        I am using axis2-1.2 . When i m trying to call the webservice it giving a RunTimeException.

        Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement Text
        at com.agilis.ils.ws.IlsAdminPublicAPIWSHttpportStub.fromOM(IlsAdminPublicAPIWSHttpportStub.java:46923)
        at com.agilis.ils.ws.IlsAdminPublicAPIWSHttpportStub.findMatchingProducts(IlsAdminPublicAPIWSHttpportStub.java:3380)
        at com.agilis.ils.ws.clientcode.IlsProductAdminWSClient.main(IlsProductAdminWSClient.java:203)
Caused by: java.lang.RuntimeException: Unexpected subelement Text
        at com.agilis.ils.ws.IlsAdminPublicAPIWSHttpportStub$FindMatchingProductsResponse$Factory.parse(IlsAdminPublicAPIWSHttpportStub.java:33121)
        at com.agilis.ils.ws.IlsAdminPublicAPIWSHttpportStub.fromOM(IlsAdminPublicAPIWSHttpportStub.java:46861)


        I think this is beacuse of returning a complex type from webservice .
        
        if (reader.isStartElement() && new  javax.xml.namespace.QName("http://ws.ils.agilis.com/xsd","return").equals(reader.getName()))

      I think this code is giving error.

      If anybody have any idea , then please reply.
     
      Thanks in advance.
     
       Thanks and regards
        Amit Panwar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-3009) Problem in returning comples type by WebService

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12515198 ] 

Deepal Jayasinghe commented on AXIS2-3009:
------------------------------------------

How can we guess what the issues is without looking at the WSDL file, you could do one of the following two steps
 - Download Axis2 1.3-RC2 and test with that
  - Attach the WSDL file

Thanks
Deepal

> Problem in returning comples type by WebService
> -----------------------------------------------
>
>                 Key: AXIS2-3009
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3009
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: 1.2
>         Environment: Axis2 -1.2
>            Reporter: Amit Panwar
>
> Hi 
>         I am using axis2-1.2 . When i m trying to call the webservice it giving a RunTimeException.
>         Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement Text
>         at com.agilis.ils.ws.IlsAdminPublicAPIWSHttpportStub.fromOM(IlsAdminPublicAPIWSHttpportStub.java:46923)
>         at com.agilis.ils.ws.IlsAdminPublicAPIWSHttpportStub.findMatchingProducts(IlsAdminPublicAPIWSHttpportStub.java:3380)
>         at com.agilis.ils.ws.clientcode.IlsProductAdminWSClient.main(IlsProductAdminWSClient.java:203)
> Caused by: java.lang.RuntimeException: Unexpected subelement Text
>         at com.agilis.ils.ws.IlsAdminPublicAPIWSHttpportStub$FindMatchingProductsResponse$Factory.parse(IlsAdminPublicAPIWSHttpportStub.java:33121)
>         at com.agilis.ils.ws.IlsAdminPublicAPIWSHttpportStub.fromOM(IlsAdminPublicAPIWSHttpportStub.java:46861)
>         I think this is beacuse of returning a complex type from webservice .
>         
>         if (reader.isStartElement() && new  javax.xml.namespace.QName("http://ws.ils.agilis.com/xsd","return").equals(reader.getName()))
>       I think this code is giving error.
>       If anybody have any idea , then please reply.
>      
>       Thanks in advance.
>      
>        Thanks and regards
>         Amit Panwar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (AXIS2-3009) Problem in returning comples type by WebService

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe resolved AXIS2-3009.
--------------------------------------

    Resolution: Incomplete

There is no enough data to recreate the issue

> Problem in returning comples type by WebService
> -----------------------------------------------
>
>                 Key: AXIS2-3009
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3009
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: 1.2
>         Environment: Axis2 -1.2
>            Reporter: Amit Panwar
>
> Hi 
>         I am using axis2-1.2 . When i m trying to call the webservice it giving a RunTimeException.
>         Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement Text
>         at com.agilis.ils.ws.IlsAdminPublicAPIWSHttpportStub.fromOM(IlsAdminPublicAPIWSHttpportStub.java:46923)
>         at com.agilis.ils.ws.IlsAdminPublicAPIWSHttpportStub.findMatchingProducts(IlsAdminPublicAPIWSHttpportStub.java:3380)
>         at com.agilis.ils.ws.clientcode.IlsProductAdminWSClient.main(IlsProductAdminWSClient.java:203)
> Caused by: java.lang.RuntimeException: Unexpected subelement Text
>         at com.agilis.ils.ws.IlsAdminPublicAPIWSHttpportStub$FindMatchingProductsResponse$Factory.parse(IlsAdminPublicAPIWSHttpportStub.java:33121)
>         at com.agilis.ils.ws.IlsAdminPublicAPIWSHttpportStub.fromOM(IlsAdminPublicAPIWSHttpportStub.java:46861)
>         I think this is beacuse of returning a complex type from webservice .
>         
>         if (reader.isStartElement() && new  javax.xml.namespace.QName("http://ws.ils.agilis.com/xsd","return").equals(reader.getName()))
>       I think this code is giving error.
>       If anybody have any idea , then please reply.
>      
>       Thanks in advance.
>      
>        Thanks and regards
>         Amit Panwar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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