Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7918503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:32:05+00:00 2026-06-03T15:32:05+00:00

I’m using the globus toolkit for a project. In my service i have a

  • 0

I’m using the globus toolkit for a project. In my service i have a resource: a string array. I want to get this resource from an Android client. How can I do that? How can I describe in the wsdl file the type “array of string”?
Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T15:32:07+00:00Added an answer on June 3, 2026 at 3:32 pm

    I guess you’re looking for this

    <complexType name='ArrayOfString'>
        <sequence>
            <element name='item' type='xsd:string' maxOccurs='unbounded'/>
        </sequence>
    </complexType>
    

    Source: http://www.activebpel.org/samples/samples-2/BPEL_Samples/Resources/Docs/arrays.html

    UPDATE:

    I’ve done a test using NetBeans 7.0.1. The results were this:

    Declare a method that receives a String[] parameter:

    @WebMethod(operationName = "helloArray")
    public String helloArray(@WebParam(name = "name") String[] name) {
        StringBuilder sb = new StringBuilder("Hello ");
        if (name != null) {
            for(int i = 0; i < name.length; i++) {
                sb.append(name[i]);
                if (i < (name.length - 1)) {
                    sb.append(" and ");
                }
            }
        }
        sb.append('!');
        return sb.toString();
    }
    

    The WSDL generated a complex type for my method with a String array element

    <xs:complexType name="helloArray">
        <xs:sequence>
            <xs:element name="name" type="xs:string" nillable="true" minOccurs="0" 
                maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    

    In the client, the IDE generated a List<String> to consume it:

    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "helloArray", propOrder = {"name"})
    public class HelloArray {
    
        @XmlElement(nillable = true)
        protected List<String> name;
    
        public List<String> getName() {
            if (name == null) {
                name = new ArrayList<String>();
            }
            return this.name;
        }
    }
    

    And a method to consume the service

    private String helloArray(java.util.List<java.lang.String> name) {
        edu.home.wsclient.HelloWorldWS port = service.getHelloWorldWSPort();
        return port.helloArray(name);
    }
    

    I’ve uploaded both projects in this address

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
For some reason, after submitting a string like this Jack’s Spindle from a text
Does anyone know how can I replace this 2 symbol below from the string
I want to count how many characters a certain string has in PHP, but
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have a text area in my form which accepts all possible characters from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.