[Mono-osx] WebService Issue

D. Alex Soto G. dxdream at gmail.com
Fri Apr 30 15:01:53 EDT 2010


Im trying to invoke a WS written in java wich uses an int as parameter and
it returns an string, im using the ws bult in tester and i get the following
info

SOAP Request
------------------------------

<?xml version="1.0" encoding="UTF-8"?>

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Header/>
    <S:Body>
        <ns2:BuscaNombre xmlns:ns2="http://WebService/">

            <id>1</id>
        </ns2:BuscaNombre>
    </S:Body>
</S:Envelope>

------------------------------
SOAP Response
------------------------------

<?xml version="1.0" encoding="UTF-8"?>

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
        <ns2:BuscaNombreResponse xmlns:ns2="http://WebService/">

            <return>Pedro</return>
        </ns2:BuscaNombreResponse>
    </S:Body>
</S:Envelope>


When i try to invoke it from the iphone device, i get a null as result, but
i get no errors during the process, i went looking for any error line by
line and i found on the Reference.cs as shown in the screenshot that
object[] its returning the following error

"Could not parse expression "new global::System.Object         id)

the code i got when the button is clicked its

ClienteJava.WSJava.NombresWSService ws = new
ClienteJava.WSJava.NombresWSService();

                    lblResultado.Text =
ws.BuscaNombre(int.Parse(txtId.Text));
                    Console.WriteLine("finished invoking " +
ws.BuscaNombre(int.Parse(txtId.Text)));

i get no errors but i get a empty string as result. Any Ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20100430/ac87df4d/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen shot 2010-04-30 at 1.45.43 PM.png
Type: image/png
Size: 344281 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20100430/ac87df4d/attachment-0001.png 


More information about the Mono-osx mailing list