Problem with implementing web service in mobile aplication

M

mirna

I am having problem.
when i am calling web service method from mobile aplication i get
WebException. I don't know where the problem is because when i call the
same method from windows aplication it works OK and i dont have
problems. I would be thankful if someone could help me...

here is the code where problem occurs (references.cs):

/// <remarks/>

[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://localhost/WSRjecnik/Service.asmx/vratiOdgovarajuceRijeci",
RequestNamespace="http://localhost/WSRjecnik/Service.asmx",
ResponseNamespace="http://localhost/WSRjecnik/Service.asmx",
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public object[] vratiOdgovarajuceRijeci(string rijec, string
jezik) {
object[] results = this.Invoke("vratiOdgovarajuceRijeci",
new object[] { <= WebException!!
rijec,
jezik});
return ((object[])(results[0]));
}


does it affect the namespace in wich the web service is??

thank You ;)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top