sbley / wsdl2ksoap

Automatically exported from code.google.com/p/wsdl2ksoap
0 stars 0 forks source link

java.lang.RuntimeException: Unknown Property: string #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
followed the instruction to generate the stub.

What is the expected output? What do you see instead?
expected a package with the stub.
The problem is when i call a method that returns a String[]:

.net webservice:
[WebMethod]
public String[] HelloStringArray()
{
    return new String[] { "1", "3", "2" };
}

when i call the method generated:

 public HelloStringArrayResponse HelloStringArray(HelloStringArray params) throws Exception
    {
        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
        envelope.dotNet = IsDotNet;
        envelope.setOutputSoapObject(params.GetSoapParams());

        new HelloStringArrayResponse().register(envelope);

        HttpTransportSE androidHttpTransport = new HttpTransportSE(Address);
        androidHttpTransport.call(params.GetSoapAction(), envelope);

        HelloStringArrayResponse resp = (HelloStringArrayResponse)envelope.bodyIn;

        return resp;

    }

it gives a exception:
java.lang.RuntimeException: Unknown Property: string

I have a method that returns only one string and it seems to be ok.

Original issue reported on code.google.com by luis.fil...@gmail.com on 5 Jul 2011 at 2:52