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 "Emidio Stani (JIRA)" <ji...@apache.org> on 2008/07/28 14:45:31 UTC

[jira] Created: (AXIS2-3948) WSDL2Java doesn't include custom header element through the Skeleton

WSDL2Java doesn't include custom header element through the Skeleton
--------------------------------------------------------------------

                 Key: AXIS2-3948
                 URL: https://issues.apache.org/jira/browse/AXIS2-3948
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: Tools
    Affects Versions: 1.3, 1.4
         Environment: OS: Microsoft Windows Server 2003/Mac OS X 10.5
IDE: Eclipse 3.2/Eclipse 3.4 with plugin Axis2Codegen Wizard
Tool: WSDL2java as command line or called by the Axis2Codegen Wizard

            Reporter: Emidio Stani


Hi all,

I created a WSDL file WS-I compliant where I specify an header. After that I generated stub and skeleton; inside the stub I have the method to call the service which allows me to add my custom header element but from the skeleton side not.

It seems that the only way is to modify the MessageReceiverInOut java class  to add the header manually when it created a new soap message.

-- 
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] Updated: (AXIS2-3948) WSDL2Java doesn't allow to add a custom header element through the Skeleton

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

Emidio Stani updated AXIS2-3948:
--------------------------------

    Summary: WSDL2Java doesn't allow to add a custom header element through the Skeleton  (was: WSDL2Java doesn't include custom header element through the Skeleton)

> WSDL2Java doesn't allow to add a custom header element through the Skeleton
> ---------------------------------------------------------------------------
>
>                 Key: AXIS2-3948
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3948
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.4, 1.3
>         Environment: OS: Microsoft Windows Server 2003/Mac OS X 10.5
> IDE: Eclipse 3.2/Eclipse 3.4 with plugin Axis2Codegen Wizard
> Tool: WSDL2java as command line or called by the Axis2Codegen Wizard
>            Reporter: Emidio Stani
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Hi all,
> I created a WSDL file WS-I compliant (Basic Profile 1.1) where I specify an header. After that I generated stub and skeleton with the wsdl2java tool; inside the stub I have the method to call the service which allows me to add my custom header element but from the skeleton side not.
> It seems that the only way is to modify the MessageReceiverInOut java class  to add the header manually when it created a new soap message.

-- 
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] Updated: (AXIS2-3948) WSDL2Java doesn't allow to add a custom header element through the Skeleton

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

Emidio Stani updated AXIS2-3948:
--------------------------------

    Description: 
Hi all,

I created a WSDL file WS-I compliant (Basic Profile 1.1) where I specify an header. After that I generated stub and skeleton with the wsdl2java tool; inside the stub I have the method to call the service which allows me to add my custom header element but from the skeleton side the method allows only to work on the object and not on the header.

It seems that the only way is to modify the MessageReceiverInOut java class  to add the header manually when it created a new soap message.

  was:
Hi all,

I created a WSDL file WS-I compliant (Basic Profile 1.1) where I specify an header. After that I generated stub and skeleton with the wsdl2java tool; inside the stub I have the method to call the service which allows me to add my custom header element but from the skeleton side not.

It seems that the only way is to modify the MessageReceiverInOut java class  to add the header manually when it created a new soap message.


> WSDL2Java doesn't allow to add a custom header element through the Skeleton
> ---------------------------------------------------------------------------
>
>                 Key: AXIS2-3948
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3948
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.4, 1.3
>         Environment: OS: Microsoft Windows Server 2003/Mac OS X 10.5
> IDE: Eclipse 3.2/Eclipse 3.4 with plugin Axis2Codegen Wizard
> Tool: WSDL2java as command line or called by the Axis2Codegen Wizard
>            Reporter: Emidio Stani
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Hi all,
> I created a WSDL file WS-I compliant (Basic Profile 1.1) where I specify an header. After that I generated stub and skeleton with the wsdl2java tool; inside the stub I have the method to call the service which allows me to add my custom header element but from the skeleton side the method allows only to work on the object and not on the header.
> It seems that the only way is to modify the MessageReceiverInOut java class  to add the header manually when it created a new soap message.

-- 
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-3948) WSDL2Java doesn't allow to add a custom header element through the Skeleton

Posted by "Frederic Bergeron (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619019#action_12619019 ] 

Frederic Bergeron commented on AXIS2-3948:
------------------------------------------

If I understand you well, you mean that this is NOT a bug, right?

Maybe it's a silly question but why the code generator's behavior differs between the skeleton and the stub?  
Could it be possible to have an additional option for the WSDL2Java tool to handle the header in the skeleton like in the stub?

> WSDL2Java doesn't allow to add a custom header element through the Skeleton
> ---------------------------------------------------------------------------
>
>                 Key: AXIS2-3948
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3948
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.4, 1.3
>         Environment: OS: Microsoft Windows Server 2003/Mac OS X 10.5
> IDE: Eclipse 3.2/Eclipse 3.4 with plugin Axis2Codegen Wizard
> Tool: WSDL2java as command line or called by the Axis2Codegen Wizard
>            Reporter: Emidio Stani
>         Attachments: wsdlsoapheader.zip
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Hi all,
> I created a WSDL file WS-I compliant (Basic Profile 1.1) where I specify an header. After that I generated stub and skeleton with the wsdl2java tool; inside the stub I have the method to call the service which allows me to add my custom header element but from the skeleton side the method allows only to work on the object that will be included in the body and not on the header.
> It seems that the only way is to modify the MessageReceiverInOut java class  to add the header manually when it created a new soap message.

-- 
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-3948) WSDL2Java doesn't allow to add a custom header element through the Skeleton

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12617690#action_12617690 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-3948:
-----------------------------------------------------

this is something talk about earlier as well.
The Axis2 skelton class only depends on the details of the portType. so it act as an interface for all the bindings. For an example this class should be able to invoke with the http binding as well.
Soap headers only defines at the binding level. 
To handle soap headers you can write a handler as well.

> WSDL2Java doesn't allow to add a custom header element through the Skeleton
> ---------------------------------------------------------------------------
>
>                 Key: AXIS2-3948
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3948
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.4, 1.3
>         Environment: OS: Microsoft Windows Server 2003/Mac OS X 10.5
> IDE: Eclipse 3.2/Eclipse 3.4 with plugin Axis2Codegen Wizard
> Tool: WSDL2java as command line or called by the Axis2Codegen Wizard
>            Reporter: Emidio Stani
>         Attachments: wsdlsoapheader.zip
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Hi all,
> I created a WSDL file WS-I compliant (Basic Profile 1.1) where I specify an header. After that I generated stub and skeleton with the wsdl2java tool; inside the stub I have the method to call the service which allows me to add my custom header element but from the skeleton side the method allows only to work on the object that will be included in the body and not on the header.
> It seems that the only way is to modify the MessageReceiverInOut java class  to add the header manually when it created a new soap message.

-- 
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-3948) WSDL2Java doesn't allow to add a custom header element through the Skeleton

Posted by "srinivas koyya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620887#action_12620887 ] 

srinivas koyya commented on AXIS2-3948:
---------------------------------------

Hi,

Same issue. My wsdl contains operation with input contains header + body, output contains header + body.
However, in the method signature no paramter to access header.

Is there any example found in Axis2 samples on how to handle this?

> WSDL2Java doesn't allow to add a custom header element through the Skeleton
> ---------------------------------------------------------------------------
>
>                 Key: AXIS2-3948
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3948
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.4, 1.3
>         Environment: OS: Microsoft Windows Server 2003/Mac OS X 10.5
> IDE: Eclipse 3.2/Eclipse 3.4 with plugin Axis2Codegen Wizard
> Tool: WSDL2java as command line or called by the Axis2Codegen Wizard
>            Reporter: Emidio Stani
>         Attachments: wsdlsoapheader.zip
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Hi all,
> I created a WSDL file WS-I compliant (Basic Profile 1.1) where I specify an header. After that I generated stub and skeleton with the wsdl2java tool; inside the stub I have the method to call the service which allows me to add my custom header element but from the skeleton side the method allows only to work on the object that will be included in the body and not on the header.
> It seems that the only way is to modify the MessageReceiverInOut java class  to add the header manually when it created a new soap message.

-- 
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] Updated: (AXIS2-3948) WSDL2Java doesn't allow to add a custom header element through the Skeleton

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

Emidio Stani updated AXIS2-3948:
--------------------------------

    Attachment: wsdlsoapheader.zip

The WSDL file and the XSD related that I used

> WSDL2Java doesn't allow to add a custom header element through the Skeleton
> ---------------------------------------------------------------------------
>
>                 Key: AXIS2-3948
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3948
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.4, 1.3
>         Environment: OS: Microsoft Windows Server 2003/Mac OS X 10.5
> IDE: Eclipse 3.2/Eclipse 3.4 with plugin Axis2Codegen Wizard
> Tool: WSDL2java as command line or called by the Axis2Codegen Wizard
>            Reporter: Emidio Stani
>         Attachments: wsdlsoapheader.zip
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Hi all,
> I created a WSDL file WS-I compliant (Basic Profile 1.1) where I specify an header. After that I generated stub and skeleton with the wsdl2java tool; inside the stub I have the method to call the service which allows me to add my custom header element but from the skeleton side the method allows only to work on the object that will be included in the body and not on the header.
> It seems that the only way is to modify the MessageReceiverInOut java class  to add the header manually when it created a new soap message.

-- 
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] Updated: (AXIS2-3948) WSDL2Java doesn't include custom header element through the Skeleton

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

Emidio Stani updated AXIS2-3948:
--------------------------------

    Description: 
Hi all,

I created a WSDL file WS-I compliant (Basic Profile 1.1) where I specify an header. After that I generated stub and skeleton with the wsdl2java tool; inside the stub I have the method to call the service which allows me to add my custom header element but from the skeleton side not.

It seems that the only way is to modify the MessageReceiverInOut java class  to add the header manually when it created a new soap message.

  was:
Hi all,

I created a WSDL file WS-I compliant where I specify an header. After that I generated stub and skeleton; inside the stub I have the method to call the service which allows me to add my custom header element but from the skeleton side not.

It seems that the only way is to modify the MessageReceiverInOut java class  to add the header manually when it created a new soap message.


> WSDL2Java doesn't include custom header element through the Skeleton
> --------------------------------------------------------------------
>
>                 Key: AXIS2-3948
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3948
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.4, 1.3
>         Environment: OS: Microsoft Windows Server 2003/Mac OS X 10.5
> IDE: Eclipse 3.2/Eclipse 3.4 with plugin Axis2Codegen Wizard
> Tool: WSDL2java as command line or called by the Axis2Codegen Wizard
>            Reporter: Emidio Stani
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Hi all,
> I created a WSDL file WS-I compliant (Basic Profile 1.1) where I specify an header. After that I generated stub and skeleton with the wsdl2java tool; inside the stub I have the method to call the service which allows me to add my custom header element but from the skeleton side not.
> It seems that the only way is to modify the MessageReceiverInOut java class  to add the header manually when it created a new soap message.

-- 
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] Updated: (AXIS2-3948) WSDL2Java doesn't allow to add a custom header element through the Skeleton

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

Emidio Stani updated AXIS2-3948:
--------------------------------

    Description: 
Hi all,

I created a WSDL file WS-I compliant (Basic Profile 1.1) where I specify an header. After that I generated stub and skeleton with the wsdl2java tool; inside the stub I have the method to call the service which allows me to add my custom header element but from the skeleton side the method allows only to work on the object that will be included in the body and not on the header.

It seems that the only way is to modify the MessageReceiverInOut java class  to add the header manually when it created a new soap message.

  was:
Hi all,

I created a WSDL file WS-I compliant (Basic Profile 1.1) where I specify an header. After that I generated stub and skeleton with the wsdl2java tool; inside the stub I have the method to call the service which allows me to add my custom header element but from the skeleton side the method allows only to work on the object and not on the header.

It seems that the only way is to modify the MessageReceiverInOut java class  to add the header manually when it created a new soap message.


> WSDL2Java doesn't allow to add a custom header element through the Skeleton
> ---------------------------------------------------------------------------
>
>                 Key: AXIS2-3948
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3948
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.4, 1.3
>         Environment: OS: Microsoft Windows Server 2003/Mac OS X 10.5
> IDE: Eclipse 3.2/Eclipse 3.4 with plugin Axis2Codegen Wizard
> Tool: WSDL2java as command line or called by the Axis2Codegen Wizard
>            Reporter: Emidio Stani
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Hi all,
> I created a WSDL file WS-I compliant (Basic Profile 1.1) where I specify an header. After that I generated stub and skeleton with the wsdl2java tool; inside the stub I have the method to call the service which allows me to add my custom header element but from the skeleton side the method allows only to work on the object that will be included in the body and not on the header.
> It seems that the only way is to modify the MessageReceiverInOut java class  to add the header manually when it created a new soap message.

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