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 "Ockleford Paul (NHS CONNECTING FOR HEALTH)" <pa...@nhs.net> on 2012/12/27 17:37:56 UTC

Exposed methods with a number of input parameters

Hi,

A couple of the legacy methods I have ported to Axis 2 take individual input parameters instead of an object and when I look at the wsdl none of the parameter names are defined there, is there a reason for this?

For example:

<xs:sequence>
<xs:element minOccurs="0" name="args0" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args1" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args2" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args3" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args4" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args5" nillable="true" type="xs:string"/>
</xs:sequence>

If I look at the newer methods which are defined as taking an object as their single input parameter all the parameter names from the object are actually defined in the wsdl.

I was just wondering if someone could help me to understand this and if I should look to 'wrap' all those parameters in an input object for the web service call.

Thanks,

Paul

********************************************************************************************************************

This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere

********************************************************************************************************************

Re: Exposed methods with a number of input parameters

Posted by Deepal jayasinghe <de...@gmail.com>.
To fix this problem you need to use '-g' option when you compile, in
other words you need to compile with debug on.

Deepal
>
> Hi,
>
>  
>
> A couple of the legacy methods I have ported to Axis 2 take individual
> input parameters instead of an object and when I look at the wsdl none
> of the parameter names are defined there, is there a reason for this?
>
>  
>
> For example:
>
>  
>
> <xs:sequence>
>
> <xs:element minOccurs="0" name="args0" nillable="true" type="xs:string"/>
>
> <xs:element minOccurs="0" name="args1" nillable="true" type="xs:string"/>
>
> <xs:element minOccurs="0" name="args2" nillable="true" type="xs:string"/>
>
> <xs:element minOccurs="0" name="args3" nillable="true" type="xs:string"/>
>
> <xs:element minOccurs="0" name="args4" nillable="true" type="xs:string"/>
>
> <xs:element minOccurs="0" name="args5" nillable="true" type="xs:string"/>
>
> </xs:sequence>
>
>  
>
> If I look at the newer methods which are defined as taking an object
> as their single input parameter all the parameter names from the
> object are actually defined in the wsdl.
>
>  
>
> I was just wondering if someone could help me to understand this and
> if I should look to 'wrap' all those parameters in an input object for
> the web service call.
>
>  
>
> Thanks,
>
>  
>
> Paul
>
>
> ********************************************************************************************************************
>
> This message may contain confidential information. If you are not the
> intended recipient please inform the
> sender that you have received the message in error before deleting it.
> Please do not disclose, copy or distribute information in this e-mail
> or take any action in reliance on its contents:
> to do so is strictly prohibited and may be unlawful.
>
> Thank you for your co-operation.
>
> NHSmail is the secure email and directory service available for all
> NHS staff in England and Scotland
> NHSmail is approved for exchanging patient data and other sensitive
> information with NHSmail and GSi recipients
> NHSmail provides an email address for your career in the NHS and can
> be accessed anywhere
>
> ********************************************************************************************************************


Re: Exposed methods with a number of input parameters

Posted by Deepal jayasinghe <de...@gmail.com>.
I know, I was talking about your service. When you compile your java
class you need to turn on the debug info.
>
> I should have said this is for an auto generated wsdl and not one I
> generated with java2wsdl.
>
> *From:*Deepal jayasinghe [mailto:deepalk@gmail.com]
> *Sent:* 27 December 2012 16:41
> *To:* java-user@axis.apache.org
> *Subject:* Re: Exposed methods with a number of input parameters
>
>  
>
> To fix this problem you need to use '-g' option when you compile, in
> other words you need to compile with debug on.
>
> Deepal
>
>     Hi,
>
>      
>
>     A couple of the legacy methods I have ported to Axis 2 take
>     individual input parameters instead of an object and when I look
>     at the wsdl none of the parameter names are defined there, is
>     there a reason for this?
>
>      
>
>     For example:
>
>      
>
>     <xs:sequence>
>
>     <xs:element minOccurs="0" name="args0" nillable="true"
>     type="xs:string"/>
>
>     <xs:element minOccurs="0" name="args1" nillable="true"
>     type="xs:string"/>
>
>     <xs:element minOccurs="0" name="args2" nillable="true"
>     type="xs:string"/>
>
>     <xs:element minOccurs="0" name="args3" nillable="true"
>     type="xs:string"/>
>
>     <xs:element minOccurs="0" name="args4" nillable="true"
>     type="xs:string"/>
>
>     <xs:element minOccurs="0" name="args5" nillable="true"
>     type="xs:string"/>
>
>     </xs:sequence>
>
>      
>
>     If I look at the newer methods which are defined as taking an
>     object as their single input parameter all the parameter names
>     from the object are actually defined in the wsdl.
>
>      
>
>     I was just wondering if someone could help me to understand this
>     and if I should look to 'wrap' all those parameters in an input
>     object for the web service call.
>
>      
>
>     Thanks,
>
>      
>
>     Paul
>
>
>     ********************************************************************************************************************
>
>     This message may contain confidential information. If you are not
>     the intended recipient please inform the
>     sender that you have received the message in error before deleting it.
>     Please do not disclose, copy or distribute information in this
>     e-mail or take any action in reliance on its contents:
>     to do so is strictly prohibited and may be unlawful.
>
>     Thank you for your co-operation.
>
>     NHSmail is the secure email and directory service available for
>     all NHS staff in England and Scotland
>     NHSmail is approved for exchanging patient data and other
>     sensitive information with NHSmail and GSi recipients
>     NHSmail provides an email address for your career in the NHS and
>     can be accessed anywhere
>
>     ********************************************************************************************************************
>
>  
>
>
> ********************************************************************************************************************
>
> This message may contain confidential information. If you are not the
> intended recipient please inform the
> sender that you have received the message in error before deleting it.
> Please do not disclose, copy or distribute information in this e-mail
> or take any action in reliance on its contents:
> to do so is strictly prohibited and may be unlawful.
>
> Thank you for your co-operation.
>
> NHSmail is the secure email and directory service available for all
> NHS staff in England and Scotland
> NHSmail is approved for exchanging patient data and other sensitive
> information with NHSmail and GSi recipients
> NHSmail provides an email address for your career in the NHS and can
> be accessed anywhere
>
> ********************************************************************************************************************


RE: Exposed methods with a number of input parameters

Posted by "Ockleford Paul (NHS CONNECTING FOR HEALTH)" <pa...@nhs.net>.
Ah ok thanks!
From: Deepal jayasinghe [mailto:deepalk@gmail.com]
Sent: 27 December 2012 16:45
To: java-user@axis.apache.org
Subject: Re: Exposed methods with a number of input parameters

I know, I was talking about your service. When you compile your java class you need to turn on the debug info.
I should have said this is for an auto generated wsdl and not one I generated with java2wsdl.
From: Deepal jayasinghe [mailto:deepalk@gmail.com]
Sent: 27 December 2012 16:41
To: java-user@axis.apache.org<ma...@axis.apache.org>
Subject: Re: Exposed methods with a number of input parameters

To fix this problem you need to use '-g' option when you compile, in other words you need to compile with debug on.

Deepal
Hi,

A couple of the legacy methods I have ported to Axis 2 take individual input parameters instead of an object and when I look at the wsdl none of the parameter names are defined there, is there a reason for this?

For example:

<xs:sequence>
<xs:element minOccurs="0" name="args0" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args1" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args2" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args3" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args4" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args5" nillable="true" type="xs:string"/>
</xs:sequence>

If I look at the newer methods which are defined as taking an object as their single input parameter all the parameter names from the object are actually defined in the wsdl.

I was just wondering if someone could help me to understand this and if I should look to 'wrap' all those parameters in an input object for the web service call.

Thanks,

Paul

********************************************************************************************************************

This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere

********************************************************************************************************************


********************************************************************************************************************

This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere

********************************************************************************************************************


********************************************************************************************************************

This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere

********************************************************************************************************************

RE: Exposed methods with a number of input parameters

Posted by "Ockleford Paul (NHS CONNECTING FOR HEALTH)" <pa...@nhs.net>.
I tried this morning and it looked like I was already compiling my source in debug mode through my IDE.

Interestingly it looks like when I referenced my "ServiceClass" in the services.xml as the interface and not the implementation class it didn't pick the names up from the method stubs, I guess this is correct though as there isn't any guarantee they would actually have the same names in the implementation class.

Thanks,

Paul

From: Deepal jayasinghe [mailto:deepalk@gmail.com]
Sent: 27 December 2012 16:45
To: java-user@axis.apache.org
Subject: Re: Exposed methods with a number of input parameters

I know, I was talking about your service. When you compile your java class you need to turn on the debug info.
I should have said this is for an auto generated wsdl and not one I generated with java2wsdl.
From: Deepal jayasinghe [mailto:deepalk@gmail.com]
Sent: 27 December 2012 16:41
To: java-user@axis.apache.org<ma...@axis.apache.org>
Subject: Re: Exposed methods with a number of input parameters

To fix this problem you need to use '-g' option when you compile, in other words you need to compile with debug on.

Deepal
Hi,

A couple of the legacy methods I have ported to Axis 2 take individual input parameters instead of an object and when I look at the wsdl none of the parameter names are defined there, is there a reason for this?

For example:

<xs:sequence>
<xs:element minOccurs="0" name="args0" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args1" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args2" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args3" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args4" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args5" nillable="true" type="xs:string"/>
</xs:sequence>

If I look at the newer methods which are defined as taking an object as their single input parameter all the parameter names from the object are actually defined in the wsdl.

I was just wondering if someone could help me to understand this and if I should look to 'wrap' all those parameters in an input object for the web service call.

Thanks,

Paul

********************************************************************************************************************

This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere

********************************************************************************************************************


********************************************************************************************************************

This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere

********************************************************************************************************************


********************************************************************************************************************

This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere

********************************************************************************************************************

RE: Exposed methods with a number of input parameters

Posted by "Ockleford Paul (NHS CONNECTING FOR HEALTH)" <pa...@nhs.net>.
I should have said this is for an auto generated wsdl and not one I generated with java2wsdl.
From: Deepal jayasinghe [mailto:deepalk@gmail.com]
Sent: 27 December 2012 16:41
To: java-user@axis.apache.org
Subject: Re: Exposed methods with a number of input parameters

To fix this problem you need to use '-g' option when you compile, in other words you need to compile with debug on.

Deepal
Hi,

A couple of the legacy methods I have ported to Axis 2 take individual input parameters instead of an object and when I look at the wsdl none of the parameter names are defined there, is there a reason for this?

For example:

<xs:sequence>
<xs:element minOccurs="0" name="args0" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args1" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args2" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args3" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args4" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="args5" nillable="true" type="xs:string"/>
</xs:sequence>

If I look at the newer methods which are defined as taking an object as their single input parameter all the parameter names from the object are actually defined in the wsdl.

I was just wondering if someone could help me to understand this and if I should look to 'wrap' all those parameters in an input object for the web service call.

Thanks,

Paul

********************************************************************************************************************

This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere

********************************************************************************************************************


********************************************************************************************************************

This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere

********************************************************************************************************************