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 "Gilles Delaby (JIRA)" <ji...@apache.org> on 2007/04/18 16:59:15 UTC

[jira] Created: (AXIS2-2557) Unexpected subelement EncryptionMethod

Unexpected subelement EncryptionMethod
--------------------------------------

                 Key: AXIS2-2557
                 URL: https://issues.apache.org/jira/browse/AXIS2-2557
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: wsdl
    Affects Versions: 1.1.1
            Reporter: Gilles Delaby


A web service receives a String as input parameter and returns an encrypted Element as response.
I use the Axis2 wsdl2java to generate the stub and a simple java class to test the service.

It fails at runtime because the stub does not recognize the security header (due to the encryption) of the soap message :
 java.lang.RuntimeException: Unexpected subelement EncryptionMethod
    at services.client.AccessServiceStub.fromOM(AccessServiceStub.java:1889)
    at services.client.AccessServiceStub.getProfile(AccessServiceStub.java:160)
    at services.client.Client.main(Client.java:62)
Caused by: java.lang.RuntimeException: Unexpected subelement EncryptionMethod
    at services.client.AccessServiceStub$GetProfileResponse$Factory.parse(AccessServiceStub.java:1764)
    at services.client.AccessServiceStub.fromOM(AccessServiceStub.java:1869)

No security information is contained in the wsdl so could it be the problem ?

Thanks !


-- 
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-2557) Unexpected subelement EncryptionMethod

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

Davanum Srinivas resolved AXIS2-2557.
-------------------------------------

    Resolution: Invalid

> Unexpected subelement EncryptionMethod
> --------------------------------------
>
>                 Key: AXIS2-2557
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2557
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1.1
>            Reporter: Gilles Delaby
>
> A web service receives a String as input parameter and returns an encrypted Element as response.
> I use the Axis2 wsdl2java to generate the stub and a simple java class to test the service.
> It fails at runtime because the stub does not recognize the security header (due to the encryption) of the soap message :
>  java.lang.RuntimeException: Unexpected subelement EncryptionMethod
>     at services.client.AccessServiceStub.fromOM(AccessServiceStub.java:1889)
>     at services.client.AccessServiceStub.getProfile(AccessServiceStub.java:160)
>     at services.client.Client.main(Client.java:62)
> Caused by: java.lang.RuntimeException: Unexpected subelement EncryptionMethod
>     at services.client.AccessServiceStub$GetProfileResponse$Factory.parse(AccessServiceStub.java:1764)
>     at services.client.AccessServiceStub.fromOM(AccessServiceStub.java:1869)
> No security information is contained in the wsdl so could it be the problem ?
> Thanks !

-- 
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-2557) Unexpected subelement EncryptionMethod

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

Davanum Srinivas commented on AXIS2-2557:
-----------------------------------------

the schema in the wsdl reflect the decrypted soap message. so there is no way to fix this unless you add say the rampart module and configure it to decrypt the soap message before it reaches the data binding.

thanks,
dims

> Unexpected subelement EncryptionMethod
> --------------------------------------
>
>                 Key: AXIS2-2557
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2557
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.1.1
>            Reporter: Gilles Delaby
>
> A web service receives a String as input parameter and returns an encrypted Element as response.
> I use the Axis2 wsdl2java to generate the stub and a simple java class to test the service.
> It fails at runtime because the stub does not recognize the security header (due to the encryption) of the soap message :
>  java.lang.RuntimeException: Unexpected subelement EncryptionMethod
>     at services.client.AccessServiceStub.fromOM(AccessServiceStub.java:1889)
>     at services.client.AccessServiceStub.getProfile(AccessServiceStub.java:160)
>     at services.client.Client.main(Client.java:62)
> Caused by: java.lang.RuntimeException: Unexpected subelement EncryptionMethod
>     at services.client.AccessServiceStub$GetProfileResponse$Factory.parse(AccessServiceStub.java:1764)
>     at services.client.AccessServiceStub.fromOM(AccessServiceStub.java:1869)
> No security information is contained in the wsdl so could it be the problem ?
> Thanks !

-- 
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