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 Scott Carr <sc...@progbits.com> on 2006/05/06 04:49:38 UTC
ArrayOf Causing some problems
I am having an issue with running a Function that returns an Array.
I have a function called returnContacts that returns an array of
Contact. The return type from Axis built objects is ArrayOfContacts.
If I try to use the ArrayOfContact type, I get an error when I run the
function saying NoSuchMethodError.
If i try to set the return type to Contact[] then I get a compile error.
ContactsLocator locScen = new ContactsLocator();
ContactsSoap servScen = locScen.getContactsSoap(new
URL(m_strContactURL));
ArrayOfContact arrContact =
servScen.returnContacts(m_ticketId.getTicketID(), "Test");
What am I doing wrong?
Thanks
--
Scott Carr
OpenOffice.org
Documentation Co-Lead
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Re: ArrayOf Causing some problems
Posted by Scott Carr <sc...@progbits.com>.
Sorry to bother everyone with this.
I believe this is an issue with Netbeans. With this particular project,
I had tried the Web Service client stuff that is built into Netbeans,
and got tired of using it. (There are not too many examples on how to
use it.)
I deleted the Web Service Client from Netbeans project, and started
using the Axis Generated Objects. Netbeans seems to have not
regenerated its ClassPath used to show Context Sensitive help.
I created a New netbeans project with the same Axis Objects and
everything worked the first time.
Thanks, for the response. I really like Axis, by the way.
robert lazarski wrote:
> Seems like you are using databinding. If so post the wsdl and maybe we
> can help. A stack trace may help too.
>
> Robert
> http://www.braziloutsource.com/
>
> On 5/5/06, *Scott Carr* <scarr@progbits.com
> <ma...@progbits.com>> wrote:
>
> I am having an issue with running a Function that returns an Array.
>
> I have a function called returnContacts that returns an array of
> Contact. The return type from Axis built objects is ArrayOfContacts.
>
> If I try to use the ArrayOfContact type, I get an error when I run the
> function saying NoSuchMethodError.
>
> If i try to set the return type to Contact[] then I get a compile
> error.
>
>
> ContactsLocator locScen = new ContactsLocator();
> ContactsSoap servScen = locScen.getContactsSoap (new
> URL(m_strContactURL));
>
> ArrayOfContact arrContact =
> servScen.returnContacts(m_ticketId.getTicketID(), "Test");
>
> What am I doing wrong?
>
> Thanks
> --
> Scott Carr
> OpenOffice.org
> Documentation Co-Lead
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
Re: ArrayOf Causing some problems
Posted by robert lazarski <ro...@gmail.com>.
Seems like you are using databinding. If so post the wsdl and maybe we can
help. A stack trace may help too.
Robert
http://www.braziloutsource.com/
On 5/5/06, Scott Carr <sc...@progbits.com> wrote:
>
> I am having an issue with running a Function that returns an Array.
>
> I have a function called returnContacts that returns an array of
> Contact. The return type from Axis built objects is ArrayOfContacts.
>
> If I try to use the ArrayOfContact type, I get an error when I run the
> function saying NoSuchMethodError.
>
> If i try to set the return type to Contact[] then I get a compile error.
>
>
> ContactsLocator locScen = new ContactsLocator();
> ContactsSoap servScen = locScen.getContactsSoap(new
> URL(m_strContactURL));
>
> ArrayOfContact arrContact =
> servScen.returnContacts(m_ticketId.getTicketID(), "Test");
>
> What am I doing wrong?
>
> Thanks
> --
> Scott Carr
> OpenOffice.org
> Documentation Co-Lead
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>